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

Closed
frifle opened this issue Aug 30, 2016 · 0 comments
Closed
Labels
Milestone

Comments

@frifle
Copy link

@frifle frifle commented Aug 30, 2016

What version of Flyway are you using?

3.2.1

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?

unix

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 axelfontaine added the t: bug label Aug 30, 2016
axelfontaine added a commit to flyway/flywaydb.org that referenced this issue Jan 30, 2017
pradheeps pushed a commit to pradheeps/flyway that referenced this issue Mar 7, 2017
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Linked pull requests

Successfully merging a pull request may close this issue.

None yet
2 participants