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

Performance Tuning:Long running query Expand / Collapse
Author
Message
Posted Wednesday, April 10, 2013 11:51 AM
SSC Rookie

SSC RookieSSC RookieSSC RookieSSC RookieSSC RookieSSC RookieSSC RookieSSC Rookie

Group: General Forum Members
Last Login: 2 days ago @ 11:28 PM
Points: 26, Visits: 523
Hi,

I have a query which is using left outer join. Query should execute in seconds instead it is getting executed in mins.

Tried the possibilities:

1) Ran profiler to know the performance issue .

2)created appropriate index usage.. fragmentation checked(re-organized index)

3)checked estimated plan which shows clustered index(nested loop)-0.5% oly.

4) Cant optimize query in any means(re -structuring) .

Is there any ways to optimize the query ?
Post #1440962
Posted Wednesday, April 10, 2013 11:54 AM


SSC-Insane

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

Group: General Forum Members
Last Login: Today @ 1:42 AM
Points: 20,799, Visits: 32,717
vishalsurya50 (4/10/2013)
Hi,

I have a query which is using left outer join. Query should execute in seconds instead it is getting executed in mins.

Tried the possibilities:

1) Ran profiler to know the performance issue .

2)created appropriate index usage.. fragmentation checked(re-organized index)

3)checked estimated plan which shows clustered index(nested loop)-0.5% oly.

4) Cant optimize query in any means(re -structuring) .

Is there any ways to optimize the query ?


Based on what you posted? No.

Please post the DDL for the tables including the indexes, your code, and the actual (not estimated) execution plan as a .SQLPLAN file.



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 #1440963
« Prev Topic | Next Topic »

Add to briefcase

Permissions Expand / Collapse