-
Notifications
You must be signed in to change notification settings - Fork 171
Issue #3171563 by navneet0693: Moved logic from activity_creator_update_8802 to hook_post_update_name and refactored. #1988
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Issue #3171563 by navneet0693: Moved logic from activity_creator_update_8802 to hook_post_update_name and refactored. #1988
Conversation
…te_8802 to hook_post_update_name and refactored.
3ba0612 to
15577b5
Compare
|
@navneet0693 In the second part it would delete the whole activity is the related_entity does not exist, in the old one it would again also delete the activity_notification_status, but in yours it only deletes the activity. Is this not needed anymore? |
…y_notification_status table if activity is deleted during batch.
Thanks for pointing out Robert. I have fixed it last commit :-) |
|
You made the last change and it goes a lot faster. Still some timeouts on Pantheon, but that's due to their plan being to small. |
…-activity-creator-2 Issue #3171563 by navneet0693: Moved logic from activity_creator_update_8802 to hook_post_update_name and refactored.
…-activity-creator-2 Issue #3171563 by navneet0693: Moved logic from activity_creator_update_8802 to hook_post_update_name and refactored.
Problem
I started working on the issue https://www.drupal.org/project/social/issues/3171563 and I created a solution here: #1986. But even this solution was leading to memory outage no matter if the batch size is 10 or 10000. So, I decided to take a different approach to solve the issue.
Solution
Issue tracker
https://www.drupal.org/project/social/issues/3171563
How to test
Screenshots
N.A
Release notes
In a past release we made a update hook to delete old activities that had no more related entities. This update hook was not working properly for bigger websites, so we changed the logic to make it less performance heavy.
Change Record
N.A
Translations
N.A