4

Suggested by Frans Hoogenraad New 

Production route update - performance after change


The route circularity check is always executed when one of the fields in the production route is changed, even if nothing changed in the route sequence itself and no operations were added or deleted.

The check itself is slow, almost 1 second per operation.


Proposed change:

Only execute the check when a new operation is added, or an operation is deleted or when the field Next operation changes. (E.g. by storing operations ProdRoute.RecId + Next operation in a map when the form is opened, and check whether this is changed when the form is closed)

Or make the circularity check much faster.


Repro:

Create production order for item D0003, and press button Route.

Change the run time for the first operation from 1 hour to 0.9 hour.

Close the form.

Wait 4 seconds until the Processing operation - Update route message disappears.

This check is not very fast, ca. 1 operation per second.