[14.0] mail_notification_clean_status_error: remove notifications in error#1340
Merged
OCA-git-bot merged 1 commit intoOCA:14.0from Apr 1, 2024
Merged
Conversation
e2644ac to
ddb961a
Compare
hbrunn
approved these changes
Mar 25, 2024
Member
hbrunn
left a comment
There was a problem hiding this comment.
I'd like to have a test for this though
simahawk
reviewed
Mar 26, 2024
ec71057 to
331e42d
Compare
331e42d to
7aebb57
Compare
Contributor
Author
simahawk
approved these changes
Mar 27, 2024
Contributor
|
This PR has the |
Member
|
/ocabot merge patch |
Contributor
|
On my way to merge this fine PR! |
Contributor
|
Congratulations, your PR was merged at d252eb9. Thanks a lot for contributing to OCA. ❤️ |
This file contains hidden or 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
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Delete email notifications in error.
The scheduled action Notification: Delete Notifications older than 6 Month provided by Odoo is responsible to delete notifications that have been sent successfully.
However, it doesn't delete the notifications that could not be sent, and their number could keep growing over time, impacting the performance of some queries related to the chatter.
This module extends the scheduled action of Odoo to also delete such notifications.
On a DB with 20M+ of
mail_messagerecords and 100k notifications in error over 1M+, this allows to speed up the loading of the Discuss app widget (top bar) and the chatter of records from ~35s to ~1s.Ref. 4352