🎁 New User? Get 20% off your first purchase with code NEWUSER20 Register Now →
Menu

Categories

Databases Intermediate

What is ORM (Object-Relational Mapping)?

A technique that lets you interact with a database using object-oriented code instead of writing raw SQL queries.

ORMs map database tables to classes and rows to objects, abstracting SQL behind a programmatic interface. Instead of writing "SELECT * FROM users WHERE id=1", you write User.find(1) or similar.

Popular ORMs include SQLAlchemy (Python), Eloquent (PHP/Laravel), ActiveRecord (Ruby), Hibernate (Java), and Prisma (JavaScript). ORMs improve productivity but can hide performance issues — knowing SQL remains important.

Related Terms

Connection String
A formatted string containing all parameters needed to establish a connection to a database server.
Connection Pool
A cache of database connections that can be reused, avoiding the overhead of creating new connections for each request.
Transaction
A sequence of database operations that are treated as a single unit — either all succeed or all are rolled back.
Vacuum
A PostgreSQL maintenance operation that reclaims storage from dead tuples and updates statistics for the query planner.
ETL (Extract, Transform, Load)
A data pipeline process that extracts data from sources, transforms it into a suitable format, and loads it into a destination system.
Write-Ahead Log (WAL)
A technique where changes are first written to a log before being applied to the database, ensuring crash recovery and data integrity.
View All Databases Terms →