Preconditions takes more than 30 seconds each

Following changeSet :


		<indexExists indexName="IDX_FK_ZYEYJGSMALNT3KGKIQDX3UA"/>





takes more than 30 seconds. for each such changeset

It seems according to the stacktrace that an internal databaseSnapshot is being created for every changeSet ???

at liquibase.snapshot.jvm.JdbcDatabaseSnapshotGenerator.getForeignKeys(
at liquibase.snapshot.jvm.JdbcDatabaseSnapshotGenerator.readForeignKeyInformation(
at liquibase.snapshot.jvm.JdbcDatabaseSnapshotGenerator.createSnapshot(
at liquibase.snapshot.jvm.JdbcDatabaseSnapshotGenerator.hasIndex(
at liquibase.precondition.core.IndexExistsPrecondition.check(
at liquibase.precondition.core.NotPrecondition.check(
at liquibase.precondition.core.AndPrecondition.check(
at liquibase.precondition.core.PreconditionContainer.check(

Using liquibase 2.0 rc 5

It is something we have been tryign to improve the performance of with 2.0, but the indexExists precondition still does a full snapshot.  I’ll look to see what we can do to improve it for the index check.  I created to track it.