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

improve Status performance; add ability to retrieve latest N migrations #282

Open
mfridman opened this issue Oct 24, 2021 · 0 comments
Open

Comments

@mfridman
Copy link
Collaborator

Currently the implementation of the status command is to loop over all the migrations and get the db metadata one-by-one. I think we can do better by retrieving all migrations at once, although to future proof we could just paginate which would be a few round trips.

This would enable us to list latest N migrations, which has been requested in #254

Lastly, this will enable us to display migrations based on their applied order, instead of their migration file order. See comment #280 (comment). This is important because in #262 we added out-of-order migrations, so the file order no longer is the source of truth.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant