Solved

How does a Navision flowfield work so much faster than a SQL sum command?

Posted on 2008-10-17
3
2,528 Views
Last Modified: 2013-11-23
In Microsoft Dynamics NAV (Navision) a flowfield shows the sum of thousand or millions of lines from other tables almost instantly, but when I try to sum the same data using a SQL Query SUM it takes hours... why?

Thanks

Doug
0
Comment
Question by:dougshepard
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 2
3 Comments
 
LVL 4

Assisted Solution

by:AndersHedegaard
AndersHedegaard earned 500 total points
ID: 22746040
The flowfield sums are calculated during the insert of records. A separat set of records is maintained with the sums already calculated. The Navision client therefore only has to find a few records whereas SQL SUM has to find and sum all the records.
0
 
LVL 4

Accepted Solution

by:
AndersHedegaard earned 500 total points
ID: 22746061
You can actually access the same sums as they are maintained in regular tables. In a Navision SQL database there are a number of tables with only numbers. Those numbers reference table, field and index numbers in Navision. With the help of a Navision developer you can find out which to use.
0
 

Author Comment

by:dougshepard
ID: 22759944
Nice!  Thanks!

Doug
0

Featured Post

MIM Survival Guide for Service Desk Managers

Major incidents can send mastered service desk processes into disorder. Systems and tools produce the data needed to resolve these incidents, but your challenge is getting that information to the right people fast. Check out the Survival Guide and begin bringing order to chaos.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

This article explains how to reset the password of the sa account on a Microsoft SQL Server.  The steps in this article work in SQL 2005, 2008, 2008 R2, 2012, 2014 and 2016.
Get to know the ins and outs of building a web-based ERP system for your enterprise. Development timeline, technology, and costs outlined.
This video shows how to set up a shell script to accept a positional parameter when called, pass that to a SQL script, accept the output from the statement back and then manipulate it in the Shell.
Via a live example, show how to extract insert data into a SQL Server database table using the Import/Export option and Bulk Insert.

756 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question