Bug description
When i upgraded my site (1000+ unique entries) i noticed the base loading time increased with about 300ms, just to find the right page. After installing different versions and adding a ton of dumps i found the culprit:
#5502
Specifically the part in BasicStore.php@getItem
if (method_exists($item, 'syncOriginal')) {
$item->syncOriginal();
}
If i remove this piece of code and revert it to how it used to be , with it being called explicitly in the children stores, the slowdown goes away
How to reproduce
- Have alot of unique pages with unique uri
- Add a timed measure around this part in CollectionStructure
$thisCollectionsEntries = $this->collection()->queryEntries()
->where('site', $locale)
->get(['id', 'site'])
->map->id();
Measure it in 4.50.0 and 4.51.0 (or the latest version)
See the slowdown
Logs
No response
Environment
EnvironmentApplication Name: jelle_printenbindLaravel Version: 9.52.16PHP Version: 8.1.27Composer Version: 2.5.7Environment: developmentDebug Mode: ENABLEDURL: printenbind.jelle.printenbind.nlMaintenance Mode: OFFCacheConfig: NOT CACHEDEvents: NOT CACHEDRoutes: NOT CACHEDViews: CACHEDDriversBroadcasting: pusherCache: redisDatabase: mysqlLogs: stack / dailyMail: smtpQueue: databaseSession: redisStatamicAddons: 0Antlers: regexSites: 2 (NL, EN)Stache Watcher: DisabledStatic Caching: DisabledVersion: 4.52.0 PRO
Installation
Existing Laravel app
Antlers Parser
None
Additional details
No response
Bug description
When i upgraded my site (1000+ unique entries) i noticed the base loading time increased with about 300ms, just to find the right page. After installing different versions and adding a ton of dumps i found the culprit:
#5502
Specifically the part in BasicStore.php@getItem
If i remove this piece of code and revert it to how it used to be , with it being called explicitly in the children stores, the slowdown goes away
How to reproduce
Measure it in 4.50.0 and 4.51.0 (or the latest version)
See the slowdown
Logs
No response
Environment
Installation
Existing Laravel app
Antlers Parser
None
Additional details
No response