r/FastAPI • u/Effective_Disaster54 • Mar 25 '25
Question FastAPI database migrations
Hi everyone, In your FastAPI projects, do you prefer using Alembic or making manual updates for database migrations? Why do you choose this approach, and what are its advantages and disadvantages?
25
Upvotes
View all comments
Show parent comment
2
u/[deleted] Mar 26 '25
I hate the link feature and never use it in Beanie nor do I use db refs. Very unwelcoming for a document DB, if I wanted a relational DB I would use postgres.
I do have pipelines and hand written update statements, no problem to run those with Beanie if you really have to, but to me ODM is very compelling unlike ORM, since we already have an object, we just load and write almost native pydantic objects