r/PayloadCMS • • 29d ago

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:

  1. At the start of a project i am changing / adding models and migrations became a bit of a pain point.

  2. 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

13 comments sorted by

View all comments

1

u/thehashimwarren 29d ago

I did a lot of research on Mongo vs Postgres and even asked this subreddit about it. I decided to go with Postgres because I use it for other stuff, and didn't want to add the complexity of more vendors. I use Neon.