We have a 3.10B native database and we use average costing.
The database size is over 150GB and we're planning to do some date compressions and history cleanups to reduce the database size and increase performance. I don't want to get into any performance debates, I just want to ask the experts if we should attempt to run a date compression on item ledger entry knowing that we use average costing.
Thank you,
Carmen
Carmen Stanciulescu
Vancouver, Canada
0
Comments
RIS Plus, LLC
If i remember correctly there was a problem with the date compression in 3.1 - I remember a hotfix :-k
Check Old Sales Inv & Sales Lines or Shipping Lines etc, for possible deletion. But keep a backup before you do any of this incase you need the info again. Plus deletetions like this don't effect any costs.
http://www.BiloBeauty.com
http://www.autismspeaks.org
If you really have to compress, delete the posted shipment/invoice/CM, compress customer ledger, compress G/L. But do not compress ILE or VE.
Also, try switching to SQL if you're still on native. SQL is better at handling large databases than native.
AP Commerce, Inc. = where I work
Getting Started with Dynamics NAV 2013 Application Development = my book
Implementing Microsoft Dynamics NAV - 3rd Edition = my 2nd book
Cheers,
Carmen
Vancouver, Canada
I rather you not. But do so at your own discretion.
If your DB is really that big, have you considered moving to SQL instead of purging data? :-k
AP Commerce, Inc. = where I work
Getting Started with Dynamics NAV 2013 Application Development = my book
Implementing Microsoft Dynamics NAV - 3rd Edition = my 2nd book
Vancouver, Canada
Have you considered using Upgrade Centers to do the upgrade for you? They specialize in upgrading large databases and may be able to help you finish the upgrade over a weekend.
AP Commerce, Inc. = where I work
Getting Started with Dynamics NAV 2013 Application Development = my book
Implementing Microsoft Dynamics NAV - 3rd Edition = my 2nd book
Vancouver, Canada
What are your plans when the data fills up again? Deleting data is NOT a solution for performance issues. (No matter what you've been led to believe!) It is a temporary band-aid at best.
RIS Plus, LLC
AP Commerce, Inc. = where I work
Getting Started with Dynamics NAV 2013 Application Development = my book
Implementing Microsoft Dynamics NAV - 3rd Edition = my 2nd book
RIS Plus, LLC
Looks like there is some interest in this topic so let's talk about it.
Here's some more details:
1. We have a high transaction volume database. We got to 150 GB in 6 years.
2. We don't need to keep more than 5 years of GL and 3 years of customer and vendor history.
3. Navision performance is not bad.
4. It takes about 28 hours to restore the database from a Navision backup.
5. We plan to move to SQL Server but we are not ready for it yet.
Here's our plan:
1. Data clean-up. We need to make it a periodic activity to clen-up history every year.
2. Clean-up indexes and sumindex fields. Just ran Eduard Sanosian's Unused Keys tool - Love it! We're in pretty good shape there. A handfull of keys we can get rid of.
3. Get educated on SQL Server. I am a SQL Server 2000 MCP but haven't got the chance to practice SQL Admin enough so that I can take the DBA role for the Navision SQL Database. With this much data, we need to tune the SQL Server for performance.
4. Last and not least, we need to budget for the hardware and SQL license.
I am open for any suggestions. What is your experience with databases of this size? What is the best practice for maintenance and performance? How do you plan for moving to SQL?
Thank you,
Carmen
Vancouver, Canada
You raise some interesting discussion points:
1. We have a high transaction volume database. We got to 150 GB in 6 years.
I'm not sure I would consider 150 GB in 6 years to be a high transaction volume. But it depends on specifics. It's some what of a subjective number and would depend on what makes up that 150 GB.
In contrast, we are working with a customer that took 5 years to reach 20 GB with just core financials. But since going live with manufacturing has produced an additional 100 GB of data in the past 15 months. Their current growth rate is 6 to 8 GB per month.
2. We don't need to keep more than 5 years of GL and 3 years of customer and vendor history.
Only you can decide the value (or lack) of your historical data. Look before you leap. Understand what you are giving up (data not available) and what you possibely gain. Also be aware of potential issues and test.
I do not have confidence in the compression routines for inventory. I ran into an issue with a client that had run the process.
3. Navision performance is not bad.
This again is subjective. Performance is not good or bad, but rather acceptable or unacceptable. What is acceptable to one client may be unacceptable to another. Only you can decide what is acceptable for your site.
If a site operates from 8 to 5 each day, having Adjust Cost take 6 hours each night may be acceptable. But that same performance might not be acceptable on a site that run longer hours.
Can you give any details on the issues caused by inventory date compression?
To clarify, we consider Navision performance acceptable, as far as normal day to day operations. You are right, we are running short on off-operation time for batch processes and the restore takes too long.
Looks like you are not in favor of data clean-up.
Any suggestions for database maintenence and improved performance?
Thanks,
Carmen
Vancouver, Canada
I see. Thank you for sharing.
Vancouver, Canada
What would be your first level option based on the info. you have about my scenario?
What do you think about table optimization in a standard database as a maintenance routine?
Vancouver, Canada
Review your hardware and system build. Is it configured in a manner to achieve maximum performance from NAV?
What does the disk system look like? Is there oppurtunity for improvement. Spread the database across multiple RAID 1 arrays. Are they dedicated to the database?
Does the NAV service have maximum cache set an is write-cache on?
Look at the processes themselves. Is there oppurtunity to improve the process thru code changes or using better keys?
these are just a few thoughts..
I would invite Daniel and Alex to contribute as well if they are still interested in the subject.
I think we did consider most of these areas for improvement.
We have a dedicated server with dedicated disks - 7 sets of Raid 1. Write through, no cache on the disks - as far as I know this is what is recommended for Navision. We get 4 - 7 mean read and write times. DBMS Cache is at 900 MB. Server performance is great. We have a farm of 4 citrix servers for the 100 users in 25 locations. No complaints about performance during the day. Nightly routines - I optimized as much as I could. We are not in panic mode - still manage to complete all batch processes at night, but trying to be proactive and prepare for the future.
We were concerned about the disaster recovery time because it takes 28 hours to restore the Navision database from the Navision backup. We have to stop the service and take disk image at night as well.
Do you have any better solution?
Thank you all for a great discussion.
Regards,
Carmen
Vancouver, Canada
For disaster recovery, back up and restore is MUCH MUCH faster on SQL and I'd strongly advise you to move to SQL first before trying to purge.
AP Commerce, Inc. = where I work
Getting Started with Dynamics NAV 2013 Application Development = my book
Implementing Microsoft Dynamics NAV - 3rd Edition = my 2nd book
Most of the time we're talking about index tuning in relation to SQL Server, but native databases can benefit from tuned indexes as well. You'd be surprised how much space indexes take up on native.
Just to elaborate on Alex's remark that resoring on SQL Server is much faster: this is only if you use SQL Server backups. Restoring a NAV backup takes just as long on SQL Server as it does on native, plus you have to have the transaction log on about 2-3 times the disk capacity as the other data files to accommodate the huge transaction log that the restore process will generate.
RIS Plus, LLC
We did consider cluster servers, but could not justify the cost.
SQL Server, yes. We are going to move to SQL but not right now.
How long would you expect it to take to convert to SQL Server a 150GB Navision database?
Did you find that table optimization improves performance on a standard database?
Vancouver, Canada
Don't expect the conversion of a 150 GB database to SQL to be a simple slam-dunk backup/restore. You will need to plan lots of time for testing and performance tuning.
I know we need to do a lot of testing and tuning. I'm just trying to figure out if when we're ready and the day comes, a weekend is enough to go live on SQL. I'll have my answer when we start testing but I thought I'd ask what your experience is so I know what to expect.
Vancouver, Canada
I'm working on another one where we have a very short upgrade window. That's around 140 GB.
No, we just bought the software. Haven't got the chance to test the database restore yet, but we tested other servers and it works pretty sleek. It's a pretty cool tool. Have a read at http://www.acronis.com.
We stop the server service before taking the image, and we don't use disk write cache.
Vancouver, Canada