Problem/Motivation
In our company, we have a site with a huge amount of nodes that are using sitestudio components.
Once we import and rebuild the components, purge module is triggered and tries to massive insert data into purge_queue table.
Steps to reproduce
Rebuild a massive amount of nodes with sitestudio (in my case, by a sitestudio:package:import command). Purge module will try to insert lots of data into a single INSERT statement.
Proposed resolution
Refactor createItemMultiple() method and split it to avoid a huge amount of data to be inserted.
Check for the attached patch file
Remaining tasks
User interface changes
API changes
Data model changes
| Comment | File | Size | Author |
|---|---|---|---|
| #2 | purge_insert_hotfix.patch | 2.17 KB | daniel_arend |
Issue fork purge-3437679
Show commands
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 #2
daniel_arend commentedComment #3
daniel_arend commentedI can't understand why the test fails on d10. BTW, I'm using this patch in d10 version and PHP 8.2 and it works fine. It does not seem to be related to the patch itself, but some hash assertion with drupal libraries. Any help here would be much appreciated.
Comment #4
o'briatI got the same problem with daily massive update from external source. May be the Deduplicate Queued Items issue could help ?