r/PayloadCMS • u/tailsdog • Oct 26 '26
Database choice: Mongo vs Postgres
I like Postgres and use it for most projects but I actually switched to Mongo for some of my PayloadCMS deployments for 2 main reasons:
- At the start of a project i am changing / adding models and migrations became a bit of a pain point.
- I endup using a lot of nested blocks so switch to `blocksAsJSON` but then migrations don't seem to work properly.
Has anyone else experienced these issues with postgres? Maybe I have a poor workflow or missing some optimization tricks?
7
Upvotes
View all comments
Show parent comment
1
u/tailsdog Oct 28 '26
I'm still on the fence which is best but for now but I feel that the choice could depend on use case. If using Payload for pure content with a lot of nesting and potential field changes Mongo is a good fit, if it's needed more for a app backend then Postgres is better with strict migrations.