Hello,
I have a very large table (over 4.6 million records) and am joining a table with 300 rows to it and a table with 800 rows to it. All three tables have two fields and I have created a unique primary index on the two fields.
I ran the first join which took approximately 3 minutes (joining 4.6 million rows to 300 rows), then I ran the next join which took 20 seconds (joining 4.6 million rows to 800 rows).
Why would it take less time to join 800 rows than 300 rows?
This seemed strange to me so I tried joining other tables to the big table with the same results. I found a threshold of about 500 rows. After 500 rows all joins took only 20 seconds. How can I make the smaller table joins take less time? Is there a way to override this feature?
Thank you for your time,
Gina
I have a very large table (over 4.6 million records) and am joining a table with 300 rows to it and a table with 800 rows to it. All three tables have two fields and I have created a unique primary index on the two fields.
I ran the first join which took approximately 3 minutes (joining 4.6 million rows to 300 rows), then I ran the next join which took 20 seconds (joining 4.6 million rows to 800 rows).
Why would it take less time to join 800 rows than 300 rows?
This seemed strange to me so I tried joining other tables to the big table with the same results. I found a threshold of about 500 rows. After 500 rows all joins took only 20 seconds. How can I make the smaller table joins take less time? Is there a way to override this feature?
Thank you for your time,
Gina