Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Mike Lewis on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Why is my query taking so long?

Status
Not open for further replies.

pingman

Programmer
Jan 27, 2001
7
0
0
US
Hi there everyone! I am just curious to know if there is any way to speed up queries. I currently have one that is taking a few minutes rather than seconds to complete. It is an append query that appends another table in the database. Any suggestions? All tables are indexed. Thanks for your suggestions.

Pingman
 
Query performance can be affected by any number of things.

Number of records affected.
Size of records.
Speed of the PC running the query.
Speed of hard drives.
Network speed if database is on a network drive.
NOTE: Updates, appends and even selects can be slower across network than if the database is on a local drive.
Amount of RAM available.
Amount of unused disk space available.

All these things are obvious and have probably been checked out or can't be changed easily. Less obvious factors include.

Too many indexes on a table when appending records. Having to write multiple indexes can slow append queries considerably.
Table in use in multi-user database. Table or pages of table can be locked causing waits.
Is the table native Access or linked via ODBC? Linked tables can be much slower to append.

It would be helpful to have more information - Access version, OS, linked table or not, etc. You could also help us by posting the query so we could analyze it. Terry

"The greatest obstacle to discovery is not ignorance -- it is the illusion of knowledge." - Daniel J Boorstin
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top