Evening All
I have a query which, when run as a select query, takes around 1 minute to run, and returns a recordset on screen which looks correct. When, however, the same query is run as an Append query, it takes - well so far it's at four hours, and it isn't even halfway yet.
Some details: The database is huge. The main records table has over 1.5m records, and there are other supporting tables. The database is designed to produce budget information by taking a set of cost values and apportioning them over various cost centres, using an apportionment matrix held in a separate table. This results in an Output table of over 3.1m records, and a file size of nearly 2Gb. The original designers used Access (2003) rather than Excel (2003) because of the restrictions on the no of records per worksheet in Excel, but even this is now at its limits.
The incoming data consists of a variety of Data Types, each of which has its own section in the apportionment table. The query in question deals with one Data Type. A filter in one of the selected field reduces the no of records to around 48000. There are three other selected fields and one calculated field, which is simply the product of the value field and its corresponding apportionment entries. This results in an output recordset of around 105k records.
Any suggestions or advice would be gratefully received. I have tried everything I can think of, and a few that others have thought of; the number of output fields has been reduced to an absolute minimum; all appropriate fields have been indexed - I'm at my wits end. The most frustrating part is the disparity between the speed of the two types of query - and being able to see the result without being able to do anything with it.
Thanks
Paul
I have a query which, when run as a select query, takes around 1 minute to run, and returns a recordset on screen which looks correct. When, however, the same query is run as an Append query, it takes - well so far it's at four hours, and it isn't even halfway yet.
Some details: The database is huge. The main records table has over 1.5m records, and there are other supporting tables. The database is designed to produce budget information by taking a set of cost values and apportioning them over various cost centres, using an apportionment matrix held in a separate table. This results in an Output table of over 3.1m records, and a file size of nearly 2Gb. The original designers used Access (2003) rather than Excel (2003) because of the restrictions on the no of records per worksheet in Excel, but even this is now at its limits.
The incoming data consists of a variety of Data Types, each of which has its own section in the apportionment table. The query in question deals with one Data Type. A filter in one of the selected field reduces the no of records to around 48000. There are three other selected fields and one calculated field, which is simply the product of the value field and its corresponding apportionment entries. This results in an output recordset of around 105k records.
Any suggestions or advice would be gratefully received. I have tried everything I can think of, and a few that others have thought of; the number of output fields has been reduced to an absolute minimum; all appropriate fields have been indexed - I'm at my wits end. The most frustrating part is the disparity between the speed of the two types of query - and being able to see the result without being able to do anything with it.
Thanks
Paul