Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Optimizable expressions
Message
General information
Forum:
Visual FoxPro
Category:
Coding, syntax & commands
Miscellaneous
Thread ID:
00528859
Message ID:
00528882
Views:
18
Paul,

Try this trick
Select ... From ... ;
    Where ino_acct = nAcct ;
    Having !empty(ino_total) ;
        or
    Having ino_total <> 0 ;
    ...
It's possible to do because foxpro is very "flexible" with Sql select syntax
It should work pretty well for both situations.

>In help it says that empty() is not optimizable and that "#" is.
>
>I originally was thinking this wasn't correct because I had a select-sql clause that was much faster if my expression was "ino_acct = nAcct and !empty(ino_total)" instead of "ino_acct = nAcct and ino_total # 0.00".
>
>My invoice table has around a half million records.
>
>Anyway, after awhile I came to the conclusion, (whether its correct or not I don't know), that the "#" operator is IN FACT optimizable and that is why its slower! Is this possible? When I use the non-optimizable empty() function rushmore only acts upon my first expression. Is this correct?
>
>If so, I wonder if there are any golden rules of thumb as to when I should or shouldn't use optimization.
>
>I hope this makes sense,
>
>Thanks,
>Paul
--sb--
Previous
Reply
Map
View

Click here to load this message in the networking platform