Skip to content

Comment on Introducing MongoMallard: A fast ORM based on MongoEngine

Comments

Almost entirely off topic, but is "ORM" a fitting term for something that maps documents, and not relations, to objects?

MongoEngine prefers ODM but documents often have relationships.

That comes at some cost in MongoDB and document databases in general. Often it is best to start with the opposite of modelling a relational db - start denormalised and normalise where it makes sense to.

The catch with MongoEngine is know that ReferenceFields are dereferenced in the application layer and design your Documents accordingly.

I've heard the term ODM used for this purpose [0].

[0] - https://github.com/jmkgreen/morphia

No, clearly, its not, since its not object-relational mapping.

And one of the selling points of NoSQL "document store"-style solutions is that, as they do not use the relational model, your data layout can more closely follow object construction and not need the kind of object-(datastore)-mapping represented by ORM, anyway.

AboutSource Built by g1lg1l

Hackerly is an independent reader for Hacker News, built on the public HN API. Not affiliated with Y Combinator.