Auto Create/update Statistics

DeSp
Member Posts: 105
Do you use AUTO CREATE/UPDATE STATISTICS switches with your Navision database or just run a job (maintenance plan) on some schedule? What is better and what is recommended in case of performance troubleshooting? What is the optimal job schedule in this case?
Thanks in advance.
Thanks in advance.
Nil desperandum
0
Comments
-
Better don't AUTO CREATE STATISTICS, but use a job.
The job, you can create with DB Maintenance. Launch the job once a day (at night when no one is working is the best moment). Best use the highest possible sample percentage. If you notice the job takes too much time (BIG DB), you can make the percentage smaller, but best not under 10%.
Remember also to recreate the indexes at least once a week.Regards,Alain Krikilion
No PM,please use the forum. || May the <SOLVED>-attribute be in your title!0 -
Better don't AUTO CREATE STATISTICS, but use a job.
The job, you can create with DB Maintenance. Launch the job once a day (at night when no one is working is the best moment). Best use the highest possible sample percentage. If you notice the job takes too much time (BIG DB), you can make the percentage smaller, but best not under 10%.Remember also to recreate the indexes at least once a week.Nil desperandum0 -
-AUTO CREATE STATISTICS is not needed
-create SQL statistics with a job once a day (at night when no one is working)
-fillfactor : depends on the table, but I think if you want to use a value for ALL tables, you can use 10%. This leave 10% space to add new records.Regards,Alain Krikilion
No PM,please use the forum. || May the <SOLVED>-attribute be in your title!0 -
Sorry for possible misunderstanding.
Now it is clear for me that it is better to use job instead of AUTO CREATE STATISTICS.-AUTO CREATE STATISTICS is not neededNil desperandum0 -
DeSp wrote:Sorry for possible misunderstanding.
Now it is clear for me that it is better to use job instead of AUTO CREATE STATISTICS.-AUTO CREATE STATISTICS is not neededRegards,Alain Krikilion
No PM,please use the forum. || May the <SOLVED>-attribute be in your title!0 -
hi all,
depending on sql server version:
in 2000 better turn off the auto-features (auto create/update statistics) because the developer did not finish this function... that is, it doesn't work correctly. use sp_createstats 'indexonly' and sp_updatestats instead.
in 2005 turn on async. update of statistics and turn off sync. update stats. always turn on create statistics.
fillfactors depend on:
- no of rows in table
- estimated data growth
- maintenance interval
- the nature of the key (Entry No and such need 100%)
my tool SQLSunrise NavTune calculates them very precisely... and also maintains all necessary index statistics!
it also fixes many other index issues...
if you want to use a one for all fillfactor: for small installations (<15GB) SQLSunrise tends to averages it at around 92, for larger ones (>20GB) the fillfactor is higher (up to 97%).
But again: the fillfactor should be calculated individually PER INDEX, not per table and not per database or even server!
If you choose it too big, page splits will be the result, and if chosen too small, page reads may increase dramatically. in either case, performance loss will occur.Bodo Michael Danitz
MCT, MCITP SQL Server 2005
Author of SQL Server 2005 MOC exam items
and SQLSunrise NavTune:
http://www.sqlsunrise.com0
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