If my quesion is not specific enough please tell what details are missing.
We are runing daily archive operations on the whole database where we keep data from the last 30 days. We are deleting data in 100 records batches. For one particular table Which has the biggest(in terms of size) records it take around 3-5 hours to delete all 2 millions of old records even just after index maintenance operations. Also deletions of that particular table causes PLE to drop. My question is how to accelerate that proces and avoid PLE drops?
Sql-server – Avoid PLE drops while performing DELETE operations
sql serversql-server-2012
Related Question
- Sql-server – How to avoid timeouts during big DML operations
- SQL Server – Could ‘Maximum Server Memory’ Be Too Low for Large Batched Delete?
- SQL Server 2012 – How to Minimize Log Operations to Avoid ‘Log Full’ Error
- Sql-server – Huge data and performance in SQL Server
- Sql-server – Transactional replication using articles filters and delete operations
- SQL Server – How to Resolve Hangs Indefinitely on Certain Joins
- Sql-server – Extracted data WAY bigger than deficit left from deleted rows
Best Answer
we need more detail like table structure along with data type and index details.
Try opposite method.
Keep data of last 30 days and truncate old table.
For example (Step 1),