Issues
- primaryKeyExists and indexExists preconditions create a new database snapshot on each executionCORE-1250Resolved issue: CORE-1250
- Rollback on formatted sql throws NPECORE-1244Resolved issue: CORE-1244
- Support AppEngine CloudSQL (MySQL)CORE-1228Alexander Bertram
- Wrong regular expression in databaseChangelog XML SchemaCORE-1222Resolved issue: CORE-1222
- ORA-01439 thrown for MODIFY MD5SUM VARCHAR2(35) on Oracle 11gCORE-1102Resolved issue: CORE-1102Don Smith
- Oracle doesn't support any "on update" specification on foreign key constraintsCORE-1089Resolved issue: CORE-1089
- logFile parameter ignored when running from command line interfaceCORE-1074Resolved issue: CORE-1074Don Smith
- Executing executeCommand by calling dbDocCORE-1050Resolved issue: CORE-1050
- Preconditions should use defaultSchema if no schemaName providedCORE-1049Resolved issue: CORE-1049Tomasz Warchol
- NullPointerException during changelogSyncSQLCORE-1042Resolved issue: CORE-1042Nathan Voxland
- Drop FK constraint sql statements also prints schema nameCORE-1041Resolved issue: CORE-1041
- Case sensitive identifier names and escapingCORE-1040Resolved issue: CORE-1040
- Upload 2.0.2 to Maven repositoryCORE-1039Resolved issue: CORE-1039
- No way to specify a TEXT columntype in mysqlCORE-1033
- Use NUMERIC instead of NUMBER for SybaseCORE-1031Resolved issue: CORE-1031
- Foreign key constraints does not contain an index upon them for MySqlCORE-1029
- MySQLTypeConverterTest failsCORE-1025Resolved issue: CORE-1025Don Smith
- Column type MEDIUMTEXT fails on PostgreSQLCORE-1024Resolved issue: CORE-1024Don Smith
- tableExists and columnExists preConditions fail due to case-sensitivity on PostgreSQLCORE-1010Resolved issue: CORE-1010
- CreateTableGenerator.java ignores foreign key constraint name on InformixCORE-933Resolved issue: CORE-933
- CLONE - NullPointerException on 'status' w/o LiquiBase's tablesCORE-916Resolved issue: CORE-916
21 of 21
primaryKeyExists and indexExists preconditions create a new database snapshot on each execution
Fixed
Description
Environment
None
Details
Reporter
Lew DawsonLew DawsonComponents
Fix versions
Affects versions
Priority
Major
Details
Details
Reporter
Lew Dawson
Lew DawsonComponents
Fix versions
Affects versions
Priority
Created January 23, 2013 at 3:36 PM
Updated June 20, 2013 at 3:31 AM
Resolved February 28, 2013 at 7:32 AM
Activity
Show:
Nathan VoxlandFebruary 28, 2013 at 7:32 AM
No longer does full snapshots
Each time the <primaryKeyExists/> or the <indexExists/> preconditions are run, they take a full database snapshot. <primaryKeyExists/> makes a call in the PrimaryKeyExistsPrecondition.check() function:
public void check(Database database, DatabaseChangeLog changeLog, ChangeSet changeSet) throws PreconditionFailedException, PreconditionErrorException { DatabaseSnapshot snapshot; try { snapshot = DatabaseSnapshotGeneratorFactory.getInstance().createSnapshot(database, getSchemaName(), null); } catch (DatabaseException e) { throw new PreconditionErrorException(e, changeLog, this); } ... }
and <indexExists/> makes a call in the JdbcDatabaseSnapshotGenerator.hasIndex() function:
public boolean hasIndex(String schemaName, String tableName, String indexName, Database database, String columnNames) throws DatabaseException { DatabaseSnapshot databaseSnapshot = createSnapshot(database, schemaName, null); if (databaseSnapshot.getIndex(indexName) != null) { return true; } ... }
We have a fairly large PostgreSQL data set on our test system and a database snapshot runs over 6700 queries.