Optimise Navision

Simo_ba
Member Posts: 78
Hi guys,
i'm not an expert in SQL, but i need to stop runnig Optimise Tables from Navision and relpace it with something else that will be run at the SQL server side as scheduled Job.
So i found Stryk SP ssi_delzerosift, but i read in the Mibuso site that deleting SIFT record may cause Flowfield calculation troubles.
So guys i'm really confused, what can i do to plan a maintenance plan for my Navision Database instead of runing Optimise Tables.???
i'll apreciate any suggestion.
Thank you.
i'm not an expert in SQL, but i need to stop runnig Optimise Tables from Navision and relpace it with something else that will be run at the SQL server side as scheduled Job.
So i found Stryk SP ssi_delzerosift, but i read in the Mibuso site that deleting SIFT record may cause Flowfield calculation troubles.
So guys i'm really confused, what can i do to plan a maintenance plan for my Navision Database instead of runing Optimise Tables.???
i'll apreciate any suggestion.
Thank you.
0
Comments
-
If you use the latest update for NAV 4.0SP3, then you won't have problems with the flowfield calculations.
So you can use it.
Even if you don't deleting SIFT records, create a job to rebuild the indexes on SQL. This should be done at least once a week and each day you should do a SQLstatistics calculation. Or (if possible) do each day an indexrebuild.Regards,Alain Krikilion
No PM,please use the forum. || May the <SOLVED>-attribute be in your title!0 -
The problem with inconsistent FlowFields after SIFT maintenance affects the NAV versions 4.0 Build No. >= 19365 to < 25143; this was fixed with NAV 4.0 SP3 Update 6 Build 25143.
Also affected: NAV 5.0 before SP1
Previous versions of NAV - 3.70 and older - don't have this bug.Jörg A. Stryk (MVP - Dynamics NAV)
NAV/SQL Performance Optimization & Troubleshooting
STRYK System Improvement
The Blog - The Book - The Tool0 -
Thanks guys,
Unfortunatly, i ran a rebuiled index from sql it takes 18h to be done, is it something to be done to improve my data base performance, by the way i bought your sql-performance book stryk good job, keep up the good work.
so my issue is, my client want to replace Navision Table Optimisation, with a scheduled Job in Sql, any suggestion guys??
Thank you a lot.0 -
Simo_ba wrote:Thanks guys,
Unfortunatly, i ran a rebuiled index from sql it takes 18h to be done, is it something to be done to improve my data base performance, by the way i bought your sql-performance book stryk good job, keep up the good work.
so my issue is, my client want to replace Navision Table Optimisation, with a scheduled Job in Sql, any suggestion guys??
Thank you a lot.
There are probably things that can be done. Exactly what depends on the details of the performance issues. We are running a nightly reindex/reorg plus stats update that runs in about 30 to 40 minutes on a 120 GB database.There are no bugs - only undocumented features.0 -
An index rebuild taking 18 hours feels to me like it has one of two factors. Ether you have severe hardware issues, or probably more likely there are users (or other processes) connecting to the database while the reindexing takes place. I've seen a reindexing of a table with one record take an hour because it was constantly being updated by a NAS timer.0
-
can you guys send me T-sql for relbuild index SQl2005. reorg also if it possible 'id like to comapre it with my script.
Can you guys help me with that?
1.wich option should i check when rebuilding index.
A-Reorganazie pages with default amount o free space or
B-Change free space per page percentage to <what will be the best %>??
Advanced Options:
C-Sort results in tempdb Yes or No??
D-Keep Index online Yes or No??.
2-Should i make a Database singleUser only when processing a rebuild index??
Reorg:
Compact large object Yes No?
Thank you0 -
You can use the maintenance plan for creating the rebuild index.
1. "A" But in the SQL-server options, I would put the fillfactor to 90%
"C": Yes, but only if you have the temp-DB on its own dedictated drives. I don't remember if you need Enterprise edition or not
"D": Not needed, it you do the rebuild index during off-hours. BTW: you need the Enterprise edition if you want to do it online.
2. Not necessary if done during off-hours.
Reorg : Compact large Object : NORegards,Alain Krikilion
No PM,please use the forum. || May the <SOLVED>-attribute be in your title!0 -
Fragmentation less than 10% = Ignore
Fragmentation between 10% and 30% = Reorganize
Fragmentation greater than 30% = RebuildThere are no bugs - only undocumented features.0 -
Thanks guys,
i run a rebuilt indexes and it takes eternity, is there any suggestion to check something to do with.
Thank you.0 -
Simo_ba wrote:Thanks guys,
i run a rebuilt indexes and it takes eternity, is there any suggestion to check something to do with.
Thank you.
This last can help a lot because you throw away a lot of indexes.Regards,Alain Krikilion
No PM,please use the forum. || May the <SOLVED>-attribute be in your title!0 -
Hi kriki,
my DB is 100GB, i have 12 company, we did some sql tuning,when we upgrade to sql2005 and Nav4 sp3.
which suggested tuning may helpe on Reindex performance issues?.
When i run Nav Tables Optimisation it taked 7hours,
when i run Rebuilt index it taked 18 hours.
can you suugest to me some tuning to do?0 -
It is strange that the indexrebuild takes more time then the optimize in Navision.
The SQL tuning should remove some unnecessary indexes/SIFT-levels, thus reducing the time to re-index them.
What is the diskconfiguration of your server?
For your DB I would recommend at least: (all disks RPM15000)
4 disks in RAID10 (even better 6 disks) for DB
2 disks in RAID1 for temp-db
2 disks in RAID1 for logfile (4 disks in RAID10 in case you have full recovery model)
and 2 disks in RAID1 for system (or if needed : put this together with the temp-DB).
PS : I hope you don't do a shrink of the DB-file or the TL-file. This should be avoided as it can create fragmentation and takes extra time to do a indexrebuild.
PS2 : also check if your disks aren't too fragmented.Regards,Alain Krikilion
No PM,please use the forum. || May the <SOLVED>-attribute be in your title!0 -
with 12 companies you have huge numbers of tables, which is probably severely magnified by huge numbers of keys and SIFT levels. I'll say it again: your hardware needs to be looked at, you need to make sure no users are connected when the reindexing takes place, and you could probably use a LOT more index tuning.
What you should do is purchase some tools for your maintenance, and get an expert involved to help you tune your database. I could continue here, but that would turn into advertising pretty quickly0 -
Yup. That is the biggest danger of this part of the forum.
18 hours on 100GB with 12 companies is definately not bad.
I've seen miracles happen with a reindex but also dissapointed customers who expected more.
Try to get a helicopter view of your issues and avoid to focus on one part only.0 -
kriki wrote:...
4 disks in RAID10 (even better 6 disks) for DB
...
Interesting.
I woudl be recommending at least 8 and maybe 10 drives for this many companies with 100Gig. Maybe i am just overkilling it, but with 15k SAS drives around $200 each, its just too cheap to bother using less imho.David Singleton0 -
David Singleton wrote:kriki wrote:...
4 disks in RAID10 (even better 6 disks) for DB
...
Interesting.
I woudl be recommending at least 8 and maybe 10 drives for this many companies with 100Gig. Maybe i am just overkilling it, but with 15k SAS drives around $200 each, its just too cheap to bother using less imho.
I should update myself on hardware costs....
In this case, I would go for as much as technically possible! Will be worth the investment!Regards,Alain Krikilion
No PM,please use the forum. || May the <SOLVED>-attribute be in your title!0 -
Can you explain the 6 disk configuration for raid 10?
Lets me see if I get this.
Lets say I have Disk 1, 2,3. I mirror them with disks a,b,c
1+a,2+b,3+c.
How do you stripe then?
For 8 disk it make sense.
You have disk 1, 2,3,4. You mirror them with disks a,b,c,d
1+a,2+b,3+c,4+d. Then you stripe (1a+2b) and (3c+4d).
Will this be a virtual drive? Wouldn't performance be bad if all the data is written to (1a+2b)?
Thanks for clarification.my 2 cents0 -
RAID 10 is a stripe of mirrored drives. RAID 0+1 is a mirror of two strip sets. Which one usually depends on your RAID controller's features.There are no bugs - only undocumented features.0
-
bbrown wrote:RAID 10 is a stripe of mirrored drives. RAID 0+1 is a mirror of two strip sets. Which one usually depends on your RAID controller's features.
As you can see above I am mirroring the drives and then don't know how you would stripe them.
I'm talking about RAID 10 only. You mirror the drives then stripe them.my 2 cents0 -
NavStudent wrote:bbrown wrote:RAID 10 is a stripe of mirrored drives. RAID 0+1 is a mirror of two strip sets. Which one usually depends on your RAID controller's features.
As you can see above I am mirroring the drives and then don't know how you would stripe them.
I'm talking about RAID 10 only. You mirror the drives then stripe them.
It's all handled by the controller. Either your controller supports RAID 10 or it doesn't. It would be one of the setup choicesThere are no bugs - only undocumented features.0 -
For the 6 disk configuration.
(1+a),(2+b),(3+c) lets call them 1',2',3'.
The data is striped across 3 drives.
When you write to these drives lets say. SALSA
S gets written to 1',
A gets written to 2',
L gets written to 3',
S gets written to 1',
A gets written to 2'0 -
Thanks guys,
Is there any other suggestions , or i have to focus on my hardware only?0 -
Maybe you should start your own thread instead of taking this one over.
And no it's hardly ever just hardware, most of the time it's a combination of things.0 -
kriki wrote:They cost only $200? :shock:
I should update myself on hardware costs....
In this case, I would go for as much as technically possible! Will be worth the investment!
These days the costs are (in this order)
1/ the time to do the work
2/ the box to put the drives in
3/ The controller
the cost of the drives should not even come into the equation.
So its the same work to ad 4 or 10 drives, and the controller should handle it, so just fill the box up.David Singleton0 -
kriki wrote:2 disks in RAID1 for logfile (4 disks in RAID10 in case you have full recovery model)
What's the difference in recovery model ?? Regardless of recovery model every single transaction _has_to_be_written to log file to be considered commited.
Regards,
SlawekSlawek Guzek
Dynamics NAV, MS SQL Server, Wherescape RED;
PRINCE2 Practitioner - License GR657010572SG
GDPR Certified Data Protection Officer - PECB License DPCDPO1025070-2018-030 -
Slawek Guzek wrote:kriki wrote:2 disks in RAID1 for logfile (4 disks in RAID10 in case you have full recovery model)
What's the difference in recovery model ?? Regardless of recovery model every single transaction _has_to_be_written to log file to be considered commited.
Regards,
Slawek
I have had a customer that made a TL-backup every 10 minutes. It took about 6 minutes to do it and during the TL-backup the system was very slow. (I am not sure anymore if it was a SQL-TL backup or some external tool). So a RAID10 in this case would have helped somewhat.
But if I have to choose between
a) 6 disks in RAID10 for DB + 2 disks in RAID1 for TL
b) 4 disks in RAID10 for DB + 4 disks in RAID1 for TL
I definitly go for a) even with full recovery.Regards,Alain Krikilion
No PM,please use the forum. || May the <SOLVED>-attribute be in your title!0 -
kriki wrote:I have had a customer that made a TL-backup every 10 minutes. It took about 6 minutes to do it and during the TL-backup the system was very slow.
Maybe they were making the backup direct to tape? I have seen that kill the system. 6 min to back up 10 minutes of data sounds excessive to me. :-kDavid Singleton0 -
David Singleton wrote:kriki wrote:I have had a customer that made a TL-backup every 10 minutes. It took about 6 minutes to do it and during the TL-backup the system was very slow.
Maybe they were making the backup direct to tape? I have seen that kill the system. 6 min to back up 10 minutes of data sounds excessive to me. :-kRegards,Alain Krikilion
No PM,please use the forum. || May the <SOLVED>-attribute be in your title!0 -
Don't make the backup directly to the tape (to slow) or to an network drive (could bring bad performance for the network).
Thats our way: every 10 min TL Backup to an local HDD and copy than to Tape. Also 1x @day one full backup (at night).Do you make it right, it works too!0 -
garak wrote:Don't make the backup directly to the tape (to slow) or to an network drive (could bring bad performance for the network).
Thats our way: every 10 min TL Backup to an local HDD and copy than to Tape. Also 1x @day one full backup (at night).Regards,Alain Krikilion
No PM,please use the forum. || May the <SOLVED>-attribute be in your title!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