Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Multiple join conditions on indexed fields VERY slow...
Message
General information
Forum:
Visual FoxPro
Category:
Databases,Tables, Views, Indexing and SQL syntax
Title:
Multiple join conditions on indexed fields VERY slow...
Miscellaneous
Thread ID:
00901362
Message ID:
00901362
Views:
57
hi,

i'm attempting to join 2 fairly large tables (200,000 recs each) on multiple fields via:

select b.* from detail d join barcodes b on d.po_num = b.po_num and d.style = b.style where d.wo_num = 123456 into cursor csrBcodes

d.wo_num, d.po_num, d.style, b.po_num & b.style are all indexed, yet this query takes more than 30 secs. if i limit the join condition to a single field - either po_num OR style - the query runs in less than a second??!

any thoughts? are multiple condition joins just slow??

thanks in advance.
Darren Young
Next
Reply
Map
View

Click here to load this message in the networking platform