Skip to content

Improvement/avoid loading proxy relations data - #5

Open
gacek85 wants to merge 3 commits into
creativestyle:5.1from
gacek85:improvement/avoid_loading_proxy_relations_data
Open

Improvement/avoid loading proxy relations data#5
gacek85 wants to merge 3 commits into
creativestyle:5.1from
gacek85:improvement/avoid_loading_proxy_relations_data

Conversation

@gacek85

@gacek85 gacek85 commented Mar 6, 2024

Copy link
Copy Markdown

No description provided.

dxops and others added 3 commits December 27, 2023 13:14
- moved method call that loaded redundand proxied item data when it was
  not needed; method moved from outside into if statement scope
additional performance improvement
$isFullRelation = $this->fieldHelper->getConfigValue($entityName, $fieldName, 'full', false);
$isPersistRelation = $this->databaseHelper->isCascadePersist($entityName, $fieldName);

$searchContext = $this->generateSearchContextForRelationsUpdate(

@gacek85 gacek85 Mar 6, 2024

Copy link
Copy Markdown
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

execution of this method causes populating of search context and lazy load proxy for certain properties for all tterated relations - even if the relation entity does not exist. Moving the execution into the if statement AND even deeper into the condition when only the relation exists speeds up the execution very much. It will not be noticible for schemas with ~200 attributes, although for bigger product attributes counts with big set of relations - this is a massive improvement.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants