Oracle After Delete Trigger… How to avoid Mutating Table (ORA-04091)?
Let's say we have the following table structures: documents docmentStatusHistory status +---------+ +--------------------+ +----------+ | docId | | docStatusHistoryId | | statusId | +---------+ +--------------------+ +----------+ | ... | | docId | | ... | +---------+ | statusId | +----------+ | ... | +--------------------+ It may be obvious, but it's worth mentioning, that the current status of a document is the last Status History entered. The system was slowly but surely degrading in performance and I suggested changing the above structure to: documents docmentStatusHistory status +---------