How to improve the deletion rate.
From: Tuhin Kumar <tkumar_at_ipolicynet.com>
Date: 22 Dec 2003 03:20:04 -0800
Message-ID: <e4ad76f5.0312220320.6bb0ab35_at_posting.google.com>
Date: 22 Dec 2003 03:20:04 -0800
Message-ID: <e4ad76f5.0312220320.6bb0ab35_at_posting.google.com>
Hi,
I have a requirement on improving the deletion rate on on records
of a table.
The performance I am getting is deletion of 1.5 lakhs records
happening in 10 minutes. I am looking forward to 10 lakhs records in
10 minutes.
The table contains 5 million records, but since deleting everything
matching the condition at one go was giving the ROLLBACK segment
allocation error, the query was called in a loop and deleting 2000
rows at one interation.
My query is:
DELETE FROM Table1 WHERE TimeStamp >= TO_DATE('2003-11-30 18:30:00',
'YYYY-MM-DD HH24:MI:SS') and TimeStamp <= TO_DATE('2003-12-18
18:29:59', 'YYYY-MM-DD HH24:MI:SS') AND ROWNUM < 2000
Thanks,
Tuhin
Received on Mon Dec 22 2003 - 12:20:04 CET