We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
Possibly this could be done with WeakMap.
So that found instance could be added to WeakSet (by id or class+id), then reused without querying DB.
When updating this object should be removed from WeakMap - and then re-fetched when needed. Problems:
Cache behavior could be affected by annotation, as sometimes this behavior is acceptable.
Possible annotations syntax:
@DbRef(MyClass, cached = true)
Best way to implement this would be through plugins. So updateable feature could be also refactored as plugin.
updateable
The text was updated successfully, but these errors were encountered:
No branches or pull requests
Possibly this could be done with WeakMap.
So that found instance could be added to WeakSet (by id or class+id), then reused without querying DB.
When updating this object should be removed from WeakMap - and then re-fetched when needed.
Problems:
Cache behavior could be affected by annotation, as sometimes this behavior is acceptable.
Possible annotations syntax:
Best way to implement this would be through plugins. So
updateable
feature could be also refactored as plugin.The text was updated successfully, but these errors were encountered: