If this is your first visit, be sure to check out the FAQ by clicking the link above. You may have to register before you can post: click the register link above to proceed. To start viewing messages, select the forum that you want to visit from the selection below.

 
Go Back  dBforums > Database Server Software > Informix > tricky performance problem on DELETE

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1 (permalink)  
Old 08-03-06, 09:22
erik1975 erik1975 is offline
Registered User
 
Join Date: Jul 2005
Location: Graz / AUT
Posts: 9
Exclamation tricky performance problem on DELETE

hello,

i have following problem on my IDS 7.31 :

Table A (with 20 columns) has 450 000 records; and an index on
column ID.

executing an select ....from A where ID = 1234 is OK (very fast)
BUT
when i execute
delete from A where ID = 1234 it takes 10 to 20 seconds !!!

i did an "update statistics", but i have the same behaviour.

any suggestions ????

thanks a lot

Erik
Reply With Quote
  #2 (permalink)  
Old 08-03-06, 11:03
Tyveleyn Tyveleyn is offline
Registered User
 
Join Date: Aug 2006
Location: The Netherlands
Posts: 248
A delete trigger defined for the table? Or perhaps an 'on delete cascade' constraint on a child table?

BTW. If you select just the indexed value the engine will only go through the index pages and will return the result much faster offcourse than when it has to fetch the subsequent datapage from disk.

Regards.

Last edited by Tyveleyn; 08-03-06 at 11:20.
Reply With Quote
  #3 (permalink)  
Old 08-04-06, 03:18
erik1975 erik1975 is offline
Registered User
 
Join Date: Jul 2005
Location: Graz / AUT
Posts: 9
yes there is(was) a BAD trigger which we transferred from an old system.
we have forgotten to convert it.

thank's for the hint.

PROBLEM IS SOLVED

Erik
Reply With Quote
Reply

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On