Closed (fixed)
Project:
Flag
Version:
5.x-dev
Component:
Flag core
Priority:
Normal
Category:
Bug report
Assigned:
Unassigned
Reporter:
Created:
11 Jan 2023 at 17:52 UTC
Updated:
8 Jan 2026 at 08:39 UTC
Jump to comment: Most recent
Need to delete 30 million flags using "Remove Flaggings" in the Module Uninstall page. The delete is very slow and frequent out of memory errors are displayed.
Create a large number of flags. Use "Remove Flaggings" in the Module Uninstall page to remove the flags
Each flag entity delete calls hook flag_entity_predelete and then it finds the related flag entity in the storage and deletes it. This step is unnecessary when a flagging entity is deleted. Add a condition to check before proceeding the find the related entities.
NIL
NIL
NIL
NIL
| Comment | File | Size | Author |
|---|---|---|---|
| improve_flag_entity_predelete.patch | 553 bytes | arun.testing3 |
Start within a Git clone of the project using the version control instructions.
Or, if you do not have SSH keys set up on git.drupalcode.org:
Comments
Comment #6
ivnishComment #7
ivnishComment #8
ivnishComment #10
deaom commentedRe-based, not sure what additional tests are needed here, so leaving status as is.
Comment #11
ivnishComment #13
ivnish