Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Simple ID Generator Not Fast
Message
General information
Forum:
Visual FoxPro
Category:
Internet applications
Miscellaneous
Thread ID:
00587741
Message ID:
00587897
Views:
23
Hi Steve,

>I made a free table with two columns iValue and iDel (both integers). There are 500,000 rows in the table. With the following ASP I get a value the way I want it. However, it is much slower than having 50,000 rows in the table. Why? I have simple indexes on both columns.
>

you used:
Select iValue from UniqInt02 Where iDel=0 Order by iValue Top 1
Why not use this one instead?
Select min(iValue) from UniqInt02 Where iDel=0 
hth,
Frank Camp
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform