Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Make Select quicker
Message
From
26/01/2006 13:17:56
Mike Yearwood
Toronto, Ontario, Canada
 
General information
Forum:
Visual FoxPro
Category:
Coding, syntax & commands
Environment versions
Visual FoxPro:
VFP 6 SP5
OS:
Windows 2000 SP4
Database:
Visual FoxPro
Miscellaneous
Thread ID:
01090482
Message ID:
01090584
Views:
11
>>Beth,
>>
>>Does adding a WHERE clause and eliminating the IIF statements help? Like WHERE not empty(date_calc) and not empty(date_appr)... or if you need to evaluate both date_calc and date_appr, perhaps splitting it using the UNION clause.
>>Also, do you have indexes on date_calc and/or date_appr?
>>
>>Regards,
>>Ed
>
>You can not add NOT EMPTY as a condition, because AFAIK EMPTY is not optimizable. You need to write
>
>not myDateField =={} if you have an index on date.

EMPTY is optimizable if there is an index with INDEX ON EMPTY(FIELD). EMPTY is noted as not optimizable in the help as a note near BETWEEN and INLIST because EMPTY does not optimize the way BETWEEN and INLIST do. That is, those functions will use an INDEX ON FIELD.
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform