Performance Question
                
                    Flare                
                
                    Member Posts: 2                
            
                        
            
                    Hi,
we work with navision 40SP1
Since we updated to 40SP1 we have some performanceissues.
The serverhardware is really fine and no leaks there.
First i will do is to set the indexes to clustered, i hope it will boost the performance a bit.
I reorganize data and index pages with a maintance plan daily. (fillfactor 30% )
Must i create a second maintanace plan for update statistcs ?
Greets Flare
                we work with navision 40SP1
Since we updated to 40SP1 we have some performanceissues.
The serverhardware is really fine and no leaks there.
First i will do is to set the indexes to clustered, i hope it will boost the performance a bit.
I reorganize data and index pages with a maintance plan daily. (fillfactor 30% )
Must i create a second maintanace plan for update statistcs ?
Greets Flare
0                
            Comments
- 
            Jesus, 30%?!?!
This means that you leave 70% free space on all pages.
I would consider this way too much!
My tool SQLSunrise calulates fillfactors for a maintenance intervall pretty precisely, and for big tables the average fillfactor lies around 97%. Which is pretty obvious, if you look at it like this: 3% space in a table that has 10 million records would mean enough space for 300000 new records (if the keys are distributed evenly), which should be enough for one week, i guess...?
Please adjust your fillfactors to around 95, and this will boost again.Bodo Michael Danitz
MCT, MCITP SQL Server 2005
Author of SQL Server 2005 MOC exam items
and SQLSunrise NavTune:
http://www.sqlsunrise.com0 - 
            [Topic moved from Navision forum to SQL Performance forum]Regards,Alain Krikilion
No PM,please use the forum. || May the <SOLVED>-attribute be in your title!0 - 
            Flare wrote:Must i create a second maintanace plan for update statistcs ?
To give you a much-too-late answer: yes you should create a maintenance plan to update statistics (indexonly is enough).
Best is to first rebuild the indexes, then update statistics.0 - 
            Best is to first rebuild the indexes, then update statistics.
I don't think that you need to update the statistics after rebuilding the indexes. The statistics will be updated while rebuilding the indexes.
Am i wrong?
tobias0 - 
            
Good question. I think they are updated while rebuilding. I think this because with when creating a Database Maintenance plan, if you select to rebuild, you CAN'T select also to create statistics.toor wrote:Best is to first rebuild the indexes, then update statistics.
I don't think that you need to update the statistics after rebuilding the indexes. The statistics will be updated while rebuilding the indexes.
Am i wrong?
tobiasRegards,Alain Krikilion
No PM,please use the forum. || May the <SOLVED>-attribute be in your title!0 - 
            
And what is the percentage of records that SQL samples on your machine?Waldo wrote:Hm, you can update statistics with the "indexonly" property.
To be sure, I would just do it... . It takes 30 seconds on our 40Gb database ... not worth not to do it
And what kind of machine is it?Regards,Alain Krikilion
No PM,please use the forum. || May the <SOLVED>-attribute be in your title!0 - 
            It's a 4CPU 6GB server.
first question :
I do a sp_createstats 'indexonly' without the fullscan parameter.
This is the "help" text:
The SQL Server 2005 Database Engine makes sure a minimum number of values are sampled to ensure useful statistics
It's always better to do a fullscan, then you're sure the stats are 100% useful, but if you don't specify it, SQL Server 2005 will make sure the stats are useful ... so in 30 seconds you have useful stats ... .
That's why I say it's better do it, than to guess it's updated through index rebuild.
You agree?0 - 
            
Yes.Waldo wrote:That's why I say it's better do it, than to guess it's updated through index rebuild.
You agree?
The reason I asked was that SQL2000 proposes 10% of sampling and it take about 10-15 minutes for a DB of about 20GB.Regards,Alain Krikilion
No PM,please use the forum. || May the <SOLVED>-attribute be in your title!0 - 
            Data sampling is great for auto-updating systistics on the fly, but it is good to schedule a Stat update with FULLSCAN as part of a regular maint. schedule.0
 
Categories
- All Categories
 - 73 General
 - 73 Announcements
 - 66.7K 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
 - 323 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
 
