FForummers
← All threads / #payload
questionTharindu·21d
3

Postgres or Mongo for a forum with heavy relational queries?

Votes, ledgers, and joins everywhere. Mongo made the nested blocks cheap but I keep writing application-side joins, and pagination counts drift.

2 replies· endorsed answers first
Log in or join to reply and vote.
K
Kellan· 21d

Postgres. The moment access control returns a query constraint instead of a boolean, you want the database doing the filtering — row-level ownership as a WHERE clause, correct counts for free. This forum runs exactly that pattern.

3
DW
Dilan Weerasinghe· 21d

Counterpoint: if your content is deeply nested blocks and you rarely query across documents, Mongo stays cheaper to operate. Forums are not that, though.

1