Skip to content

Alembic taking ~30min to autogenerate and throwing unrelated SAWarnings (hierarchyid, geography, geometry) #1124

Answered by CaselIT
mnemyx asked this question in Usage Questions
Discussion options

You must be logged in to vote

However, the actual database has a crap ton of tables so if alembic does inspect every existing table, then it makes sense

that's definitly the cause of the slowness. You should most likely restrict the schema / tables that are of interest for autogenerate.
You can use these features to do this https://alembic.sqlalchemy.org/en/latest/autogenerate.html#controlling-what-to-be-autogenerated

Replies: 2 comments 2 replies

Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
2 replies
@zzzeek
Comment options

@mnemyx
Comment options

Answer selected by mnemyx
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
3 participants