-
Feature Request
-
Resolution: Done
-
Major
-
None
-
None
Functions have optional metadata to convey their determinism, which affects the caching scope. However we don't have extension metadata or per execution metadata around source queries (there is a scope field on a cache directive, but that only applies to source level caching). We should provide a general mechanism so that users aren't required to manually override the result set cache scope.
Added to 8.12.x since it may be needed there, but will leverage this more in 9.0. The one thing that isn't very good is that re-using the Scope enum means you can set Scope.NONE - which is no different than Scope.SESSION. This is noted in the java docs.
The docs for 9.0 have been updated as well.