data
data copied to clipboard
Model::validateEntityScope() should not fetch/compute any data
can be reproduced on https://github.com/atk4/ui/blob/03a9d65ff32602493ecf9980d740fa3f8fc5e21f/demos/init-db.php#L403
NOTES:
- the performance graph above is with https://github.com/atk4/data/blob/dfa5de573036a56717fd836b7db4a910ba257f8d/src/Model.php#L1575 commented (otherwise 2x slower, as data are fetched 1 more time)
- when the L403 is changed from
$entity->SubFolder->import...
to$entity->getModel()->import...
, the total import time is about 10x faster (measured /wo xdebug/profiling)