MigrationVersion compareTo is very slow #563
Closed
Comments
Thanks for submitting the issue and the changes. I've merged your pull request anyway as the implementation is simpler than the current one now that alphanumeric versions are no longer allowed (they were in Flyway 1.x) I've also added you to the hall of fame: http://flywaydb.org/contribute/hallOfFame.html Cheers |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
I noticed during profiling our app that migration takes(4s - 4 migrations) quite long and after tracking down I noticed that implementation of MigrationVersion is quite ineffective as it don't cache pattern and use patterns to parse string every time compareTo is called, which is often as you put and get it from Map.
The text was updated successfully, but these errors were encountered: