I'm planning to build a wiki/resource app which, by itself, makes sense to be using Mongo for. However, the primary purpose of the app is to have associative tables showing connections between individual content items. A majorly simplified example would be, Odin, Zeus, Jupiter would be a row within an "Allfather" association. The problem is that these tables could grow indefinitely and it seems like developing this type of network in Mongo would be a rather complex and frustating experience.
I've thinking about using Mongo for the pages and just maintaining a small Postgres database for these associations, but something intuitively feels wrong about that. However, I'm an experienced frontend dev that's just starting to dabble in backend/database, so I'm not willing to trust my intuitions on databases yet haha.
Is postgres + mongo a good solution for the above problem, or is this where something like a graph database (which I only learned about yesterday) would come into play?
normalizationslows down the select query when there are many tables involved and the data is huge.de-normalizedtable is better for such scenariosjsonbout-performs MongoDB for working with most semi-structured data while giving you all the excellent and incredibly useful relational features (joins, recursive CTEs, referential integrity, ...). I don't have any direct experience with graph databases so I can't comment on that. That said, we're deep into opinion territory here so I suspect that this question won't stay open for long.