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

IsValid() connection is doing a statement.execute("select 1");

Open mdiskin opened this issue 4 years ago • 1 comments

It's very common as in spring boot actuator to check the db status using the isValid() method which is supposed to be a low/zero-cost option.

It looks in snowflake this is still doing a select statement and concerned that this will also keep the warehouse status as active and costing us credits.

mdiskin avatar Nov 04 '21 13:11 mdiskin

Hi @mdiskin , calling "select 1" doesn't require the use of a warehouse so I don't think it would affect the warehouse status.

sfc-gh-mknister avatar Nov 18 '21 22:11 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 04:03 sfc-gh-igarish