I have a table containing 450,000 records (yes I know it's probably pushing the limits for Access) and need to perform an operation to summarise certain records and append them to another table, containing about 2,000-3,000 records.
Not surpirisingly it takes quite a while (5 hours in fact). I want to make sure that I have done everything I can to make sure this operation runs as fast and as smoothly as possible.
Therefore I am in the process of making the following changes to all of the tables used in the append query:
1. set up additional indexes.
2. change several 4 character string fields from strings to long integer values (they store things like year and id numbers etc).
3. set the 'Use Transaction' property in the append query to No.
I am hoping the above changes will make quite a dent on the time taken to perform this task. Can ayone suggest anything else that might help?
At present the table is sitting within the database, would it make any difference if the records were read from a flat file instead?
Also, is it likely to be any quicker if, instead of using an append query, I use VBA to write the new records?
Not surpirisingly it takes quite a while (5 hours in fact). I want to make sure that I have done everything I can to make sure this operation runs as fast and as smoothly as possible.
Therefore I am in the process of making the following changes to all of the tables used in the append query:
1. set up additional indexes.
2. change several 4 character string fields from strings to long integer values (they store things like year and id numbers etc).
3. set the 'Use Transaction' property in the append query to No.
I am hoping the above changes will make quite a dent on the time taken to perform this task. Can ayone suggest anything else that might help?
At present the table is sitting within the database, would it make any difference if the records were read from a flat file instead?
Also, is it likely to be any quicker if, instead of using an append query, I use VBA to write the new records?