Click here to monitor SSC
SQLServerCentral is supported by Red Gate Software Ltd.
 
Log in  ::  Register  ::  Not logged in
 
 
 
        
Home       Members    Calendar    Who's On


Add to briefcase «««123

Batch Delete is Slow :angry: Expand / Collapse
Author
Message
Posted Tuesday, April 22, 2014 1:54 AM


SSC-Insane

SSC-InsaneSSC-InsaneSSC-InsaneSSC-InsaneSSC-InsaneSSC-InsaneSSC-InsaneSSC-InsaneSSC-InsaneSSC-InsaneSSC-Insane

Group: General Forum Members
Last Login: Today @ 8:46 AM
Points: 20,747, Visits: 32,562
yuvipoy (4/21/2014)
Sorry i did not replace my table plan, now i replaced my plan with the table which i have give.


But you didn't answer any of the questions. Changing the name of the table and columns doesn't solve the issues presented. There still isn't enough information to do anything but shoot in the dark and hope we give you answer that works.

Ask yourself if you knew nothing about the problem could you answer the question with what is provided.



Lynn Pettis

For better assistance in answering your questions, click here
For tips to get better help with Performance Problems, click here
For Running Totals and its variations, click here or when working with partitioned tables
For more about Tally Tables, click here
For more about Cross Tabs and Pivots, click here and here
Managing Transaction Logs

SQL Musings from the Desert Fountain Valley SQL (My Mirror Blog)
Post #1563712
Posted Tuesday, April 22, 2014 6:37 AM


SSC-Insane

SSC-InsaneSSC-InsaneSSC-InsaneSSC-InsaneSSC-InsaneSSC-InsaneSSC-InsaneSSC-InsaneSSC-InsaneSSC-InsaneSSC-Insane

Group: General Forum Members
Last Login: Today @ 8:46 AM
Points: 20,747, Visits: 32,562
yuvipoy (4/21/2014)
Sorry i did not replace my table plan, now i replaced my plan with the table which i have give.


More issues. You renamed the table to TABLE2 and the column to COL10. Issue, there is no COL10 in the DDL for TABLE2. There is a TCOL10 and it is declared as a float. The value you are comparing this column to appears to be a BIGINT not a float.

You still need to answer all the other questions I asked earlier as well.

You also stated in your initial post:

I am deleting some 200000 records from 5000000 rows.


The estimated execution plan indicates that you may actually be trying to delete 3,655,550 rows of data.


Please answer all the questions you have been asked and explain exactly what it is you are trying to accomplish. Without these answers, I am done trying to help. Sorry.



Lynn Pettis

For better assistance in answering your questions, click here
For tips to get better help with Performance Problems, click here
For Running Totals and its variations, click here or when working with partitioned tables
For more about Tally Tables, click here
For more about Cross Tabs and Pivots, click here and here
Managing Transaction Logs

SQL Musings from the Desert Fountain Valley SQL (My Mirror Blog)
Post #1563814
« Prev Topic | Next Topic »

Add to briefcase «««123

Permissions Expand / Collapse