We have a client that receives and ships using Lot numbers.
Over the years, the Reservation Entry has become quite large. Now it takes forever to run the Requisition Worksheet.
When using the client monitor in addition to the SQL Server Profiler, this statement seems to be taking a long time.
DELETE FROM "ClientServer"."dbo"."CRONUS Company$Reservation Entry" WITH (REPEATABLEREAD) WHERE ("Entry No_"=@P1 AND "Positive"=@P2)
The process where this slows down is in codeunit
99000853 - Inventory Profile Offsetting. In the
DeleteTracking function, there's a code to loop through the Reservation Entry table, then it does a delete.
I noticed that no index was used when you delete. Is there a way to improve the performance of the delete?
I'm using NAV2009 without the SP1.
Answers
Why? There should be only entries for active documents, nothing "historical"... Thus number of entries could be bigger if you have bigger count of opened documents/lots/ser.nos., but not "Over the years" like posted entries...
And second thing - have you some SIFT maintenance? (deleting zero SIFT records)
MVP - Dynamics NAV
My BLOG
NAVERTICA a.s.
You're right. There are unusally a large amount of reservation entries. Even so, I'm not sure why it takes so long to delete?
I thought the delete 0 Sift records doesn't apply to VSIFT? I'll try it out.
AP Commerce, Inc. = where I work
Getting Started with Dynamics NAV 2013 Application Development = my book
Implementing Microsoft Dynamics NAV - 3rd Edition = my 2nd book
No, the clustered index is properly set.
AP Commerce, Inc. = where I work
Getting Started with Dynamics NAV 2013 Application Development = my book
Implementing Microsoft Dynamics NAV - 3rd Edition = my 2nd book
When you use the Get Receipt Line to do invoicing. The original PO doesn't get deleted so the item tracking entries remain open in the Reservation Entry.
After a purge of completed PO, it's a lot faster now. \:D/
AP Commerce, Inc. = where I work
Getting Started with Dynamics NAV 2013 Application Development = my book
Implementing Microsoft Dynamics NAV - 3rd Edition = my 2nd book
No PM,please use the forum. || May the <SOLVED>-attribute be in your title!
How can that be? If this is the case, how do you enable it? Turn it off, save, then turn it back on?
AP Commerce, Inc. = where I work
Getting Started with Dynamics NAV 2013 Application Development = my book
Implementing Microsoft Dynamics NAV - 3rd Edition = my 2nd book
Well, I didn't wait to long to blog about it: here it is http://mibuso.com/blogs/kriki/2010/03/18/clustered-or-not-clustered/.
No PM,please use the forum. || May the <SOLVED>-attribute be in your title!