Stay ahead of the game: Dynamics NAV system’s performance Hynek Muhlbacher Ludo Van den Ende SQL Perform
2
Passionate about your system performance! 3 Experienced specialists100% focus on performanceInternational coverageProven methodologyDelivered hundreds of projects
SQL Perform Partners 4 And many more! Apologies to the ones being here and not being on the slide!
SQL Perform Customers 5 And many more! In fact we have 500+ active customers!
NAV/SQL Performance Complex World 6 SQL Server Hardware SQL Server Network NAV Database SQL Server Maintenance Indexes/VSIFT C/AL Code T-SQL Queries NAV Server Hardware NAV Server Client Hardware NAV Client Locks/Blocks/Deadlocks Application Design
NAV/SQL Performance Complex World ++ In addition Reporting Services, Data Warehousing High Availability, Clustering Replication, Log Shipping, Mirroring Disaster Recovery Business Continuity Web/Other Interfaces.... 7
Pyramid Of Performance NAV/SQL Performance Complex World 8 SQL Server Hardware SQL Server Network NAV Database SQL Server Maintenance Indexes/VSIFT C/AL Code T-SQL Queries NAV Server Hardware NAV Server Client Hardware NAV Client Locks/Blocks/Deadlocks Application Design
Performance Wins Pyramid 9 SQL Server Hardware SQL Server Network NAV Database SQL Server Maintenance Indexes/VSIFT C/AL Code T-SQL Queries NAV Server Hardware NAV Server Client Hardware NAV Client Locks/Blocks/Deadlocks Application Design Performance Wins Pyramid
Areas of focus 10 SQL Server Hardware SQL Server NAV Database Indexes VSIFT C/AL Code T-SQL Queries Locks Blocks Deadlocks SQL Server Configuration NAV Database Design NAV Application Design SQL Server Performance Audit Application Audit Server Maintenance
Or another view ApplicationSQL ServerHardware
More Pain – More Gain The higher we go on the pyramid, the higher are performance wins SQL Server Configuration Minor/moderate improvements But important (!) – Setup & Maintenance NAV Database Design Moderate efforts, moderate improvements NAV Application Design Bigger efforts, bigger improvements 12
Out Of The Box Thinking T-SQL Queries T-SQL Reports Reporting Services Business Intelligence Application Design Logic Archiving Strategies 13
Performance Tuning Yields Application Infrastructure – 20% 80 – 90%
SQL Perform Tools Family We need tools 15
SQL Perform Tools Family 16 SQL Perform Tools Perform-Tools for Dynamics NAV Perform-Tools for SQL Server Archive-Tools for Dynamics NAV
Perform-Tools for Dynamics NAV Efficient Analysis Preventive Maintenance Proactive Monitoring 17
Perform-Tools Summary 18
Helicopter View Report 19 SQL Server Hardware SQL Server NAV Database Indexes VSIFT Locks Blocks Deadlocks NAV/SQL Server Performance Audit Server Maintenance Helicopter View Report T-SQL Queries
SQL Server Hardware Example Findings Disks Disks IO load not separated Low level (SAN, RAID type) issues CPU Power Scheme Hyper-Threading RAM Network 20
21 Example: disk response times & IO requests
SQL Server Setup Example Findings Configuration Max Server Memory Max Degree of Parallelism TempDB setup Multiple files Pre-sized small NAV DB setup Multiple files Fragmented log Autogrow 22
SQL Server Configuration Perform-Tools command “pt_sqlsetup” 23
SQL Server Configuration Perform-Tools “pt_filesetup” and “pt_filesetupt” 24
SQL Server Configuration Perform-Tools “pt_filesetup” and “pt_filesetupt” 25
SQL Server Configuration Log Fragmentation 26
SQL Server Configuration Memory – Ludo we need a story here or hide it... 27
NAV Database Setup 28
SQL Server Maintenance Performance related Rebuilding Indexes Creating/Updating Statistics DR related Check Database Consistency Backups 29 Perform- Maintenance
Indexes/SIFT Over-indexed databases Low selectivity indexes/SIFT Sub-optimum fetches Blocks/deadlocks/timeouts on indexes/SIFT 30
Locks/Blocks/Deadlocks/Timeouts Guaranteed to happen! Focus on Blocks, because Timeouts and Deadlocks are the results of Blocks Who is blocking? What application area is blocking? When are blocks high? Leading to Improving indexes Re-designing application 31
Blocks Analysis 32
Deadlocks Case – Pernod Ricard 33
34
35
Giant savings at Fritom 36
Inefficient Queries 37
New NAV humongous queries we need to update this with Ludo 38
Proactive Monitoring Perform-Tracking Collects vital statistics Alerts on business critical situations 39
Recent case - alerts Deleted Change Log Entries Inserted them in a new table Transaction started at 8 PM - finished just before 12PM 1 GB left before and error happened > rollback 40
Trending Analysis – blocks example 41
Fixed deadlocks at Pernod Ricard 42
Helped HEINEKEN in La Réunion 43
Perform-Tools Summary Efficient Analysis You need tools to analyse the system Preventive Maintenance Must be in place Proactive Monitoring Peace of mind 44
Archive-Tools for Dynamics NAV Maintaining Lean NAV Database 45
NAV Data Lifecycle OperationalReferenceArchive Needed for day to day transacting Needed for reporting and business decisions Needed for legal compliance and business protection CREATE DISCARD
Archiving Process 47 Live DatabaseArchive Database Archived Data Live Data trimmed compressed Archive Compress
How does it work? Example ‘big’ CRONUS database Archiving is done for Example focusses on G/L Entry
Before Archiving Drill down 2695 entries
After Archiving Compressed 61 entries Summary per G/L Account Month Dimension (set) Document No. replaced, Negative Entry No.
Before Archiving
After Archiving Dimension information is kept
Navigate Old Entries Should be done from the archive database
Navigate in the Archive Database Related documents available (depends on the scope)
Archive-Tools ™ 55 Archive- Tools Perform- Archiving Perform- Compression Perform- Dataport
Design Principles and Features 56 Original data never deleted Legal and fiscal requirements are met Any NAV table handling Customization, add- ons, base application Execution within same transaction Rollback if an error is encountered Fast T-SQL execution Compared to C/AL code in NAV The power of undo De-archive possible Dimension handling All functionality retained Link tables handling Orphans are not there Traceability – registers History of archiving retained Data visibility Historic data anytime available
Customer Case 57
Archiving G/L Entry & Coffee 58
Archiving G/L Entry & Coffee 59
Summary - Return On Investment Live database is kept small Legal and fiscal requirements are met You can keep running NAV forever! 60
Questions?
Thank you
Get in touch Contact Us SQL Perform Europe SQL Perform Germany SQL Perform North America Other Regions