Support for Drupal 7 is ending on 5 January 2025—it’s time to migrate to Drupal 10! Learn about the many benefits of Drupal 10 and find migration tools in our resource center.
_menu_router_save() currently does a db_delete('menu_router')->execute() which ought to be a db_truncate() - that way MySQL can clear the whole table a lot quicker.
This is at most a hundred milliseconds or so savings when rebuilding the router, but tagging performance anyway.
Comment | File | Size | Author |
---|---|---|---|
#2 | truncate.patch | 634 bytes | catch |
truncate.patch | 623 bytes | catch | |
Comments
Comment #2
catchI'll execute you test bot :p
Comment #3
Dries CreditAttribution: Dries commentedSmall performance win. Committed!