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

Objects with lazy loaded fields trigger additional queries when db_cache is enabled #183

Open
opengeek opened this issue Sep 24, 2020 · 0 comments

Comments

@opengeek
Copy link
Member

As described by @davidpede in #152, when an object is loaded with lazy-loaded fields, additional queries are fired automatically to load the lazy fields if the db_cache is enabled. This implies that the signature for storing cached entries is insufficient to cache objects loaded this way. Two possible solutions come to mind. We would either need to include the selected (or unselected) columns in the cache signature, or we need to prevent caching of objects that have fields that were not selected.

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

No branches or pull requests

1 participant