Vibeleaderboard
← All Intel
Intel / article

Indexing the Data Lake for Online Point Queries

Source
engineering.atspotify.com
Publisher
Spotify
Author
Spotify Engineering
Date

Context

Spotify's Random Access Parquet approach makes a large analytical dataset usable for targeted lookups, such as retrieving one listener's history. An external index records which files and rows contain each key. Cached then identifies the relevant pages, allowing the reader to request those byte ranges directly. Spotify's engineering article explains how this avoids a chain of reads just to discover where the requested data lives.

The approach reuses the data lake's existing Parquet files, so a separate full serving copy is unnecessary. It still requires an index and its upkeep. Unmodified files may also require reading a large page for a small result; preparing the file layout can reduce that overhead.

Terms in this piece · Glossary
  • File — A named unit of stored data that keeps its contents while no program is using it.
  • Metadata — Data about a file, such as its name, size and timestamps, as distinct from its contents.
  • Database and SQL — Persistent structured storage queried and changed through explicit operations.

Get the Brief

A cited digest of what matters for people building with AI, every morning. Unsubscribe anytime. See today’s edition

Read the source engineering.atspotify.com
More from Spotify Engineering
Recommended reads