Alembic taking ~30min to autogenerate and throwing unrelated SAWarnings (hierarchyid, geography, geometry) #1124
-
Beta Was this translation helpful? Give feedback.
Replies: 2 comments 2 replies
-
not really sure. it's definitely seeing in your database datatypes that are called "geography", "hierarchyid" and "geometry". Im not familiar with these types in terms of SQL Server. Does this server have many databases / schemas and you are using include_schemas=True ? |
Beta Was this translation helpful? Give feedback.
-
that's definitly the cause of the slowness. You should most likely restrict the schema / tables that are of interest for autogenerate. |
Beta Was this translation helpful? Give feedback.
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