Closed (fixed)
Project:
Revision Delete Tools
Version:
1.0.x-dev
Component:
Code
Priority:
Normal
Category:
Feature request
Assigned:
Unassigned
Reporter:
Created:
19 May 2025 at 09:10 UTC
Updated:
3 Jun 2025 at 12:09 UTC
Jump to comment: Most recent
Comments
Comment #4
mkalkbrennerComment #5
mkalkbrennerI get an error during queue:run. I'll check that ...
Comment #6
mkalkbrennerThe issue was with profile entities. That had to be handled in #3525215: Support all entity types.
So I decided to combine both merge requests here.
Comment #7
mkalkbrennerI noticed two critical issues during testing:
The first one is a bug introduced in the dev branch.
The second is caused by the fact that all entities of a requested type or bundle are queued regardless how many revisions exist in database. In case of one million nodes, that takes a significant amount of time, CPU and memory to load all of them to count the number of revisions.
It is way better to only put those into the queue that have more revisions than to keep.
I fixed both issues within the MR instead of opening new ones because the code changed too much.
BTW, I implemented getting the entity IDs as SQL. Loading entities would quickly run out of memory.
Comment #8
j-barnes commentedThanks for the work on this, this is looking great. Going to do some testing on it and we will get it in.
Comment #9
mkalkbrennerI did some more tests and found a minor issue that counting revisions per language needs to be done on the data table.
Comment #10
j-barnes commented@mkalkbrenner - this is working much better now! Do you think it's worth adding some extra logic in the
getRevisionableEntityTypes()to filter out some of the entity types that might not be applicable like paragraphs or unique ones like menu_link_content where the entity_type_id might differ?Comment #11
mkalkbrennerI already thought about exclude lists.
But I suggest to commit this one first as it contains bug fixes and performance improvements without breaking any existing functinality. And maybe another beta release.
Then we could think about the next steps.
Comment #13
j-barnes commented