Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Speeding up Stored Procedure
Message
De
13/03/2013 19:46:39
 
 
À
13/03/2013 18:22:55
Information générale
Forum:
Microsoft SQL Server
Catégorie:
Stored procedures, Triggers, UDFs
Divers
Thread ID:
01568261
Message ID:
01568294
Vues:
41
>>>>>
>>>>>When you run this query with Actual Execution plan information, what you get?
>>>>
>>>>I don't know what exactly to tell you. I get an Execution Plan tab displayed with some graphical stuff in it but no particular message that I can tell you. What do you need to know?
>>>
>>>You have the best performance when you have [index seek] in Execution plan, worst is when you have [Table Scan].
>>>Try to remove WHERE and see if you get this faster.
>>>If yes, then should think about workaround.
>>
>>I removed the where and it wasn't noticeably faster. Update: it actually was about 10 seconds faster, without was 20 seconds and with was 30.
>>
>>The execution plan shows index seeks mostly but a couple "Key Lookup (Clustered)"
>>
>>One of those shows as 81% for "Invoices.PK_Invoices"
>
>Frank.. can you try eliminating the SUM() to see what that is costing?

Thanks Bill, it doesn't make much of a difference
Frank.

Frank Cazabon
Samaan Systems Ltd.
www.samaansystems.com
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform