-
Notifications
You must be signed in to change notification settings - Fork 35
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
#1276, Refactor AsyncBatchDestroyJob to increase efficiency and resil…
…ience The AsyncBatchDestroyJob has been refactored to utilise Rails's `find_in_batches` method as opposed to a custom SQL query. This proves to make the process of record deletion both more efficient and more resilient to database inconsistencies. Previously, records that could not be deleted due to dependencies would raise an exception, breaking the whole transaction. Now, these records are logged and skipped over instead. Updates to associated tests have been made to verify and reflect these changes.
- Loading branch information
Ivanov-Anton
committed
Oct 20, 2023
1 parent
962b1f2
commit 5b24d6c
Showing
3 changed files
with
77 additions
and
22 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters