J
Jim Bunton
Is there any way of persuading Jet to execute queries in a specific manner.
My specific issue is that I have a function included in an sql statement
eg MySlowFunction([columnName]) as ABitSlow
The general form of the query is
SELECT aColumn
FROM LotsOfRecords
WHERE cutstherecordsdowndrastically
AND mySlowFunction(aColumn) = x
IT's pretty obvious that MySlowFunction is being run agains ALL the rows
instead of just those defined by 'cutstherecordsdowndrastically'
I can show this by running the function on a query that's already cut the
rows down drastically.
BUT it would be a sight more elegant to persuade Jet to follow the same
stratergy.
[and possibly easier as the query is generated in code]
My specific issue is that I have a function included in an sql statement
eg MySlowFunction([columnName]) as ABitSlow
The general form of the query is
SELECT aColumn
FROM LotsOfRecords
WHERE cutstherecordsdowndrastically
AND mySlowFunction(aColumn) = x
IT's pretty obvious that MySlowFunction is being run agains ALL the rows
instead of just those defined by 'cutstherecordsdowndrastically'
I can show this by running the function on a query that's already cut the
rows down drastically.
BUT it would be a sight more elegant to persuade Jet to follow the same
stratergy.
[and possibly easier as the query is generated in code]