Hello,
Every first of the month I perform an insert of roughly 70.000 new records into a table that consists of some 1.5 million records. The table has a primary key consisting of 5 fields (salesrep,customer,item,year, month). The source database is AS400 (DB2), the target is DB2 7.1.
I really just want to insert a new recordset,there is no chance of a primary key violation during insert, because combination of year and month is , of course , a new one.
The problem i am facing lies in the insert speed. It is down to about 20 rows/second, which means about an hour just for inserting the data. Compared to insert speed in truncated tables, this is 20-50 times slower. I run the datawarehouse and the Powermart server on the same machine (NT, 350Mhz, 512Mb, Powermart 5.1.3). Commit is about after every 10.000 records.
Does anyone have suggestions how to improve the insert speed? All I can think about is dropping the index on the table prior to doing the insert session, but this is not something I want to do by hand (session runs at 6.45 in the morning) I can not find a Powermart functionality that does this. T. Blom
Information analist
Shimano Europe
tbl@shimano-eu.com
Every first of the month I perform an insert of roughly 70.000 new records into a table that consists of some 1.5 million records. The table has a primary key consisting of 5 fields (salesrep,customer,item,year, month). The source database is AS400 (DB2), the target is DB2 7.1.
I really just want to insert a new recordset,there is no chance of a primary key violation during insert, because combination of year and month is , of course , a new one.
The problem i am facing lies in the insert speed. It is down to about 20 rows/second, which means about an hour just for inserting the data. Compared to insert speed in truncated tables, this is 20-50 times slower. I run the datawarehouse and the Powermart server on the same machine (NT, 350Mhz, 512Mb, Powermart 5.1.3). Commit is about after every 10.000 records.
Does anyone have suggestions how to improve the insert speed? All I can think about is dropping the index on the table prior to doing the insert session, but this is not something I want to do by hand (session runs at 6.45 in the morning) I can not find a Powermart functionality that does this. T. Blom
Information analist
Shimano Europe
tbl@shimano-eu.com