SQL server, more on the Ghost cleanup task
Hi Guys, During the last post we saw that data are not physically deleted from the table where you execute a delete statement. Data are marked as deleted only. It is a scheduled task called Ghost cleanup task that physically removes data from the table. We have also seen that we can disable this process via global traceflag number 611. So, if you enable flag 611, the records will no longer be automatically removed from the table. (In reality this is not true for the heap tables where the traceflag 661 has no effect ) Sure, they are not of those configurations to try in production! But what would that entail? The positive thing is that in the presence of many cancellations the workload of the server should be less. The bad thing is that the disk space is not freed up and that as the tables are physically larger, the table scan should take longer. But let's see if that's true or not with an example! What happens if you disable the Ghost cleanup task? Before running the exam...