List slow when not using primary key

marvinq
Member Posts: 69
Hi,
I am running classic NAV 2009 SP1 on SQLServer.
When opening a large list of sales orders in "Sales Order List" (Form 45) it runs perfectly; when view is set as primary key. However when changing the key to a not-primary key ("Sell-to Post Code") the list loads really slow and when scrolling the list often freezes for 10-20 seconds, as if it only reads a "bucket" of lines at a time.
Why is that? The key is created in NAV. Shouldn't there be a corresponding index in SQL then? - so sorting runs fast and smooth?
In NAV the key is "true" in "MaintainSQLIndex" and "MaintainSIFTIndex".
Have I missed something? How can I speed up this view/index?
Thanks!
I am running classic NAV 2009 SP1 on SQLServer.
When opening a large list of sales orders in "Sales Order List" (Form 45) it runs perfectly; when view is set as primary key. However when changing the key to a not-primary key ("Sell-to Post Code") the list loads really slow and when scrolling the list often freezes for 10-20 seconds, as if it only reads a "bucket" of lines at a time.
Why is that? The key is created in NAV. Shouldn't there be a corresponding index in SQL then? - so sorting runs fast and smooth?
In NAV the key is "true" in "MaintainSQLIndex" and "MaintainSIFTIndex".
Have I missed something? How can I speed up this view/index?
Thanks!
0
Comments
-
When we have large "lists" like this I try to remove/hide all the fields we don't really need to see.
Especially flowfields that do any calculations. Example. on the customer list, fields like (Sales ($) & balance ($))
It really shows an improvement in speed.0 -
You should also look at SQL Server and make sure all the keys defined in NAV are defined the same way in SQL Server.
I fixed a terrible performance problem in a list form that was caused by this.David Machanick
http://mibuso.com/blogs/davidmachanick/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