Delete Actions vs Extended Validate Delete Method

Ciao a tutti,

Does anyone have any recommendations for which has better performance?

  1. Table with relations and Delete Actions

  2. override delete method on table with similar business logic

Thanks,
S

It’s basically the same (although I don’t know implementation details of delete actions). Delete actions require less code, clearly communicate your intention (it can be even read by other tools like IDMF) and don’t introduce upgrade conflicts in delete(), therefore prefer delete actions.

You would get much better performance if you used delete_from and neither delete actions nor delete() would exist on the table (or the buffer was set to skip them), because records would be deleted directly in database instead of being deleted one-by-one by AX.