Linked Oracle table query gets much slower when returning much less data

projecttoday

Registered User.
Local time
Today, 02:58
Joined
Jan 5, 2011
Messages
64
I have an Access database which is reading tables in an Oracle database using linked tables and pass-through queries. I have one query that has me puzzled. It has a WHERE clause that selects from a table based on one column being greater than a specified numeric value. The thing is when I use a value that returns most of the records in the table, it runs way faster than when I use a value that returns a small fraction of the total records.

The only thing different between the 2 cases is I'm changing this constant value in the query. This happens with both a linked-table version of the query and a pass-through version of the query. The almost-all records takes a few seconds to return its results while the restricted select takes 8 minutes or more. Can anybody shed some light as to why this works this way?
 
Can you post the sql?
 
Everything seems to be working fast this morning. I'll get back later when it starts happening again, which I'm sure it will. Thanks for looking.
 

Users who are viewing this thread

Back
Top Bottom