Viewing 15 posts - 16 through 30 (of 52 total)
I use QUEST Spotlight to monitor locking - this technique holds locks very briefly since it is only 2000 rows per transaction. Spotlight recycles every 6 seconds typically there...
March 6, 2013 at 5:42 pm
Interesting idea I have not tried yet, worried about table outage and sp recompiles:-)
March 6, 2013 at 5:39 pm
I size the TEMPDBs at 15GB each which is considerably larger than any single delete job can hit. In addition I keep 40B free on the TEMPDB disk drive...
March 6, 2013 at 5:37 pm
Great question - actually this will impact replication. If you want the deletes to flow through to subscriber no issue other than some latency if not you can modify...
March 6, 2013 at 5:29 pm
If I know there are 50 million rows to remove and I set @cnt = 1,000,000 then I can safely run the job 49 times and know that 1 million...
March 6, 2013 at 5:20 pm
Great question. I run the child table cleanup jobs first then the parent job. Just to be safe I keep more days (16) in the parent table and...
March 6, 2013 at 5:16 pm
I am a big fan of the 2 temp table approach and wrote about that on a previous article published at SQL Central. The difference here is to pull...
March 6, 2013 at 5:11 pm
True enough if back dates are inserted. DBAs need to understand their data, in these tables the event_date is alway 'right now' upon insert so there is no worry...
March 6, 2013 at 5:07 pm
BCP will work in some shops but mine is 24*7 so the deletes have to run online.
Thanks,
March 6, 2013 at 4:58 pm
So much for my new proof reader:-)
March 6, 2013 at 4:55 pm
Good point - I TLOG on the hour so haven't seen a disk space issue so far.
March 6, 2013 at 4:54 pm
This will work if you want to delete all rows. The article keeps the last 6 days of data so you have to check how many rows left.
March 6, 2013 at 4:53 pm
It doesn't need to as the delete uses the view and the view only returns 2000 rows. Since the @cnt limits the total number of rows to those with...
March 6, 2013 at 11:48 am
What level of lock contention do you see with this?
March 6, 2013 at 11:43 am
For those DBAs who inherit a 7*24 application and we can't change much in the database without business impact - this is a low impact method to cleanup tables. ...
March 6, 2013 at 11:40 am
Viewing 15 posts - 16 through 30 (of 52 total)