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.
0
Comments
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.
No PM,please use the forum. || May the <SOLVED>-attribute be in your title!
Also affected: NAV 5.0 before SP1
Previous versions of NAV - 3.70 and older - don't have this bug.
NAV/SQL Performance Optimization & Troubleshooting
STRYK System Improvement
The Blog - The Book - The Tool
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.
RIS Plus, LLC
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 you
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 : NO
No PM,please use the forum. || May the <SOLVED>-attribute be in your title!
Fragmentation between 10% and 30% = Reorganize
Fragmentation greater than 30% = Rebuild
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.
No PM,please use the forum. || May the <SOLVED>-attribute be in your title!
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?
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.
No PM,please use the forum. || May the <SOLVED>-attribute be in your title!
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 quickly
RIS Plus, LLC
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.
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!
No PM,please use the forum. || May the <SOLVED>-attribute be in your title!
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.
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 choices
(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'
Independent Consultant/Developer
blog: https://dynamicsuser.net/nav/b/ara3n
Is there any other suggestions , or i have to focus on my hardware only?
And no it's hardly ever just hardware, most of the time it's a combination of things.
RIS Plus, LLC
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.
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
Dynamics NAV, MS SQL Server, Wherescape RED;
PRINCE2 Practitioner - License GR657010572SG
GDPR Certified Data Protection Officer - PECB License DPCDPO1025070-2018-03
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.
No PM,please use the forum. || May the <SOLVED>-attribute be in your title!
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. :-k
No PM,please use the forum. || May the <SOLVED>-attribute be in your title!
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).
No PM,please use the forum. || May the <SOLVED>-attribute be in your title!