Inventory Valuation Performance on SQL

Alex_Chow
Member Posts: 5,063
Does anyone out there have a good way to speed up the Inventory Valuation report using SQL?
The problem with the report is that it goes through every item ledger entry in the system and finds the appropriate applied entries.
The current process takes wwwaaaayyy too long! ](*,)
The problem with the report is that it goes through every item ledger entry in the system and finds the appropriate applied entries.
The current process takes wwwaaaayyy too long! ](*,)
Confessions of a Dynamics NAV Consultant = my blog
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
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
0
Answers
-
Ok, after receiving some hints from Mark Brummel, the inventory valuation report is running a lot faster now after tuning.
One of the areas where major bottleneck happens is the the Item Application Entry table. I had to create indexes for the WHERE clause on the Item Application Entry table. This also boosted the performance when the Adjust Cost - Item Entries is ran.
I think the reason why it's not there in the first place was because of performance issues during INSERT or UPDATE in SQL.
BTW, I like to solve my own questions on this forum.Confessions of a Dynamics NAV Consultant = my blog
AP Commerce, Inc. = where I work
Getting Started with Dynamics NAV 2013 Application Development = my book
Implementing Microsoft Dynamics NAV - 3rd Edition = my 2nd book0 -
One more thing, in case you don't know, you can find the WHERE clause using the SQL Profiler.
You can find what index SQL is using by activating the Client Monitor.Confessions of a Dynamics NAV Consultant = my blog
AP Commerce, Inc. = where I work
Getting Started with Dynamics NAV 2013 Application Development = my book
Implementing Microsoft Dynamics NAV - 3rd Edition = my 2nd book0 -
Hi Alex,
could you let me know a little more about the changes you did to speed up cost adjustment?
You wrote that Item application was one of the major problems but that implies you did more modifications than just that.
Thanks for your help.
Best regards, FrankFrank Dickschat
FD Consulting0 -
Hi, creating the indexes on the Item Application Entry is what I did. It did speed up the report a bit, but still pretty slow.
I'm using the US version of the report by the way.Confessions of a Dynamics NAV Consultant = my blog
AP Commerce, Inc. = where I work
Getting Started with Dynamics NAV 2013 Application Development = my book
Implementing Microsoft Dynamics NAV - 3rd Edition = my 2nd book0
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
- 320 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