-
Notifications
You must be signed in to change notification settings - Fork 110
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
perf: optimize the permission check to use an in-memory object #889
Conversation
CLA Assistant Lite bot All contributors have signed the CLA ✍️ ✅ |
I have read the CLA Document and I hereby sign the CLA |
984915c
to
e56282b
Compare
Quality Gate passedIssues Measures |
@dkarlovi tested it and it works fine. My only concern is that the Also maybe change the key to |
@mattamon is there a cache tag which gets cleared on workspace save, like |
Hmm, I checked and it does not seem like it. The configs are in general not cached, other than by the locationaware dao. @fashxp do you have a tag in mind? Otherwise I would introduce a tag and change the Configuration Dao save method to clear that tag. |
IMO that's also an opportunity to improve: why aren't they cached, wouldn't the DAO do that by default? 🤔 This would mean we'd get cache invalidation for free here just by tagging. |
Yeah I thought the same. |
nope, no tag in mind... let's introduce a new one. |
@mattamon friendly ping, did you maybe get a chance to add the cache tag flush on save by any chance in the meantime? |
@dkarlovi ahhh, I actually thought that you will introduce it, since it can be done in the same scope within your PR. So I guess, I have to ask now, can you please introduce this tag in your PR? Would be awesome! |
Yes, this directly told me you'll be creating a separate PR to do this. :) OK, I'll try to do both here. |
Thank you! And sorry again for the confusion! |
e56282b
to
3453def
Compare
@mattamon ready for review, should be OK now. |
3453def
to
044acd7
Compare
Quality Gate passedIssues Measures |
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.
Thank you very much! It works perfectly now!
Closes #886.
Comparison current and new, fetching 100 products in a listing: