LSI: A Learned Secondary Index Structure

Andreas Kipf, Dominik Horn, Pascal Pfeil, Ryan Marcus, Tim Kraska
5/11/2022
cs.DBcs.LG

Official code: learnedsystems/LearnedSecondaryIndex (32 stars, C++, MIT, last commit 2023-08-10).

Abstract

Learned index structures have been shown to achieve favorable lookup performance and space consumption compared to their traditional counterparts such as B-trees. However, most learned index studies have focused on the primary indexing setting, where the base data is sorted.

Show full abstract

In this work, we investigate whether learned indexes sustain their advantage in the secondary indexing setting. We introduce Learned Secondary Index (LSI), a first attempt to use learned indexes for indexing unsorted data. LSI works by building a learned index over a permutation vector, which allows binary search to performed on the unsorted base data using random access. We additionally augment LSI with a fingerprint vector to accelerate equality lookups. We show that LSI achieves comparable lookup performance to state-of-the-art secondary indexes while being up to 6x more space efficient.

View on arXivView PDF

Code Implementations(1)

MIT

A read-optimized learned index for unsorted data

324C++, Jupyter NotebookMay 10, 20223 years agoMIT
learned-indexsecondary-index

Similar Papers

Cite this paper

@article{kipf2022lsi,
  title  = {LSI: A Learned Secondary Index Structure},
  author = {Andreas Kipf and Dominik Horn and Pascal Pfeil and Ryan Marcus and Tim Kraska},
  year   = {2022},
  eprint = {2205.05769},
  archivePrefix = {arXiv},
  url    = {https://arxiv.org/abs/2205.05769}
}

Add a badge to your README

Shows whether official code is linked for this paper.

Code of Paper badge
[![Code of Paper](https://codeofpaper.com/badge/2205.05769.svg)](https://codeofpaper.com/paper/2205.05769)

Discussion