SQL 2005 Performance Issue
Comments
-
KB943858 I beleive.0
-
bbrown wrote:Experiencing random system hangs when scrolling thru list forms.
Example:
1. Open Customer Card and press F5 to open Customer List. Scroll to buttom of list then start to scroll up.
Any thoughts? :-k
The cause of the problem is easy to explain. The solution is difficult
in NAV.
Explanation:
NAV does SELECTS in both orders, ascending and descending.
Form 21, Customer Card -> Ctrl-F5 -> Form 25, Customer Ledger Entry
Example if you scroll down:
SELECT * FROM "CRONUS (Schweiz) AG$Cust_ Ledger Entry" WHERE
(("Customer No_"='10000')) AND "Customer No_"='10000' AND
"Posting Date"={ts '2007-12-31 00:00:00.000'} AND
"Currency Code"='' AND "Entry No_">=2480
ORDER BY "Customer No_","Posting Date"
Example if you scroll up in the same form:
SELECT * FROM "CRONUS (Schweiz) AG$Cust_ Ledger Entry" WHERE
(("Customer No_"='10000')) AND "Customer No_"='10000' AND
"Posting Date"={ts '2008-01-21 00:00:00.000'} AND
"Currency Code"='' AND "Entry No_"<2700
ORDER BY "Customer No_" DESC,"Posting Date" DESC
If your Customer Ledger Entry table contains some millions of records
your sqlserver will be overloaded with disk IO because NAV only creates
ascending indices and you do not have any possibility to create a
descending index.
Solution:
Find you key in management studio and create the corresponding
descending key for each key the user wants to use and each company
in your database. The above example would be solved creating the
sql indexCREATE UNIQUE NONCLUSTERED INDEX [Reverse$1] ON [dbo].[CRONUS (Schweiz) AG$Cust_ Ledger Entry] ( [Customer No_] DESC, [Posting Date] DESC, [Entry No_] DESC ) WITH ( PAD_INDEX = OFF, STATISTICS_NORECOMPUTE = OFF, SORT_IN_TEMPDB = ON, IGNORE_DUP_KEY = OFF, DROP_EXISTING = OFF, ONLINE = OFF, ALLOW_ROW_LOCKS = ON, ALLOW_PAGE_LOCKS = ON)
To generate DESC queries without creating the corresponding sql index
is a bad kernel design within NAV. The design team would find these
errors if they tested using real load databases and no only fancy
CRONUS stuff."There are only 10 types of people in the
world: those who understand binary, and
those who don't!"0 -
:shock:There are no bugs - only undocumented features.0
-
for anyone who wants to update to sql sp2 cumulative update 4 and uses a (x64) cluster:
http://support.microsoft.com/default.aspx?scid=kb;EN-US;943525
otherwise the sql agent doesn't work any more...0 -
This issue has been solved by the Microsoft Dynamics NAV engineering.
Get the "Platform Roll-up Update for Microsoft Dynamics NAV 5.0
(Build Number 25359) (KB943858).
After the update you won't see any DESC sql queries. The usual
application issues still exist (e.g. FIND(+/-) without SETCURRENTKEY())."There are only 10 types of people in the
world: those who understand binary, and
those who don't!"0 -
Build 25359 contains a blocking bug.
Use 25653 instead.0 -
bbrown wrote:Experiencing random system hangs when scrolling thru list forms.
Example:
1. Open Customer Card and press F5 to open Customer List. Scroll to buttom of list then start to scroll up. Sometimes it works fine, others it will take 30 seconds+ to move up 1 customer.
Also similar behavior in other list forms with larger record sets.
Any thoughts? :-k
Are you experiencing the same with the "Item Card" and "Item List" ?
I've experienced the same problem there and have fixed this issue by simply deactivating the BLOB field. (I didn't need it, and if i did, i would place it in another table)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