Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

performance improvements when installing a large number of migration scripts #1415

frifle opened this issue Aug 30, 2016 · 0 comments


Copy link

frifle commented Aug 30, 2016

What version of Flyway are you using?


Which client are you using? (Command-line, Java API, Maven plugin, Gradle plugin, SBT plugin, ANT tasks)

Java API

What database are you using (type & version)?

oracle 11g and 12c

What operating system are you using?


What did you do?

We are using flyway for an application which is life for some years now. Flyway is very reliable, thanks for that excellent framework! Recently we are running into performance problems because the number of scripts we are managing in our schema_versions-table has increased beyond 10.000.

The time flyway takes to migrate a single script has increased from some milliseconds to currently over a second. It seems that flyway per single migration step selects the full content of the schema-version table to calculate at client side its installation rank. Selecting and transporting the complete data of the versions table seems to be the cause for the increasing time per migration step.

I have written a testcase to demonstrate this, see this stackoverflow question.

What did you expect to see?

Migration of about 100 scripts should be (nearly) as fast as at beginning of our application life-cycle. Time to migrate our complete database should scale linear with total number of scripts.

What did you see instead?

Migration of about 100 scripts is getting slower. Time to migrate our complete database seems to increase exponentially with total number of scripts.

@axelfontaine axelfontaine added this to the Flyway 4.1 milestone Aug 30, 2016
axelfontaine pushed a commit to flyway/ that referenced this issue Jan 30, 2017
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
None yet

No branches or pull requests

2 participants