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 > Sybase > Sybase 12.5 delete command slows down

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1 (permalink)  
Old 12-25-10, 17:00
davy.van.delsen davy.van.delsen is offline
Registered User
 
Join Date: Dec 2010
Posts: 1
Exclamation Sybase 12.5 delete command slows down

Dears,

I have a serious issue with our sybase server [or something related] causing a delete command of 20.000.000 rows to go from 40 minutes to 4 hours of deletion time.

the unix system is an AIX.

We have already checked if there are other jobs using the table where we are deleting our records from , but this is not the case.


The weird thing is that even tough the volume of the daily load is quite constant [+/- 18.000.000 up to 20.000.000] on a total of 80.000.000 rows, suddenly this delete statement starts to take up too much of our time.

Our space division has already checked the I/O on the raw devices and they see a slight increase but not this significant to pinpoint this as the reason for our troubles.

A showplan shows that an index is beeing used, so we do not see a sudden change in plan from index to tablescan ...

Has anyone already suffered the same issues and if so, what to do about it, or has anyone some idea where we might look for , ...disks? settings in sybase...

thanks in advance,

yours,
Davy
Reply With Quote
  #2 (permalink)  
Old 02-19-11, 21:34
farhy farhy is offline
Registered User
 
Join Date: Aug 2010
Posts: 19
do you delete the data with one statement like delete from table where ...
or in small chunks, eg 2000 records a once?

I assume you delete in one statement:

just a few comments:

*) for about 25% of the data a full table scan might be better, I canīt imagine that the index is the best choice in your scenario -- try to update the statistics

*) such a big data change stresses the transaction log, can you set the db in simple mode during this operation?
Reply With Quote
Reply

Tags
delete statement, index, slow

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