๐ŸŽ New User? Get 20% off your first purchase with code NEWUSER20 ยท โšก Instant download ยท ๐Ÿ”’ Secure checkout 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

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.
Time-Series Database
A database optimized for storing and querying timestamped data points like metrics, sensor readings, and event logs.
Connection String
A formatted string containing all parameters needed to establish a connection to a database server.
JSONB
PostgreSQL's binary JSON data type that stores JSON documents with indexing, querying, and manipulation capabilities.
Connection Pool
A cache of database connections that can be reused, avoiding the overhead of creating new connections for each request.
MVCC (Multi-Version Concurrency Control)
A technique where the database maintains multiple versions of data to allow concurrent reads and writes without locking.
View All Databases Terms โ†’