Review main Merged

77484[TASK] Reduce SQL queries in AbstractMenuContentObject::isSubMenu()

Christoph Lehmann CR +2 V +2 Normal +85 −28 updated 01/20/23, 11:06

Commit message

The method now pre-fetches and caches subpages for all pages on
the same level in order to reduce the amount of database queries.

Have a menu with 50 subpages
- WITHOUT this: 50 SQL queries
- WITH this: 1 SQL query

Review

  • Code review CR +2

    Imported before Forger kept the single votes, the next import adds them.

  • Verified V +2

    Imported before Forger kept the single votes, the next import adds them.

Issues 1

Files 2