Database size reduced after restore
 
            
                
                    akman                
                
                    Member Posts: 67                
            
                        
            
                    Hello,
I just made a technical upgrade from NAV4SP2 to NAV5SP1. To do so, I restored a navision backup from the new client. I use the sql server option (sql server 2008).
The database size before the technical upgrade and after a database shrink, was about 30 gb (just the data without the transaction log). After the technical upgrade, the new database is just about 13 gb.
I had never deleted zero sift entries. Is this size reduction normal?
Regards
                I just made a technical upgrade from NAV4SP2 to NAV5SP1. To do so, I restored a navision backup from the new client. I use the sql server option (sql server 2008).
The database size before the technical upgrade and after a database shrink, was about 30 gb (just the data without the transaction log). After the technical upgrade, the new database is just about 13 gb.
I had never deleted zero sift entries. Is this size reduction normal?
Regards
0                
            Comments
- 
            Hi,
 I think this has to do with the fact that 5.0SP1 works with SQL Server views and doesn't use the SIFT tables any more. The number of tables of which the database consists is therefore much smaller and requires less space. But I never thought that the effect would be so great. This should give you a huge permance boost.0
- 
            At the moment, you don't have 0-sift records anymore and ONLY the lowest level is saved in the DB with 5.0SP1+.
 So you that can change a lot.Regards,Alain Krikilion
 No PM,please use the forum. || May the <SOLVED>-attribute be in your title!0
- 
            
 there's a long explanation to do about SIFT and VSIFT to explain what is the "lowest level": search mibuso for "SIFT buckets" or similar, and you'll find it.akman wrote:kriki wrote:At the moment, you don't have 0-sift records anymore and ONLY the lowest level is saved in the DB with 5.0SP1+.
 So you that can change a lot.
 Thank you all for your answers.
 What do you mean by lowest level? I can change a lot?
 anyway...the so called VSIFT (indexed views that substituted the old SIFTs) cannot be changed except by sql side, but if you want to do it...don't do it : ask an expert, because it is not easy, and there are better ways to optimize your database, before this one...moreover, if you re-save the table which vsift have been modified by sql, you'll lose the modification. : ask an expert, because it is not easy, and there are better ways to optimize your database, before this one...moreover, if you re-save the table which vsift have been modified by sql, you'll lose the modification.
 Morale: you can't do anything about vsift, except activating/deactivating them (that is, remove maintainsiftindex flag on key list of a nav table).0
- 
            akman wrote:kriki wrote:At the moment, you don't have 0-sift records anymore and ONLY the lowest level is saved in the DB with 5.0SP1+.
 So you that can change a lot.
 Thank you all for your answers.
 What do you mean by lowest level? I can change a lot?
 Well, actually we HAVE Zero-SIFT records with VSIFT, too: when the VSIFT is summing by SELECT SUM(...) GROUP BY ... it happens naturally that certain sums equal zero (I don't know if this still applies to the most recent NAV versions). The problem with VSIFT is, that you cannot simply delete those records as it was possible with old SIFT.
 That is the reason why some queries perform slower with VSIFT than with optimized SIFT - if there are too many of those Zero-Sum-Records calculated by the VSIFT, reading data might be slowed down.
 As mentioned, you cannot delete those "records" (as they are no real physical records), thus VSIFT optimization is somewhat tricky ...
 Regarding "lowest level": this means to aggreagate / group the sums by the complete defined "Key" (without trailing PK fields); not by an increasing multi-level aggreagtion as with standard SIFT.Jörg A. Stryk (MVP - Dynamics NAV)
 NAV/SQL Performance Optimization & Troubleshooting
 STRYK System Improvement
 The Blog - The Book - The Tool0
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
- 322 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



