statsman query question

Bgestel
Member Posts: 136
Hi Nav community,
i'm running the application benchmark toolkit and the sql server profiler is scanning for queries that take longer then 50 msec and is see a lot off queries like this. Does this indicate i made a mistake optimizing sift levels or are these queries a result of the profiler. the application name that comes with this query is Microsoft Dynamics NAV client
thanx in advance
SELECT StatMan([SC0]) FROM (SELECT TOP 100 PERCENT [f11018207] AS [SC0] FROM [dbo].[Performance Test Company$337$2] WITH (READUNCOMMITTED,SAMPLE 1.000000e+002 PERCENT) ORDER BY [SC0] ) AS _MS_UPDSTATS_TBL
i'm running the application benchmark toolkit and the sql server profiler is scanning for queries that take longer then 50 msec and is see a lot off queries like this. Does this indicate i made a mistake optimizing sift levels or are these queries a result of the profiler. the application name that comes with this query is Microsoft Dynamics NAV client
thanx in advance
**********************
** SI ** Bert Van Gestel **
**********************
** SI ** Bert Van Gestel **
**********************
0
Comments
-
This is the great result of activating auto update and create statistics.
As you see, in some cases it causes huge overhead.
You can turn it of, but only if you run a reindex regularly.0 -
You mean update statistics right. Reindexing does not automatically update the statistics AFAIK.0
-
DenSter wrote:You mean update statistics right. Reindexing does not automatically update the statistics AFAIK.
-Index defrag does NOT update the statistics.Regards,Alain Krikilion
No PM,please use the forum. || May the <SOLVED>-attribute be in your title!0 -
I would never recommend to any customer to turn off Autoupdate and Autocreate statistics. I have seen WAY to many customer turn it off on Monday and by Friday their perfomance is in the trash, and of course they never bother to manually update the stats or the job fails and they nobody ever notices. Personal opionion if they can not handle the overhead of STATMAN they do not have adaquate hardware.
Just me 2 cents.0 -
Nobody wrote:I would never recommend to any customer to turn off Autoupdate and Autocreate statistics. I have seen WAY to many customer turn it off on Monday and by Friday their perfomance is in the trash, and of course they never bother to manually update the stats or the job fails and they nobody ever notices. Personal opionion if they can not handle the overhead of STATMAN they do not have adaquate hardware.
Just me 2 cents.0 -
I would always recommend they turn it off AND put in place a maintenance plan to update stats reularly. With all queries in NAV being cursors, SQL Server gets flooded with unnecessary statistics.0
-
i turned it off and put maintenance plan in place,
by by queries and welcome performance
thnx for the information**********************
** SI ** Bert Van Gestel **
**********************0
Categories
- All Categories
- 73 General
- 73 Announcements
- 66.6K Microsoft Dynamics NAV
- 18.7K NAV Three Tier
- 38.4K NAV/Navision Classic Client
- 3.6K Navision Attain
- 2.4K Navision Financials
- 116 Navision DOS
- 851 Navision e-Commerce
- 1K NAV Tips & Tricks
- 772 NAV Dutch speaking only
- 617 NAV Courses, Exams & Certification
- 2K Microsoft Dynamics-Other
- 1.5K Dynamics AX
- 320 Dynamics CRM
- 111 Dynamics GP
- 10 Dynamics SL
- 1.5K Other
- 990 SQL General
- 383 SQL Performance
- 34 SQL Tips & Tricks
- 35 Design Patterns (General & Best Practices)
- 1 Architectural Patterns
- 10 Design Patterns
- 5 Implementation Patterns
- 53 3rd Party Products, Services & Events
- 1.6K General
- 1.1K General Chat
- 1.6K Website
- 83 Testing
- 1.2K Download section
- 23 How Tos section
- 252 Feedback
- 12 NAV TechDays 2013 Sessions
- 13 NAV TechDays 2012 Sessions