PeterBickford
Programmer
Hi folks,
Working with a MS Access 2002-format database, I'm firing off the following query (VB format):
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
Working with a MS Access 2002-format database, I'm firing off the following query (VB format):
Code:
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
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