Why does query take 1 minute or two hours to run?
- From: "Peter Bickford" <PeterBickford@xxxxxxxxxxxxxxxxxxxxxxxxx>
- Date: Mon, 12 Sep 2005 00:01:01 -0700
Hi folks,
Working with a MS Access 2002-format database, I'm firing off the following
query (VB format):
SQL = "SELECT UI FROM Issues I RIGHT JOIN Update_Issues UI ON (I.FullIssue =
UI.FullIssue) AND (I.Title = UI.Title)" & vbCrLf & _
"WHERE I.FullIssue IS NULL" & vbCrLf & _
"ORDER BY UI.Title, UI.FullIssue;"
newRS.Open SQL, myConn, adOpenForwardOnly, adLockReadOnly
The tables in question contain about 250,000 issues, indexed on both
FullIssue and Title. In most cases, the query runs in under a minute. Every
so often, however, it takes about an hour or more to run. During that time,
the CPU is running at about 50%, memory is about 75% free, and the disk is
nearly silent.
What's going on? What system resource is being exhausted which is causing
the slowdown, and what can I do to prevent it?
Thanks for any help folks can offer. A bottle of bubbly goes to the first
person who help me get to the bottom of this one!
-Pete
--
Peter Bickford
Principal, Human Computing
.
- Follow-Ups:
- RE: Why does query take 1 minute or two hours to run?
- From: DWS
- Re: Why does query take 1 minute or two hours to run?
- From: ronloxton
- RE: Why does query take 1 minute or two hours to run?
- Prev by Date: ADO with Excel using .csv? (VB6-Pro)
- Next by Date: Problems with UTF8. Unicode, ADO and MySQL
- Previous by thread: ADO with Excel using .csv? (VB6-Pro)
- Next by thread: Re: Why does query take 1 minute or two hours to run?
- Index(es):
Relevant Pages
|
|