Table with Lookup flow field, slow performance when filtered

bpweb123
Member Posts: 19
Hi all,
I have a table with a "Trans Date" field which is a Lookup flow field to "Transaction Header.Date".
When I open the table and do a filter on "Trans Date", it will loop through all the table records which is very slow to go through millions record by record.
However when I do a filter on other field which has key set, it is very fast.
I tried to add a key on the flow field "Trans Date" but it does not allow. So, would like to ask how the performance can be improved if user want to do a filter based on this "Trans Date". Adding an actual "Trans Date" field will not be good as this may affect other operational areas.
I am using NAV Version 4 SP3 SQL.
Thanks in advance
I have a table with a "Trans Date" field which is a Lookup flow field to "Transaction Header.Date".
When I open the table and do a filter on "Trans Date", it will loop through all the table records which is very slow to go through millions record by record.
However when I do a filter on other field which has key set, it is very fast.
I tried to add a key on the flow field "Trans Date" but it does not allow. So, would like to ask how the performance can be improved if user want to do a filter based on this "Trans Date". Adding an actual "Trans Date" field will not be good as this may affect other operational areas.
I am using NAV Version 4 SP3 SQL.
Thanks in advance
0
Answers
-
You can't do much about it. The only solution is to add it as a normal field and update it manually.0
-
bpweb123 wrote:Adding an actual "Trans Date" field will not be good as this may affect other operational areas.
Create an actual Trans Date field in the table and create a key based on that.David Singleton0 -
Think about what a flowfield is...a calculated field. No way to know what it is without calculating the value. Now you want to place a filter on that field...how does the system know what falls within the filter and what doesn't? It has to calculate every value for every record.
As the other responders said, if you want a faster filter you will need to make this a normal field and update it accordingly.0 -
Thanks all for the advice
Will take note of that0
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