Skip to content

Model::validateEntityScope() should not fetch/compute any data #1093

@mvorisek

Description

@mvorisek

can be reproduced on https://github.com/atk4/ui/blob/03a9d65ff32602493ecf9980d740fa3f8fc5e21f/demos/init-db.php#L403

image

NOTES:

  1. the performance graph above is with
    $this->reload();
    commented (otherwise 2x slower, as data are fetched 1 more time)
  2. 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)

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions