delete performance
Posted in 2006
Am I overlooking something here ? I just became aware that a high profile ec program is having major slowness doing deletes from a big table. The table contains 53 million rows, is indexed on the columns being queried for the delete, is fragmented on other columns. I've been told there were some issues ( before my time here, and no specifics from the developers ) when doing a simple delete, ie... delete from table where columna=integer. So now, what they are doing is setting up a select cursor by selecting 2 columns, then setting up a delete cursor then fetching from the select cursor to delete. It takes from 2 to 7 minutes per thousand to delete from this table this way. Just wondering, is there something I am overlooking to make this go faster. I'm thinking of telling them to set pdqpriority in their session, also I'm thinking I want to know why the regular delete without the cursors was giving problems. The database is unlogged, so I doubt a long tx was happening. I guess it could have been using temp files and running out of temp space. Any ideas at all would be helpful. Thanks, floyd ======================== -<<Floyd Wellershaus>>- Database Administrator Unix Administrator email: fwellers@yahoo.com Home: 703-430-0805 Cell: 703-477-6045 ======================== http://www.one.org/