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 FileA named unit of stored data that keeps its contents while no program is using it.Full definition →MetadataData about a file, such as its name, size and timestamps, as distinct from its contents.Full definition → 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.