Hi
We used to work on Access 1997 until yesterday, when we switched to Access 2010. For some reason, some very simple queries that used to work perfectly fine are so slow in the new version of Access that it's not even funny...
Here's the SQL code of one of those queries :
Used to take 15 seconds, it now can take up to 10 minutes.
The (real) funny thing is that a not so different query :
takes 15 seconds max to run for the same number of records, although it's using "LEFT JOIN" instead of "INNER JOIN". And even funnier, in the second query, if I remove the [Branch_Traction_ALL + Region] table, again the query takes an eternity to run.
I precise that the [SCSFPRD948_BSKUFIL] table is a massive linked table from an ODBC database using IBM iSeries drivers.
Any insight / help would be greatly appreciated !
Thanks,
T.
We used to work on Access 1997 until yesterday, when we switched to Access 2010. For some reason, some very simple queries that used to work perfectly fine are so slow in the new version of Access that it's not even funny...
Here's the SQL code of one of those queries :
SELECT Inv_Inquiry_BSKUFILE.Branch, Inv_Inquiry_BSKUFILE.VC, Inv_Inquiry_BSKUFILE.item, SCSFPRD948_BSKUFIL.SKSPLY
FROM Inv_Inquiry_BSKUFILE INNER JOIN SCSFPRD948_BSKUFIL ON (Inv_Inquiry_BSKUFILE.item = SCSFPRD948_BSKUFIL.SKITEM) AND (Inv_Inquiry_BSKUFILE.VC = SCSFPRD948_BSKUFIL.SKVLIN) AND (Inv_Inquiry_BSKUFILE.Branch = SCSFPRD948_BSKUFIL.SKCLNT);
Used to take 15 seconds, it now can take up to 10 minutes.
The (real) funny thing is that a not so different query :
SELECT Inv_Inquiry_BSKUFIL_TR.Branch, Inv_Inquiry_BSKUFIL_TR.VC, Inv_Inquiry_BSKUFIL_TR.item, SCSFPRD948_BSKUFIL.SKSPLY, [Branch_Traction_ALL + Region].Region
FROM (Inv_Inquiry_BSKUFIL_TR LEFT JOIN SCSFPRD948_BSKUFIL ON (Inv_Inquiry_BSKUFIL_TR.item = SCSFPRD948_BSKUFIL.SKITEM) AND (Inv_Inquiry_BSKUFIL_TR.VC = SCSFPRD948_BSKUFIL.SKVLIN) AND (Inv_Inquiry_BSKUFIL_TR.Branch = SCSFPRD948_BSKUFIL.SKCLNT)) LEFT JOIN [Branch_Traction_ALL + Region] ON Inv_Inquiry_BSKUFIL_TR.Branch = [Branch_Traction_ALL + Region].Branch;
takes 15 seconds max to run for the same number of records, although it's using "LEFT JOIN" instead of "INNER JOIN". And even funnier, in the second query, if I remove the [Branch_Traction_ALL + Region] table, again the query takes an eternity to run.
I precise that the [SCSFPRD948_BSKUFIL] table is a massive linked table from an ODBC database using IBM iSeries drivers.
Any insight / help would be greatly appreciated !
Thanks,
T.