Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

EZP-28148: Object States Limitations perform a lot of lookups #2127

Merged
merged 4 commits into from
Oct 30, 2017

Conversation

andrerom
Copy link
Contributor

@andrerom andrerom commented Oct 27, 2017

Issue: https://jira.ez.no/browse/EZP-28148

Cause: On installs with a lot of object states the system creates a lot of lookups for them, most notably during permission checks in Object States Limitation Type.

This takes one of the changes in SPI Cache from 7.0, changing from storing id's in cache to the full objects to avoid lookups in loops. 7.0 will be even faster thanks to Symfony Cache, however for now these two changes should hopefully help quite a bit.

@andrerom andrerom changed the base branch from master to 6.7 October 27, 2017 08:57
@andrerom andrerom closed this Oct 27, 2017
@andrerom andrerom reopened this Oct 27, 2017
Copy link
Member

@alongosz alongosz left a comment

Choose a reason for hiding this comment

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

Looks ok, but probably requires some unit tests alignments.

Copy link
Member

@adamwojs adamwojs left a comment

Choose a reason for hiding this comment

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

+1 conditional (tests are failing)

@andrerom
Copy link
Contributor Author

@alongosz better? :)

Copy link
Member

@alongosz alongosz left a comment

Choose a reason for hiding this comment

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

Much better :)

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

Successfully merging this pull request may close these issues.

3 participants