Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Optimizing a Select Distinct
Message
From
13/11/2006 18:04:42
 
 
To
All
General information
Forum:
Visual FoxPro
Category:
Databases,Tables, Views, Indexing and SQL syntax
Title:
Optimizing a Select Distinct
Environment versions
Visual FoxPro:
VFP 8 SP1
Miscellaneous
Thread ID:
01169351
Message ID:
01169351
Views:
66
A client reported a form taking it's time to display. I replicated the issue today. And it's a report form that lists periods you can select for a financial report.

I did some research and prior to the form displaying, a "Select Distinct Period..." is run on a historical transaction table to find all periods that data exists for. This appears to be what's slowing the display down.

I added an index on the period column, but that doesn't have any affect. Is there any way I can optimize this, or a quicker way I can come up available periods?

Thanks,

PF

(On an infant's shirt): Already smarter than Bush
Next
Reply
Map
View

Click here to load this message in the networking platform