I have a union query that returns about 100,000 records. The query runs in about 20 seconds - I don't have a problem with this performance. But when I create another query that simply reads the records returned by the union query and appends them to an empty temporary table (which will be used for reporting), this append process takes about 15 minutes. I'm looking for any ideas that can improve the performance of this append process.
The sql code is effectively like this:
There are actually 19 fields written to the table (just not showing all of them to make this easier to read). The target table does not have any indexes (they are applied later).
Thanks for your help.
The sql code is effectively like this:
Code:
INSERT INTO tblTemp(F1,F2,F3)
SELECT qryUnion.F1, qryUnion.F2, qryUnion.F3
FROM qryUnion;
There are actually 19 fields written to the table (just not showing all of them to make this easier to read). The target table does not have any indexes (they are applied later).
Thanks for your help.