Skip to content
Snippets Groups Projects
Commit 006d6f40 authored by Markus Klein's avatar Markus Klein Committed by Christian Kuhn
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/+/77316


Reviewed-by: default avatarStephan Großberndt <stephan.grossberndt@typo3.org>
Reviewed-by: default avatarChristian Kuhn <lolli@schwarzbu.ch>
Tested-by: default avatarcore-ci <typo3@b13.com>
Reviewed-by: default avatarAndreas Fernandez <a.fernandez@scripting-base.de>
Reviewed-by: default avatarStefan Froemken <froemken@gmail.com>
Tested-by: default avatarChristian Kuhn <lolli@schwarzbu.ch>
Tested-by: default avatarStephan Großberndt <stephan.grossberndt@typo3.org>
parent 434c4fde
Branches
Tags
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