There is an Impl ActionRecord that iterates over all Lots (of its Account) to find the Movements the ActionRecord begat. It may be wise to cache lot_num values (which are cached in the Movements already) in a new ActionRecord field.
The fn is called several times throughout the code. This could save a lot of searching, particularly in cases where the number of lots is extremely large.
There is an
ImplActionRecord that iterates over all Lots (of its Account) to find the Movements the ActionRecord begat. It may be wise to cachelot_numvalues (which are cached in the Movements already) in a new ActionRecord field.The
fnis called several times throughout the code. This could save a lot of searching, particularly in cases where the number of lots is extremely large.