snowflake-jdbc icon indicating copy to clipboard operation
snowflake-jdbc copied to clipboard

SNOW-159537: SFAsyncResultSet.next makes unnecessary HTTP call to monitoring API

Open buremba opened this issue 4 years ago • 1 comments

We use the async API with statement.executeAsyncQuery and poll statement.getStatus periodically. Once we have the result, we start calling resultSet.next() but I realized that the first resultSet.next() performs an unnecessary HTTP call to Snowflake monitoring API in order to see if the query is executed.

It would be great if you can cache the status for the query id in order to avoid calling the API again in resultSet.next().

buremba avatar May 09 '20 17:05 buremba

Hi @buremba , we will look into caching the value.

sfc-gh-mknister avatar Aug 12 '21 21:08 sfc-gh-mknister

To clean up and re-prioritize more pressing bugs and feature requests we are closing all issues older than 6 months as of March 1, 2023. If there are any issues or feature requests that you would like us to address, please create them according to the new templates we have created. For urgent issues, opening a support case with this link Snowflake Community is the fastest way to get a response.

sfc-gh-igarish avatar Mar 15 '23 03:03 sfc-gh-igarish