Databases 101: From Storage to Query Optimization
Databases 101: From Storage to Query Optimization Databases are more than files on a disk. They organize data so apps can read and write quickly, safely, and predictably. This guide walks from how data is stored to how a database chooses a fast plan to answer a query. Storage and data models. In a relational system, data sits in tables with rows and columns. The storage engine decides how these rows are kept on disk—row-oriented pages for fast single-row access, or columnar blocks for analytics. Other models, like key-value or document stores, use different layouts but still rely on fast lookups. ...