liveBook · Manning

NoSQL database

As explained in Fast by Default

A NoSQL database is a nonrelational database designed around data models and access patterns that do not require traditional relational tables and joins.

A NoSQL database trades relational flexibility for performance characteristics aligned with particular data models and access patterns. Choosing one requires understanding how the application reads and writes data. section 5.4.1

Common NoSQL models optimize different workloads:

  • Document databases store variable-structure, JSON-like documents and suit hierarchical data retrieved together. section 5.4.1
  • Key-value stores provide extremely fast lookups when the key is known, supporting sessions, caching, and simple retrieval. section 5.4.1
  • Wide-column stores distribute data across clusters to sustain massive write volumes, with stricter schema and query constraints. section 5.4.1

Blog posts and comments

Storing a blog post with its comments in one document can avoid joins and retrieve related data quickly. Finding every comment by a particular user becomes expensive because it may require scanning post documents. section 5.4.1

How Fast by Default covers it

How deep it goes
Distinguishes document, key-value, and wide-column models with concrete tradeoffs, but stops short of implementation guidance.
Examples
Uses blog posts with comments, session data, caching, and key-based lookups to contrast database models.
What it assumes
Assumes familiarity with application data access while grounding the comparison in common database workloads.
What you can do after
Evaluate NoSQL models against an application's reads, writes, query requirements, and scaling needs.
How it connects
Connects NoSQL databases with data modeling, access patterns, joins, indexing, caching, sessions, and distributed systems.

Also explained in

Compare how 11 books explain NoSQL database →

Related concepts

This explainer was generated by Manning's knowledge graph from the text of Fast by Default. The section links point to the parts of the book it draws on.