Filter performance issue - Native Database

bbrown
Member Posts: 3,268
I have a simple list report using the "Sales Shipment Line" table only. The report is designed to except a shipment date range from the user. The "Shipment Date" is in the current key. The table contains about 5 million records.
If the date range contains records the report runs very fast.
if the report range does not contain records the system will scan the entire table and take a few minutes
Thoughts?
P.S. I see the same behavior with a list form
If the date range contains records the report runs very fast.
if the report range does not contain records the system will scan the entire table and take a few minutes
Thoughts?
P.S. I see the same behavior with a list form
There are no bugs - only undocumented features.
0
Comments
-
Have you recently optimized the table?0
-
The database was recently restored to a new server. There have not been many transactions since. This is a test system being used for development and testing purposes. I'll give an optimize a try and let you know. Can't hurt to try.There are no bugs - only undocumented features.0
-
Optimization is at 94.7 %There are no bugs - only undocumented features.0
-
After optimizating the optimization percent remains at 94.7%. An indication that the table was fairly well optimized to start with. No change in the filter behavior.
Thanks for the idea. Any other thoughts? Hopefully the client never run the report for a range that has no data.There are no bugs - only undocumented features.0 -
bbrown wrote:I have a simple list report using the "Sales Shipment Line" table only. The report is designed to except a shipment date range from the user. The "Shipment Date" is in the current key. The table contains about 5 million records.
If the date range contains records the report runs very fast.
if the report range does not contain records the system will scan the entire table and take a few minutes
Thoughts?
P.S. I see the same behavior with a list form
If the Shipment Date is a Key - How & when could it be blank?
Shipment Date for my Sales Shipment Line table is not a key. This is a new added key?0 -
It is a new key which contain shipment date as one of its fields. The situation is not that shipment date is blank, but that a given shipment date filter range does not return any records. Example: Run report for January 1st of any year.There are no bugs - only undocumented features.0
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