Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Which query is faster?
Message
From
13/01/2001 12:42:30
Dragan Nedeljkovich (Online)
Now officially retired
Zrenjanin, Serbia
 
 
General information
Forum:
Visual FoxPro
Category:
Databases,Tables, Views, Indexing and SQL syntax
Miscellaneous
Thread ID:
00463375
Message ID:
00463397
Views:
17
>The answer depends on how big the tables are and the types of joins involved. Gnerally, three table joins will not cause problems. I think VFP supports up to seven table joins. In my experience, however, I have found that eanything over three tables tends to impact performance. The best thing to do is test each scenario and decide for yourself.

It allows ten joins (and it took me twenty long minutes to discover what was wrong when I added four more cursors to join to, because the error message was sort of "suboptimally clear", as Microsoft would put it).

IMO, any single scenario may play differently, depending on size of the tables, the compactness of the indexes etc. My rule-of-thumb is to pull the smallest possible cursor from the largest table first, and then join that to the rest. But then, I'm usually having one large table to join to several small lookups (most of the joins I'm dealing with are used to create flat tables for Crystal Reports) so this works for me most of the time.

back to same old

the first online autobiography, unfinished by design
What, me reckless? I'm full of recks!
Balkans, eh? Count them.
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform