no stored balances?
Trint
Member Posts: 44
in chapter 1 of the Navision Attain Overview, around the SIFT definition, it says there are NO stored balances anywhere in Navision. If that is true, how does calculations happen quicker than almost all other processes?? How do these (no balances) calculations happen instantly?
Thanks,
Trint
Thanks,
Trint
0
Comments
-
That nice off you to ask.... Let me explain this briliant technoligy.
Navision has something called a sumindex. You can set it in keys. In this sumindex field a total calculation of a value is stored. See exampleRecID Value SumIndex 1 10 10 2 20 30 3 30 60 4 40 100 5 50 150 6 60 210 7 70 280 8 80 360 9 90 450
Here you see the Sumindex is a total (cumulated) of the value column. Now the fun part commes.
If you want to have the sum of RecID 3 till 6 do the following:
Take the sumindex value of recid 6 (210) minus the sumindex value of recid 3 - 1 (recid 2, 30) which would be 210 - 30 = 180. This is the total sum of the value column from 3 to 6.
Why is this fast? Even if you have millions of records, Navision only has to read 2 (if filters are right!) records form the database.
Isn't that nice!"Real programmers don't comment their code.
If it was hard to write, it should be hard to understand."0
Categories
- All Categories
- 75 General
- 75 Announcements
- 66.7K Microsoft Dynamics NAV
- 18.8K 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
- 611 NAV Courses, Exams & Certification
- 2K Microsoft Dynamics-Other
- 1.5K Dynamics AX
- 253 Dynamics CRM
- 103 Dynamics GP
- 6 Dynamics SL
- 1.5K Other
- 991 SQL General
- 383 SQL Performance
- 34 SQL Tips & Tricks
- 28 Design Patterns (General & Best Practices)
- Architectural Patterns
- 9 Design Patterns
- 4 Implementation Patterns
- 53 3rd Party Products, Services & Events
- 1.6K General
- 1K General Chat
- 1.6K Website
- 77 Testing
- 1.2K Download section
- 23 How Tos section
- 249 Feedback
- 12 NAV TechDays 2013 Sessions
- 13 NAV TechDays 2012 Sessions