Skip to Main Content

Database Software

Announcement

For appeals, questions and feedback about Oracle Forums, please email oracle-forums-moderators_us@oracle.com. Technical questions should be asked in the appropriate category. Thank you!

Scalar Subquery Caching

User_1871Jul 14 2022

Does anyone have an example of using Scalar Subquery Caching with SDO_GEOMETRY to improve query/function performance?
Scalar Subquery Caching
Rewriting the function call into a scalar subquery allows Oracle to use scalar subquery caching to optimize the number of function calls needed to complete the query. Oracle builds an in-memory hash table to cache the results of scalar subqueries.

SELECT (SELECT slow_function(id) FROM dual) FROM func_test;
I've been reading about Scalar Subquery Caching, but I'm not sure how it might apply to spatial queries.
Thanks.

Comments
Post Details
Added on Jul 14 2022
2 comments
780 views