Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
SQL question foxpro 3
Message
 
To
15/05/2004 16:06:44
General information
Forum:
Visual FoxPro
Category:
Databases,Tables, Views, Indexing and SQL syntax
Miscellaneous
Thread ID:
00904009
Message ID:
00904390
Views:
25

If you use a JOIN and the external loop table have not a index for the ON condition,
VFP build a temp index for do the join with o(n1Log(n2)) complexity.

Add a index into the Table2 for cID field, and the select run in a flash:

SELECT Table2
INDEX ON cID TAG cID
....


You're right, it works fine with an index. The strange thing is that now without an index it also executes fast. I don´t know what happened before.

Zakaria al Azhar
Zakaria al Azhar
My blog on Actuaris.net
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform