Coder Social home page Coder Social logo

learnedsystems / learnedsecondaryindex Goto Github PK

View Code? Open in Web Editor NEW
31.0 5.0 3.0 141 KB

A read-optimized learned index for unsorted data

License: MIT License

Shell 0.98% CMake 2.11% Python 1.02% C++ 81.78% Jupyter Notebook 14.11%
learned-index secondary-index

learnedsecondaryindex's Introduction

LearnedSecondaryIndex

Overview

This repo is the main codebase for our paper LSI: A Learned Secondary Index Structure.

Learned Secondary Index (LSI) is 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.

Usage

Execute ./test.sh to run our testcases and ./run.sh to run our benchmarks. Note that you may need to edit the .env file first to contain the correct path to your compiler. Any recent version of clang should work.

Run all cells in paper_plots.ipynb to recreate the plots in results/.

CMake

You can include lsi in your own CMake based project like this:

include(FetchContent)
FetchContent_Declare(
    lsi
    GIT_REPOSITORY "https://github.com/learnedsystems/LearnedSecondaryIndex"
    GIT_TAG main
)
FetchContent_MakeAvailable(lsi)

target_link_libraries(your_target lsi)

Structure

  • include/ contains the code newly contributed by our work
  • src/ contains tests, benchmark driver code and competitors
  • results/ contains the results referenced in the paper and the accompanying plots

Cite

Please cite our aiDM@SIGMOD 2022 paper if you use this code in your own work, e.g.:

@misc{learnedsecondaryindex,
  doi = {10.48550/ARXIV.2205.05769},
  url = {https://arxiv.org/abs/2205.05769},
  author = {Kipf, Andreas and Horn, Dominik and Pfeil, Pascal and Marcus, Ryan and Kraska, Tim},
  keywords = {Databases (cs.DB), Machine Learning (cs.LG), FOS: Computer and information sciences, FOS: Computer and information sciences},
  title = {LSI: A Learned Secondary Index Structure},
  publisher = {arXiv},
  year = {2022}, 
  copyright = {arXiv.org perpetual, non-exclusive license}
}

learnedsecondaryindex's People

Contributors

dominikhorn avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.