Giter Club home page Giter Club logo

hist-prototype's Introduction

Hist Prototype

CI

A prototype of a database B+Tree index that keeps the history of all key writes.

Architecture

The system will eventually consist of 4 main parts:

  • An in-memory index
  • A persisted block searcher
    • One for the index, one for the value log
  • A single-threaded IO handler for both the indexer and
  • Value Logger (as in WAL, not observability tooling)
    • This will have it's own IO handler as well, generally, you'll want an IO Handler for each file.
    • This could be implemented in a variety of ways
    • Likely the first attempts will be an uncompressed, append-only file
    • Could be reworked into content-addressed storage later
    • Compression is necessary for a "real" system

Indexer

The indexer holds an in-memory representation of the search index. It may be implemented as a B+Tree, but could also easily be swapped out for an algorithm that has better performance for in-memory queries. I'm partial to hashmaps. Currently, we just have a modified B+Tree.

Block Searcher

The block searcher is responsible for performing searches against persisted index blocks. For most non-huge datasets, this will only be used for historical queries. Systems with low memory or huge datasets may need to read lower levels of the index into memory from disk (depending on the index implementation).

IO Handler

The IO Handler receives messages to persist or read blocks of memory from a file. There will be different implementations depending on the type of file the handler is for (ie. indexes, values, etc.). The IO Handler may also be responsible for caching blocks in memory, though this is not planned for the prototype.

hist-prototype's People

Contributors

chiefnoah avatar

Watchers

 avatar

hist-prototype's Issues

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.