Options

Slow delete from Reservation Entry Table

Alex_ChowAlex_Chow Member Posts: 5,063
edited 2010-03-18 in SQL Performance
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

Sign In or Register to comment.