50 rows deletion from a table taking 8-10 minutes
Posted in 1999
Topics: Storage & Space Management, Platform-Specific Issues, Versions, Editions & End-of-Life
HI,
On my test box my table has only 50 rows in it. But when I run the
statement
delete from pick_op_pallet;it takes about 8-10 minutes. On the same database deletion of 50000 rows
from other tables takes 20-30 seconds. This table does not have any
child table. But it refers to some parent tables. On test box it has 50
rows, but in production it normally has about 1 million rows at any
time. Therefore The Ist extent allocated on test box is about 50000
pages. Would one expect this delete to take this much time. I am running
IDS 7.3.1 on this box with HP-UX 10.20.
Any help on this is greatly appreciated.
Thanks,
Khem Chander
kchande@yahoo.com
This table does not have any > child table. But it refers to some parent tables. Probably, this is the reason. On test box it has 50 > rows, but in production it normally has about 1 million rows at any > time. Therefore The Ist extent allocated on test box is about 50000 > pages. Would one expect this delete to take this much time. I am running > IDS 7.3.1 on this box with HP-UX 10.20. > > Any help on this is greatly appreciated. Delete time is dependent on very much factors. Most important are : number of indexes in table, number of foreign keys in table, LRU's configuration, disk configuration, number of Informix buffers and so on. If you want additional help - send us your ONCONFIG, logs, system configuration, database schema. -- With best regards, Yuri Dovgart, SAP R/3, Informix consultant, "Telecominvest" company. E-mail y_dovgart@tci.ukrtel.net Sent via Deja.com http://www.deja.com/ Share what you know. Learn what you don't.
In article <7jasn8$58e$1@nnrp1.deja.com>, Yuri Dovgart <y_dovgart@tci.ukrtel.net> writes >This table does not have any >> child table. But it refers to some parent tables. > >Probably, this is the reason. > > On test box it has 50 >> rows, but in production it normally has about 1 million rows at any >> time. Therefore The Ist extent allocated on test box is about 50000 >> pages. Would one expect this delete to take this much time. I am >running >> IDS 7.3.1 on this box with HP-UX 10.20. >> >> Any help on this is greatly appreciated. > >Delete time is dependent on very much factors. Most important are : Most important (certainly under SE) is are all the indexes unique? I've seen deleting a few thousand rows go down from hours to minutes by making all indexes unique. >number of indexes in table, number of foreign keys in table, LRU's >configuration, disk configuration, number of Informix buffers and so >on. If you want additional help - send us your ONCONFIG, logs, system >configuration, database schema. > >-- >With best regards, Yuri Dovgart, >SAP R/3, Informix consultant, >"Telecominvest" company. >E-mail y_dovgart@tci.ukrtel.net > > >Sent via Deja.com http://www.deja.com/ >Share what you know. Learn what you don't. -- David Williams