liveBook · Manning

Single-column index

A single-column index is a database index whose key is derived from one field or column and whose entries are organized by its values.

How 2 Manning books explain it

Just Use Postgres!

A single-column index is a database index whose key is derived from one table column.

How it is used
Optimizes searches, filters, ordering, and selected time-series or queue operations involving one table column.
How deep it goes
Explains creation, B-tree and hash behavior, execution plans, and planner trade-offs, while deferring broader composite-index design.
Examples
Uses game scores and champion titles, time-series timestamps, and message-queue creation times as concrete indexing cases.
What you can do after
Apply PostgreSQL CREATE INDEX and EXPLAIN to create indexes and verify whether queries use them effectively.

Read how Just Use Postgres! explains single-column index →

MongoDB 8.0 in Action, Third Edition

A single-field index is an index whose key consists of one document field and whose entries are ordered by that field's values.

How it is used
Speeds frequent queries on one MongoDB document field and can support filtering and sorting on that field.
How deep it goes
Walks through index creation and execution-plan checks, but does not detail the index’s internal storage structure.
Examples
Uses a movies.runtime index with getIndexes() and explain("executionStats"), plus a date-based transactions TTL index.
What you can do after
Apply it via mongosh createIndex() and diagnose its use with getIndexes() and explain("executionStats").

Read how MongoDB 8.0 in Action, Third Edition explains single-column index →

Related concepts

These guides are generated from the text of Manning books by Manning's knowledge graph and link to the sections they draw on. The full books are available on liveBook and at manning.com.