Hi,
First let me explain the process I have going on, then I'll address the
problems I'm having:
1) Insert records in a temp table using a query
2) Using a query that joins the temp table with TableA Insert records
into TableB
3) Delete records from temp Table
4) Table specs;
temp Table - 4 fields, 3 indexes, gets 100-4500 records inserted
TableA - 53 fields, 21 Indexes, 11 Relationships, ~25,000 records
TableB - 17 Fields, 10 Indexes, 5 Relationships, ~130,000 records
5) Environment Specs;
Development PC - P4-1.6Ghz, 512 Mb RAM, WinXP Pro SP1
Production PC - Celeron 1Ghz, 256 Mb RAM, WinXP Pro SP1, Networked
to an older server specs not available but its not that speedy. Both FE
and BE on Network (not ideal, but it hasn't caused any slowdowns until
this one).
Heres the problem; using the extreme end of this process (ie 4500
records in the temp Table) this takes 9 seconds to process on my
development PC, but takes ~15 minutes on the Production PC. I tried
enclosing the process in a Transaction to try and speed it up. This
results in no noticable increase in speed, but it does cause an 'out of
memory' error to occur if the user has any other applications running at
the same time. The Insert to the temp Table takes only ~30 secs and the
Inserts into the existing table take the rest. Same number of records,
but vastly different process times.
I've been reading the recommondations in the MS KB
(http://support.microsoft.com/default...b;en-us;889588)
and see that appends with a WinXP client below sp2 can be slow, but then
shouldn't both appends be slow? Is it maybe all the indexes and
relationships (15 total) that are slowing it down? Many of the items
mentioned in the KB article are changes on the server side and it could
be a hassle to convince the SA to play with the registry. Does using the
Transaction force the data to not be allowed to go into the swap file?
It really doesn't seem like it should be a lot of data to hold in RAM
(Task Manager - Network tab shows ~6 MB of data transfered to the
workstation in the first 2 min, then almost no network traffic for the
rest of the process).
Any ideas on what I should try next?
--
Bri