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
Async migrations #950
Comments
I agree this can be valuable. It is not an immediate priority, but let's keep this open and see if it gathers traction. Cheers |
+1 for asynchronous migrations. We are using flyway with phoenix and some of our index creations take quite a long time. |
some of our migrations can take upwards of 24 hours for back-filling massive tables. Would be great if these long migrations didn't block future migrations |
Agree, that's valuable feature for us too. |
Please implement :) |
Would be an extremely useful feature. |
+1 |
+1!! |
+1! |
+1 |
+1 |
+1 Imagine that we might use Flyway's mechanisms to trigger the update of other, non/No-SQL repos such as ElasticSearch or even to send messages to various messaging/streaming infrastructures such as Kafka. While Java migrations help a great deal since we can implement pretty much whatever we want (including spawning async jobs), native Flyway support would make things a breeze. And... elaborating on this topic... I'm pretty much starting to see Flyway as a generic update mechanism and not only an SQL-related one. I am not sure whether this idea sprung before but a more decoupled, "update engine"-like mechanism would be great, imho. |
In Flyway 7 we shipped a new feature that will help with that: https://flywaydb.org/documentation/migrations#script-migrations |
+1 |
2 similar comments
+1 |
+1 |
+1 |
2 similar comments
+1 |
+1 |
|
+1 |
3 similar comments
+1 |
+1 |
+1 |
We ran into an issue in which our containers were failing health checks due to index creations taking too long. Async migration tasks are absolutely essential for embedded Spring Boot start-up migration. |
@EarthCitizen I ran into same issue of POD getting restarted. Have you found any workaround for this? |
@aprabhat In our case, they were index creations, and we created our Flyway scripts with "if not exists" for the indexes. Therefore, once they were created on the DB, the DB continued to work on them after the connection was lost when the container was restarted, and the scripts were marked as complete on the reboot due to the indexes already existing on the DB. Basically, we got lucky. |
@axelfontaine This issue appears to have traction. There is a clear community need expressed here. |
@EarthCitizen This workaround suffices for now, but it would be highly beneficial if Flyway provided an asynchronous migration feature. |
+1 |
1 similar comment
+1 |
Some migrations can effectively be run totally asynchronously relatively to other migrations. E.g. creating of index. It would be very nice to have a possibility to mark some migrations as async and not to block the whole process on them.
The text was updated successfully, but these errors were encountered: