Review 13.4 Merged

90966[TASK] Avoid costly database schema queries and class state

Stefan Bürk CR +2 V +2 Normal +20 −50 updated 10/09/25, 10:06

Commit message

Some places in our code base need to deal with database schema
information, which are quite costly doing them over and over again.

This change streamlines occurrences to use the internal cached
schema information (`Connection->getSchemaInformation()`) to
replace the occurrences and centralizing them to one place. With
that, instance state can be removed in two cases and in one case
the uncached usage replaced by the cached schema information.

Note that `SchemaInformation` uses only a code cache right now
and will get a second level (`runtime`) cache in a dedicated
change eliminating the need to read it from PHP files over and
over again.

Review

  • Code review CR +2 Done
    • Stefan Bürk +2
  • Verified V +2 Done
    • Stefan Bürk +2
    • core-ci +1 CI

Issues 5

Files 4

Review log 34

  1. Stefan Bürk commented on patch set 1 10/09/25, 09:52

    Cherry Picked from branch main.
  2. core-ci voted on patch set 1 V +1 10/09/25, 09:59 Core CI is happy: https://git.typo3.org/typo3/CI/cms/-/pipelines/86286

  3. Stefan Bürk voted on patch set 1 CR +2 V +2 10/09/25, 10:05

  4. Stefan Bürk merged patch set 2 10/09/25, 10:06