Skip to content

Commit 4d1f6f6

Browse files
committed
Add split timing for reading resources for fast check mode
1 parent 6055840 commit 4d1f6f6

1 file changed

Lines changed: 2 additions & 1 deletion

File tree

ebean-migration/src/main/java/io/ebean/migration/runner/MigrationEngine.java

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -44,11 +44,12 @@ public List<MigrationResource> run(Connection connection) {
4444
log.log(DEBUG, "no migrations to check");
4545
return emptyList();
4646
}
47+
long splitMs = System.currentTimeMillis() - startMs;
4748
final var platform = derivePlatform(migrationConfig, connection);
4849
final var firstCheck = new FirstCheck(migrationConfig, connection, platform);
4950
if (fastMode && firstCheck.fastModeCheck(resources.versions())) {
5051
long checkMs = System.currentTimeMillis() - startMs;
51-
log.log(INFO, "DB migrations completed in {0}ms - totalMigrations:{1}", checkMs, firstCheck.count());
52+
log.log(INFO, "DB migrations completed in {0}ms - totalMigrations:{1} readResources:{2}ms", checkMs, firstCheck.count(), splitMs);
5253
return emptyList();
5354
}
5455
// ensure running with autoCommit false

0 commit comments

Comments
 (0)