Hello,
Since december 2006 were are running Navision 4.0 SP1 on SQL Server2K.
We are facing a problem with the size of the database. It growes about 3 GB per day.
Looking at tables , somes strange infos appear:
Table 355 , Ledger Entry Dimension is about 22Gb with 1.7 Million rows,
SQL Server tells about 20 GB unused space !
Item ledger entry, ledger entry are facing the same problem. A database
schrink doesn´t reclaim that unused space.
Our database is now 82 GB large but starting a "navision backup" , the backup file has 1,2 GB.
We haven´t change anything in original settings.
Has anybody experienced that kind of situation ?
0
Comments
What is the size of a transaction log?
3GB per day is huge increase, btw... in 1 year you'll have 1TB of data...
2) Which recovery model you are using? (File-Database-Alter-Options)
MVP - Dynamics NAV
My BLOG
NAVERTICA a.s.
The problem seems to be the unused space in the mdf file.
Database Recovery : Full
Transaction backup : every 6 hours , size about 400MB
How many dimensions you are using? (each dimension leads to big grow per posted line...)
MVP - Dynamics NAV
My BLOG
NAVERTICA a.s.
Following Tables are occupying huge amount of space
355Ledger Entry Dimension 1825466 rows 23.1 GB
5802 Value Entry 374142 rows 8.2 GB
17 G/L Entry 381637 rows 6.5 GB
32 Item Ledger Entry 271799 rows 6.3 GB
358 Production Document Dimension 546989 rows 5.5 GB
407 Prod. Order Component 285895 rows 4.4 GB
But e.g. in our customers table we have:
T355 - 8763609 records = 1039280Kb ~ 1GB
T5802 - 3171786 records = 5524160Kb ~ 5,5GB
etc...
For me there is something wrong with defragmentation, indexes or fill factor.
MVP - Dynamics NAV
My BLOG
NAVERTICA a.s.
RIS Plus, LLC
We have open a call at Microsoft support. I´ll let you know the result of
their investigations.
(but with defragmantation , indexes or fill factors I think you´re on the right side)
Is it usual in Navision to use clusterred indexes ?
MVP - Dynamics NAV
My BLOG
NAVERTICA a.s.
All Primary keys up until 4.0 Sp2 are setup as clustered. After sp2 you can change them to secondary keys.
Independent Consultant/Developer
blog: https://dynamicsuser.net/nav/b/ara3n
RIS Plus, LLC
That's the first rule of navision.
Independent Consultant/Developer
blog: https://dynamicsuser.net/nav/b/ara3n
RIS Plus, LLC
Run a DBCC CheckDB on the database and look at the number of reported errors (should be 0).
If this returns no errors, then check the space usage on the tables you mentioned
Example
EXEC sp_spaceused 'CompanyName$Customer'
This will give you the space allocation between data and indexes.
For maintenance you can use the SQL Perform maintenance tools. This will update statistics, reconfig fill factors, remove empty Sift, etc.
For analisys you can use SQL Perform analisys, this will also check your db for heaps (SP1 bug) and analyse which indexes and sift tables have the biggest impact on your database.
The installation is very easy and it gives you a huge jumpstart in your tuning.
The tuning of your database means carefully creating an index plan that is optimum for your company. Every company uses navision diferently, so every company needs their own index plan.
Good luck.
Our DB has now 10 GB.
But we will go on with setting the CI and tuning the performance.
Thanks again to all of you.
No PM,please use the forum. || May the <SOLVED>-attribute be in your title!