Hello, I am creating a new issue to report the problem described in #2123. As specified by @golbi's comment on the issue, the PR merged for the original issue did not really solve the problem of filtering by TRIGGER_SCHEMA instead of EVENT_OBJECT_SCHEMA. As explained in #2123, EVENT_OBJECT_SCHEMA will provide significantly better performance.
I have implemented the fix in #2750 (it's a one-line change). Please let me know if there's anything I could to do help merge the PR and for a new Flyway version to be released. Thanks!
Which version and edition of Flyway are you using?
Which client are you using? (Command-line, Java API, Maven plugin, Gradle plugin)
Which database are you using (type & version)?
Which operating system are you using?
What did you do?
Execute flyway.migrate() with baselineOnMigrate = true on a database that had not been migrated by Flyway before.
What did you expect to see?
A relatively fast first migration/baseline (e.g. a few hundreds of milliseconds).
What did you see instead?
An extremely slow first migration/baseline (e.g. a few tens of minutes - we have a lot of logical databases).
The text was updated successfully, but these errors were encountered: