DEV Community

Anudeep Reddy
Anudeep Reddy

Posted on

1

What is the difference between an ODM and an ORM

Top comments (1)

Collapse
 
nestedsoftware profile image
Nested Software • Edited

ORM or Object-Relational Mapper maps objects to records in relational database tables (also sometimes referred to as relations, hence the name). Oracle, MySQL, and PostgreSQL are well-known relational databases.

ODM or Object-Document Mapper does the same for non-relational, document-based databases like MongoDB - it will map objects to documents.

In both cases the idea is to make persistence of objects in an object-oriented application as simple and transparent as possible - whatever kind of target database system you may be using for that persistence.

Sentry image

See why 4M developers consider Sentry, “not bad.”

Fixing code doesn’t have to be the worst part of your day. Learn how Sentry can help.

Learn more

👋 Kindness is contagious

Please leave a ❤️ or a friendly comment on this post if you found it helpful!

Okay