|
-
Feb 4th, 2018, 02:59 AM
#4
Thread Starter
Junior Member
Re: Deleting selected records from a large database table
Ok, I ran some tests with the same block of test data each time.
I ran
Dbs.Execute "DELETE FROM " & tblAcronym & " WHERE " & acrSOURCE & " = '" & sRecordType & "'"
It took 60 seconds.
I added an index to the acrSOURCE field and re-ran the test.
It dropped to 30 second.
However the dbOpenDynaset looping method only took 15 seconds!
I tried wrapping it with Transactions, but that just runs for a while and stops with an error.
Error 3035 System Resource Exceeded
Tags for this Thread
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|