Mongo to Postgres
2018-12-23 19:43:03.713001+01 by Dan Lyke 0 comments
The Guardian completes its switch from MongoDB to Postgres. Mostly because they could outsource the admin to AWS.
“But postgres isn’t a document store!” I hear you cry. Well, no, it isn’t, but it does have a JSONB column type, with support for indexes on fields within the JSON blob. We hoped that by using the JSONB type, we could migrate off Mongo onto Postgres with minimal changes to our data model. In addition, if we wanted to move to a more relational model in future we’d have that option. Another great thing about Postgres is how mature it is: every question we wanted to ask had in most cases already been answered on Stack Overflow.