-
Notifications
You must be signed in to change notification settings - Fork 206
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
Conversation
There was a problem hiding this 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.
There was a problem hiding this 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)
e6c717d
to
d17857c
Compare
@alongosz better? :) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Much better :)
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.