Skip to content
Snippets Groups Projects
Commit b10285e7 authored by Markus Klein's avatar Markus Klein Committed by Andreas Fernandez
Browse files

[BUGFIX] Do not query database for non-existent records

Extbase does not ask the database anymore for relations, where the uid
in the database field is zero.

This prevents SQL queries with where-parts like `uid IN (0)`.

Since this is done when reconstituting models from the database,
depending on the amount of relations of a model, the number of saved
queries is huge.

Resolves: #99505
Releases: main, 11.5
Change-Id: If3b6c2756674eeb43a66b59a13e44011c9845cd5
Reviewed-on: https://review.typo3.org/c/Packages/TYPO3.CMS/+/77582


Tested-by: default avatarcore-ci <typo3@b13.com>
Reviewed-by: default avatarAndreas Fernandez <a.fernandez@scripting-base.de>
Tested-by: default avatarOliver Klee <typo3-coding@oliverklee.de>
Tested-by: default avatarStephan Großberndt <stephan.grossberndt@typo3.org>
Tested-by: default avatarAndreas Fernandez <a.fernandez@scripting-base.de>
Reviewed-by: default avatarStephan Großberndt <stephan.grossberndt@typo3.org>
parent 04e7c949
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment