Closed nadirdbit closed 2 months ago
Hey @nadirdbit. Thanks for reaching out to us.
Can you point me to the docs describing the cache services you are referring to that you would like to utilize?
Hi Artur,
Result cache - https://community.snowflake.com/s/article/Caching-in-the-Snowflake-Cloud-Data-Platform
Thank you.
Hey @nadirdbit. The article mentions https://docs.snowflake.com/en/user-guide/querying-persisted-results, which I checked before answering you initially because, as far as I understand this doc, we cannot leverage caching:
Hi Artur,
The show commands being run aren't presently utilizing the result cache and we're finding that they are running several hundred times a day and sometimes taking a few seconds. On reviewing the output of percentage_scanned_from_cache from snowflake.account_usage.query_history, we're finding that to be 0 for requisite statement query_id's.
Thank you.
Hey @nadirdbit, this does not change what I wrote above. If you have any questions about the cache behavior, please reach out to your Snowflake account manager.
Closing due to inactivity, the answer was provided above.
Use Cases or Problem Statement
We're finding a lot of "show roles like '' " being repeatedly issued on a daily basis.
Even though this is using Snowflake Cloud Services and not a virtual warehouse, it will assist in utilizing an available cache to fulfill these requests.
Thank you.
Category
category:other
Object type(s)
No response
Proposal
No response
How much impact is this issue causing?
Low
Additional Information
No response
Would you like to implement a fix?