> On my laptop, PostgreSQL takes about a minute to get denormalized data for 12,000 episodes, while retrieval of the equivalent document by ID in MongoDB takes a fraction of a second.
What? Her database can't possibly be indexed properly.
What? Her database can't possibly be indexed properly.
Comparing fetching from a normalized design to a denormalized one isn’t really a fair comparison.
But then the way tables don't map well to 1-to-many mappings and joins still returning data in tables this can also be a problem. Especially if a large field get duplicated a lot. RDBMS really should go from 2d-Tables to proper nested types for results IMHO.
Active record is awesome in many ways, but it can shoehorn you into n+1 solutions.
I would suspect something like bad statistics or some other reason that caused a pathological query plan. In any case this is not a good representation of any potential performance difference between Postgres and MongoDB.