Search⌘ K
AI Features

Object Relational Mapping

Understand the differences between application object models and database models. Learn best practices for database modeling with PostgreSQL to maintain system consistency and avoid monolith design.

Designing a database model reminds one of designing an application’s object model to some degree. This is so much the case that sometimes you might wonder if maintaining both is a case of breaking the Don’t Repeat Yourself (or DRY) principle.

Application’s design vs. the database model

There’s a fundamental difference between the application’s design of its internal state (object-oriented or not) and the database model, though:

  • The ...