Task #53514
closed
Epic #55070: Workpackages
Epic #55065: WP: Overall System Performance (Backend and Frontend)
Epic #55656: Optimize overall Extbase performance
Story #55168: Optimize Extbase generic persistence
Extbase: DataMapper causes redundant queries
Added by Nico de Haen over 10 years ago.
Updated over 6 years ago.
Description
The thawProperties method of the DataMapper does not check the identity map before retrieving the property value with fetchRelated. This results in redundant queries on the same table with the same addWhere. For example SELECT tx_foo_domain_model_bar.* FROM tx_foo_domain_model_bar WHERE uid IN ('1')
Files
- Status changed from New to Under Review
Here is a small demo extension to test the gerrit patch.
Father has a n:1 relation to child1. If there are 2 (or more) fathers with a relation to child with uid 1 it will result in 2 (or more) identical queries
SELECT tx_ztest_domain_model_child1.* FROM tx_ztest_domain_model_child1 WHERE tx_ztest_domain_model_child1.uid IN ('1')
If there are 2 (or more) fathers with a relation to child with uid 1 it will result in a 2 (or more) identical queries
SELECT tx_ztest_domain_model_child1.* FROM tx_ztest_domain_model_child1 WHERE tx_ztest_domain_model_child1.uid IN ('0')
- Parent task set to #55168
- Assignee set to Nico de Haen
- Project changed from 534 to TYPO3 Core
- Category deleted (
Extbase: Generic Persistence)
- Category set to Extbase
- TYPO3 Version set to 6.2
- Subject changed from DataMapper causes redundant queries to Extbase: DataMapper causes redundant queries
- Status changed from Under Review to Resolved
- % Done changed from 0 to 100
- Status changed from Resolved to Closed
Also available in: Atom
PDF