-
Notifications
You must be signed in to change notification settings - Fork 336
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
[ENG-6801] Preprint _id caching #10881
[ENG-6801] Preprint _id caching #10881
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.
Our code base is confusing ... most newer pieces use Django's built-in @cached_property
while this old Guid
piece still uses our own implementation of @cached_property
... and I also found another ancient flask model using @cached_property
fromwerkzeug
...
Can you take a look at if django.utils.functional.cached_property
is worth switching and if there is any compatibility concerns? @mfraezz will be back on Monday so we can ask for his input too.
89f55e8
to
a5440c0
Compare
8cfd184
to
42e7907
Compare
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 good and will merge to a different feature branch that is not on staging2.
Cherry-picked into #10892 and will merge there |
Merged in 7b16120 |
Purpose
Make
_id
a cached propertyChanges
see diff
QA Notes
N/A
Documentation
N/A
Side Effects
N/A
Ticket
https://openscience.atlassian.net/browse/ENG-6801