PHWinfo banniere

Titres
PORTAIL ANNUAIRE ARTICLES COMPARATEUR HÉBERGEURS DEVIS FORUMS RÉDUCTEUR D'URL
Précédent   PHWinfo > Forums Hébergement > Forum Hébergement serveur > ms.sqlserver.server > Possible to profile for "high number of executes"?
S'inscrire FAQ Membres Recherche Messages du jour Marquer les forums comme lus
Possible to profile for "high number of executes"?

Réponse
 
LinkBack Outils de la discussion
Vieux 14/07/2008, 15h51   #1
Ian Boyd
Aucun Avatar
 
Messages: n/a
Hébergeur:
Par défaut Possible to profile for "high number of executes"?

We have a system that was written with a few scalar UDF's.

These seem to perform very poorly, in that they get run per-row rather than
set based (which is fine, and if it were up to me i would not use them).

But what i was hoping for is a way to find operations in profiler that have
a high execution count (5000, 10000, 100000) for a single query.

Right now in profiler i include the execution plan with costs, and can go to
each one looking at the execution plan for the number of executes.

There already is "hash warning", "Scan begin", "missing statistics" events.
Perhaps there is "executes warning"?



  Réponse avec citation
Vieux 14/07/2008, 21h53   #2
Ian Boyd
Aucun Avatar
 
Messages: n/a
Hébergeur:
Par défaut Re: Possible to profile for "high number of executes"?

> We have a system that was written with a few scalar UDF's.
>
> These seem to perform very poorly, in that they get run per-row rather
> than set based (which is fine, and if it were up to me i would not use
> them).


Nevermind. These UDF's are running during a "Compute Scalar" operation,
which only ever has one execute.

So even though in profiler i see it executing thousands of times (once for
each row), it's really only executing once.

So there's no way to profile by number of executes.


  Réponse avec citation
Vieux 14/07/2008, 23h23   #3
Andrew J. Kelly
Aucun Avatar
 
Messages: n/a
Hébergeur:
Par défaut Re: Possible to profile for "high number of executes"?

No not directly. You would have to trace to a file and then parse the
results such that you can aggregate them up and get the totals. Have a look
at this: http://www.cleardata.biz/cleartrace/



--
Andrew J. Kelly SQL MVP
Solid Quality Mentors


"Ian Boyd" <ian.msnews010@avatopia.com> wrote in message
news:Ovswbte5IHA.5052@TK2MSFTNGP03.phx.gbl...
>> We have a system that was written with a few scalar UDF's.
>>
>> These seem to perform very poorly, in that they get run per-row rather
>> than set based (which is fine, and if it were up to me i would not use
>> them).

>
> Nevermind. These UDF's are running during a "Compute Scalar" operation,
> which only ever has one execute.
>
> So even though in profiler i see it executing thousands of times (once for
> each row), it's really only executing once.
>
> So there's no way to profile by number of executes.
>


  Réponse avec citation
Réponse


Outils de la discussion

Règles de messages
Vous ne pouvez pas créer de nouvelles discussions
Vous ne pouvez pas envoyer des réponses
Vous ne pouvez pas envoyer des pièces jointes
Vous ne pouvez pas modifier vos messages

Les balises BB sont activées : oui
Les smileys sont activés : oui
La balise [IMG] est activée : oui
Le code HTML peut être employé : non
Trackbacks are oui
Pingbacks are oui
Refbacks are oui


Fuseau horaire GMT +1. Il est actuellement 03h08.


Édité par : vBulletin® version 3.7.3
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
Search Engine Friendly URLs by vBSEO 3.2.0 RC5 Tous droits réservés.
Version française #16 par l'association vBulletin francophone
PHWinfo est un site Éducation Sans Frontières ©2000-2008
Ad Management by RedTyger
©Tous droits réservés par les parties respectives
Page generated in 0,10143 seconds with 11 queries