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

atlas migrate lint takes very long #3077

Open
nakamasato opened this issue Aug 28, 2024 · 1 comment
Open

atlas migrate lint takes very long #3077

nakamasato opened this issue Aug 28, 2024 · 1 comment

Comments

@nakamasato
Copy link

I'm using atlas with versioned migration.

When having many large sql files (e.g. manually created DML files with thousands of rows), atlas migrate lint takes very long.

Even though I use atlas migrate set to set the schema as latest as possible, altas migrate lint is very slow. It would be better if atlas migrate lint only checks for the new files to be applied.

@rotemtam
Copy link
Member

Migrate lint always replays all migrations on an empty database, so it is expected to run any statement in these files. This is done to bring the db to the current state before applying any new migrations.

This can be somewhat circumvented using checkpoints, but I'm not certain it is applicable in your use case.

https://atlasgo.io/versioned/checkpoint

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

2 participants