Topics Search

Slow query - How to speed up?

Slow query - How to speed up?
Views: 21
I have the below query running and it is taking forever. I'm not quite sure why as my other queries run with reasonable speed, so I cannot assume it is a network issue. [LAST_NAME] & [EMPLOYEE_NUMBER] are indexed.

The table does have 945k records in it and is housed in a back end DB. I realize that is a lot of records, but this seems to be running abnormally slow.

Here is why I ask.I have a form that provides a search function which is based on this query. The query is not called upon until the user needs to search for an employee.

However, for some reason unknown to me the query runs every time the form is opened. I DO NOT have the query running at the open/load of the form. The only time the query is to run is when the user clicks on a search button.
Sponsored Links:

Similar posts...

 

Query Speed

Query Speed Icon
I have a database which contains tables which are linked (via ODBC) to tables in my company's data warehouse. The tables vary in size and number of records, but the larger tables can contain upwards of 2 Million records.

When I query the data, particularly when I join two large tables, or even one small table with one large table, Access can take up to several minutes to process the query.

I don't understand why Access is so slow in processing the query when the tables are linked; I thought linking tables would reduce network traffic and speed database performance.

Could someone please provide suggestions for how I may be able to speed up the performance of my queries?

The database itself is only 1.56 MB in size (it’s only a test database as I’m in the early stages of development. But if the database is this slow not, I can only imagine when I start adding forms and reports).
 

Query runs slow

Query runs slow Icon
I up sized my 2003backend to SQL 2008. I kept my queries n access frontend. Now my update and append queries run really slow. What can I do. Should I look into converting to stored proc or pass through queries. Would this speed up performance.
 

Inexplicably slow query

Inexplicably slow query Icon
I have a huge query that joins ten different tables and returns around 100 columns.

When I execute the query, it takes less than a minute to run.

If I create a "make table query" with the same, I.e. I just want to store the results of the query in a permanent table, it takes forever (been running for 30 mins, looks like Access is frozen).

I've indexed most of the join fields to speed up the query.
 

Slow Database

Slow Database Icon
I have a access database with a MYSQL back end running on our own server. It runs very well on one PC but on another PC in the same office its runs very slow

What can I try to speed it up
 

Very slow Access 2002 query with Windows 7

Very slow Access 2002 query with Windows 7 Icon
I need help troubleshooting consistently slow queries in an Access 2002 database with Windows 7. I’m running a temporary query in a local copy of a back end database with only tables. The identical query will take just 2-3 seconds with Windows XP but 30-60 seconds with Windows 7.

Multiple Windows 7 workstations are all slow and all Windows XP machines run the query quickly.

I even used JetShowPlan on both workstations to compare and the plans are identical. Two tables are involved with rushmore used on the first and a full scan on the second table of about 150,000 records.

Even in XP Mode on the Windows 7 machine the query still takes only about 10 seconds. Anyone have any ideas why Access/Jet on Windows 7 can be so slow?
 

Slow Query

Slow Query Icon
I have a couple of Select queries which are based on Tables Linked from 3 other Databases.

The queries take around 2.5 minutes to open! This is too slow.

I have imported the tables into the DB and the same Queries run on imported (not linked) tables take around 5 seconds to open. So huge difference.

The Problem is that those Tables are in the other DB's for a reason and they need to stay there.

Is there anything I can do to improve speed of queries that are based on Linked Tables from other Databases?

it talks about setting the Subdatasheet Name property to [NONE].
 

Passthrough Query Performance Slow Using Split Database

Passthrough Query Performance Slow Using Split Database Icon
Prior to splitting the database, my PassThrough query performance was acceptable.
After splitting the database, my passthrough query has become sluggish and slow where my users are not very happy.

When I run a test prior to splitting my database, it would take about 1-5 seconds to retrieve the records using a passthrough.
But after splitting, now that passthrough query will take anywhere from 3 minutes - 10 minutes.

[CODE]

In my sub CompanyHistoryByPeriodTransactions, I added a couple of message boxes to gauge how long it took to/from the passthrough query. This is where I see my slow down occurring.
 

Access vs. TEMP Directory

Access vs. TEMP Directory Icon
I am running Access 2003 on a WinXP (version 2002 service pack 2) machine. It has two drives installed -- one a large, slow system drive and the other a very high speed, smaller flash disk. Every night I use the Access db to process very large numbers of small queries to translate data from one form to another.

The JET engine uses the Windows/TEMP directory to process these queries in.

I would like to force access to use a temp directory of my choosing on the high speed drive to speed up the process and cut down on disk i/o. I tried changing the User environment temp directory to the high speed drive but Access is still using the system temp folder on the low speed drive.

I don't want to move the Windows/Temp folder to the high speed drive because Idon't want to fill that drive with other stuff Windows jams in there.

How can I force Access to use the a temp directory on the high speed drive and leave the windows/temp folder on the system drive?
 

Access Query Slow

Access Query Slow Icon
I am having access table containing 35000 records and 30 columns, when I use query to select one record from that table, query execution takes so much time.

I have created an indexed field . Still execution is slow.
 

Ms Access Query Run Slow

Ms Access Query Run Slow Icon
I've a query that based on some other queries, when I run, it's slow, and even when I scroll down and right-left a los, is there anyway to make it better?