Fix continuous deleting rows performance issue