-
Notifications
You must be signed in to change notification settings - Fork 934
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
Support caching queries with autodiscovered types #3184
Conversation
I think adding the aliases in the middle can break already cached objects because internal format of the cache will change. Can we add indexes to the end? Or what do you think? |
Co-authored-by: Roman Artiukhin <bahusdrive@gmail.com>
c322b2b
to
ec0c5a0
Compare
And fix the empty case.
if (finalReturnTypes[i] == null) | ||
if (cacheables[i] == null) |
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.
Checking for null return types as a marker of cache miss is wrong for empty result lists with type auto-discovery: their return types are null, but that is no cache miss. So instead, we need to nullify the cacheable when it is a cache miss due to its timestamp.
Co-authored-by: Roman Artiukhin <bahusdrive@gmail.com>
Co-authored-by: Alex Zaytsev <hazzik@gmail.com>
re-fix #3169