B
bhipwell via AccessMonster.com
Before I begin rebuilding a particular query in my database, I need to
understand how queries go about running. Let me explain...
I have the following two tables:
Employee
Position
Say I put these two tables in a query. The first item in the query would be
EmployeeID. The other fields contain a number of calculations. In the query,
I have set the criteria of the EmployeeID to match a form.
My question...does the query...
A) First filter down to the employee then do the calculations in the other
fields or
B) Do the calculations for every employee then filter down to the specific
employee
I have a large query which is running a bit slow and am looking to speed it
up. Should the query calculate every employee then filter through the
criteria, I know what I need to do to speed up the query. If the query first
filter through the criteria then does the calculations, I need to begin some
rethinking.
(Note: I have posted my query structure elsewhere and the general concensus
is the query is fine and the database is normalized. It is just the amount
of data and mathmatics slowing the database down.
BH
Thanks!
understand how queries go about running. Let me explain...
I have the following two tables:
Employee
Position
Say I put these two tables in a query. The first item in the query would be
EmployeeID. The other fields contain a number of calculations. In the query,
I have set the criteria of the EmployeeID to match a form.
My question...does the query...
A) First filter down to the employee then do the calculations in the other
fields or
B) Do the calculations for every employee then filter down to the specific
employee
I have a large query which is running a bit slow and am looking to speed it
up. Should the query calculate every employee then filter through the
criteria, I know what I need to do to speed up the query. If the query first
filter through the criteria then does the calculations, I need to begin some
rethinking.
(Note: I have posted my query structure elsewhere and the general concensus
is the query is fine and the database is normalized. It is just the amount
of data and mathmatics slowing the database down.
BH
Thanks!