liquibase icon indicating copy to clipboard operation
liquibase copied to clipboard

Liquibase is very slow against snowflake during startup

Open sadhnamanohar opened this issue 3 years ago • 2 comments

Description: The reason seems to be that it is running the following query 8 times during startup, and so takes 3 minutes before the changes start to get applied:

show /* JDBC:DatabaseMetaData.getColumns() */ columns in database "DEV"

In my DEV db, this query returns around. 100000 rows.

Environment: Liquibase version: 4.5.0 Driver: snowflake-jdbc-3.13.9.jar Liquibase extension: liquibase-snowflake-4.5.0.jar OS: MacOS

Expected/Desired Behavior: I believe the query could be: show /* JDBC:DatabaseMetaData.getColumns() */ columns in schema DEV.defaultSchemaName

Thanks

Screen Shot 2021-10-26 at 2 17 50 PM

sadhnamanohar avatar Oct 26 '21 16:10 sadhnamanohar

Hi @sadhnamanohar Thanks for letting us know about this issue. This may belong on the snowflake repository.

molivasdat avatar Nov 01 '21 12:11 molivasdat

Hi @sadhnamanohar. Snowflake support has been moved from extension to liquibase-core, along with this bunch of issues were fixed, including performance issue where schema was ignored for getMetadata() calls. Can you check with newest versions of Liquibase if issue still reproduces for you?

KushnirykOleh avatar Aug 01 '22 13:08 KushnirykOleh