Hello client recently upgraded to 4.0 SP2 on SQL with the HOTFIX. I thought SP2 supposed to fix the clustered index issue that was in 4.0. I looked item ledger and GL entry, and the PK does not have the clustered field checked.
TIA
Ahmed Rashed Amini
Independent Consultant/Developer
blog:
https://dynamicsuser.net/nav/b/ara3n
Answers
Item Ledger
Value Entry
GL Entry
Cust ledger
Cust Detail
Vendor Ledger
Vend Detail
Independent Consultant/Developer
blog: https://dynamicsuser.net/nav/b/ara3n
An example of the last one:"GL Entry":If you don't maintain the SIFT on "G/L Account No.,Posting Date", this is definitely the key to be clustered because the fastest access should be when users open the "G/L Account List"-form. With the SIFTLevels on both "G/L Account No." "Posting Date" (I think only on day is usefull!) this is not so needed anymore.
-Item Ledger:"G/L Account No.,Posting Date"
-Value Entry:"Item Ledger Entry No.,Entry Type" (PS:MaintainSIFTIndex=No)
-GL Entry:see above
-Cust ledger:"Customer No.,Open,Positive,Due Date,Currency Code"
-Cust Detail:"Cust. Ledger Entry No.,Posting Date"
-Vendor Ledger:"Vendor No.,Open,Positive,Due Date,Currency Code"
-Vend Detail:"Vendor Ledger Entry No.,Posting Date" (PS:MaintainSIFTIndex=No)
These are changes I have done for a customer on SQL. And for the moment they are working since some time like that and all is performant.
But it is necessary to:
-calculate SQL-statistics every night (for the moment I take 30% sample, later I can decrease this)
-every week:reorganize indexes
-every day:File=>Database=>Information=>Tables=Optimize for some tables (all tables is too much for 1 day)
No PM,please use the forum. || May the <SOLVED>-attribute be in your title!
RIS Plus, LLC
Hi, Kriki
I have read your post in http://www.mibuso.com/forum/viewtopic.php?t=7235. There, you suggest not to maintain "Customer No.,Open,Positive,Due Date,Currency Code" in Cust Ledger Entry table. And in this post that I have quoted, you suggest "Customer No.,Open,Positive,Due Date,Currency Code" to be clustered. Is it does not matter if this key is clustered while it is not maintained?
Thank you
Johanna
First and for all: you need to maintain an index if you want to make it the clustered index.
At the moment I am more 'experienced' with SQL and my (current) first idea is to keep the original clustered index in the entry-tables. This because this key small and increasing, so it creates few pagesplits that are bad for performance. Lately I haven't encountered any more the problems we had in the beginning with SQL2005.
If I would have the same problem, I will consider testing another clustered index on customer ledger entry to see if it helps.
No PM,please use the forum. || May the <SOLVED>-attribute be in your title!
Yeah, this matter requires testing and testing again..
Johanna