DB2 Version: 7
OS: Sun UNIX
I am loading a huge table with several million rows as part of a single transaction of the type:
insert into..
select ...
from ..
where ..
The time taken to do the insert seems to be very slow to me (it runs at about 100 rows a second). I've tried various options to improve the performance including:
a) dropping indexes before the insert and then re-creating them afterwards
b) using the alter table .. activate not logged initially to turn off logging
but none of it seems to help much. I was wondering whether anyone could suggest anything else I could try to speed it up. For example, would it be more efficient to dump the data to a flat file and then use LOAD to put it back into the target ?
OS: Sun UNIX
I am loading a huge table with several million rows as part of a single transaction of the type:
insert into..
select ...
from ..
where ..
The time taken to do the insert seems to be very slow to me (it runs at about 100 rows a second). I've tried various options to improve the performance including:
a) dropping indexes before the insert and then re-creating them afterwards
b) using the alter table .. activate not logged initially to turn off logging
but none of it seems to help much. I was wondering whether anyone could suggest anything else I could try to speed it up. For example, would it be more efficient to dump the data to a flat file and then use LOAD to put it back into the target ?