Pantek Library
Hosting Provided By
CybrHost
High Speed Hosting

Re: [GENERAL] 8.2.4 serious slowdown

From: Clodoaldo <clodoaldo.pinto.neto(at)gmail.com>
Date: Sun Jan 13 2008 - 03:50:48 EST


2008/1/13, Sim Zacks <sim@compulab.co.il>:
> How would you rewrite something like:
> WHERE (COALESCE(b.quantity, 0) - COALESCE(b.deliveredsum, 0)) > 0;
> I could write:
> where case when b.quantity is null then 0 else b.quantity end - case when b.deliveredsum is null then 0 else b.deliveredsum end > 0
>
> It is butt ugly, but is that the most efficient way to write it in 8.2.4?

I don't know if the plan would be the same but this is a bit clearer:

WHERE COALESCE(b.quantity, 0) > COALESCE(b.deliveredsum, 0)

Regards, Clodoaldo Pinto Neto

---------------------------(end of broadcast)---------------------------
TIP 5: don't forget to increase your free space map settings Received on Sun Jan 13 03:54:58 2008

This archive was generated by hypermail 2.1.8 : Tue Jun 17 2008 - 00:06:40 EDT


Contact Us  Legal Notices  Order Services Online 
Pantek Home  Privacy Policy  IT news  Site Map  Pantek Library