Lesson 2.3

Keeping the index fresh

Content changes and stale chunks keep getting retrieved. Incremental reindexing driven by content events beats rebuilding everything nightly.

Duration
6m
Level
Advanced
Students
6.8k students

Overview

Content changes and stale chunks keep getting retrieved. Incremental reindexing driven by content events beats rebuilding everything nightly.

In this lesson you will:

  • Reindex incrementally on content change events
  • Delete chunks whose source no longer exists
  • Version the index so a bad run can be rolled back

Resources

Sanity Context and content APIs

The official reference for the tools used in this lesson.