- Issue created by @nterbogt
- π¦πΊAustralia nterbogt
I've had a go at a patch for this and confirmed no difference in the
$children
array for my test case.Limitation of my patch is that it assumes all children will be the same entity type as the one being validated, which based on the field definitions, I believe is a safe assumption. Could alter the query to include the type otherwise.
This patch means we don't run out of memory with 28k children nodes (don't ask).
On a page with 6 children... the entity query appears marginally slower. 4.1 seconds (entity query) vs 3.55 seconds (loadMultiple). - last update
almost 2 years ago 91 pass, 7 fail - π¦πΊAustralia nterbogt
Improving patch with early exit for no descendants and adding accessCheck() for query.
- last update
almost 2 years ago 96 pass - π¦πΊAustralia nterbogt
Small logic fix. Tests don't cover the case where there is a recursive reference to self.
- last update
almost 2 years ago 96 pass - Status changed to Needs review
almost 2 years ago 12:24pm 21 June 2023 - Status changed to Fixed
almost 2 years ago 12:21am 22 June 2023 - π¦πΊAustralia larowlan π¦πΊπ.au GMT+10
Thanks, committed. This will go out as 3.3.6 which I'll tag shortly
-
larowlan β
committed 6599e8f0 on 3.x authored by
nterbogt β
Issue #3368136 by nterbogt: Possible performance improvement
-
larowlan β
committed 6599e8f0 on 3.x authored by
nterbogt β
Automatically closed - issue fixed for 2 weeks with no activity.