{"id":28290648,"url":"https://github.com/creativcoder/rootconf-25-lsmtree","last_synced_at":"2025-10-28T07:03:05.346Z","repository":{"id":293575681,"uuid":"981144045","full_name":"creativcoder/rootconf-25-lsmtree","owner":"creativcoder","description":"Workshop materials for building a toy lsm tree implementation in Rust","archived":false,"fork":false,"pushed_at":"2025-05-16T10:09:59.000Z","size":16,"stargazers_count":4,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-07-27T09:44:41.181Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"Rust","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/creativcoder.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null,"zenodo":null}},"created_at":"2025-05-10T12:46:10.000Z","updated_at":"2025-05-16T14:07:17.000Z","dependencies_parsed_at":"2025-05-16T03:24:10.486Z","dependency_job_id":"90d6a912-2bb6-4a34-addb-5736a0ea8fb8","html_url":"https://github.com/creativcoder/rootconf-25-lsmtree","commit_stats":null,"previous_names":["creativcoder/rootconf-25-lsmtree"],"tags_count":8,"template":false,"template_full_name":null,"purl":"pkg:github/creativcoder/rootconf-25-lsmtree","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/creativcoder%2Frootconf-25-lsmtree","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/creativcoder%2Frootconf-25-lsmtree/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/creativcoder%2Frootconf-25-lsmtree/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/creativcoder%2Frootconf-25-lsmtree/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/creativcoder","download_url":"https://codeload.github.com/creativcoder/rootconf-25-lsmtree/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/creativcoder%2Frootconf-25-lsmtree/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":281397300,"owners_count":26493908,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","status":"online","status_checked_at":"2025-10-28T02:00:06.022Z","response_time":60,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"can_crawl_api":true,"host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":[],"created_at":"2025-05-22T03:11:39.003Z","updated_at":"2025-10-28T07:03:05.307Z","avatar_url":"https://github.com/creativcoder.png","language":"Rust","readme":"## Build your own toy LSM Tree in Rust.\n\nThis library implements a toy LSM Tree implementation\n\nPart of rootconf-25 workshop.\n\nLink to slides: https://gamma.app/docs/Build-your-own-LSM-Tree-in-Rust-o76zgbwlwsd10nv?mode=present#card-8jgga5spmbcqxok\n\n### Getting started\n\n- Clone this repository\n\n```\ngit clone git@github.com:creativcoder/rootconf-25-lsmtree.git\n```\n\nThere are 4 phases for this implementation, each phase and it's solution/fix is marked in git commits with tags.\nTo show the available git tags in the repository, run:\n\n```\ngit tag\n```\n\nHere are the following phases of implementation:\n\n- Git tag `phase1` - where we build our in-memory LSM Tree.\n- Git tag `phase2` - where we flush our in-memory data to disk as SSTables.\n- Git tag `phase3` - where we add support to read from SSTables and also recover older sstable files on restart.\n- Git tag `phase4` - where we add support for SSTable compactions.\n\nEach phase has a few tests you need to make them pass to mark it as fixed.\n\nEach phase above also contains a git tag `phase1_fix` that contains a fix to the exercises/todos in the code.\nIf you cannot get past the exercises at a given phase, feel free to checkout the subsequent phases or the fix for that phase using `git checkout \u003ctag name\u003e`.\n\nTo check the final version of the code and run tests: `git checkout phase4_fix` and run: `cargo test -- --test-threads=1` (test-threads flag is required to ensure they run in sequence)\n\n### Development environment setup\n\nInstall rust compiler toolchain from: https://rustup.rs\n\nInstall rust analyzer (language server protocol) on your IDE: https://rust-analyzer.github.io/\n\nIf you are on Ubuntu, and on a fresh box, don't forget to run: `sudo apt-get install build-essential`.\n\n### Further resources on LSM Tree:\n\nAcademic paper and foundations:\n\nThe original LSM tree paper: \"The Log-Structured Merge-Tree\" by Patrick O'Neil et al. https://www.cs.umb.edu/~poneil/lsmtree.pdf\n\n#### Books:\n\nDatabase internals: https://www.goodreads.com/book/show/44647144-database-internals\n\n#### Blog posts:\n\nWhat is a lsm tree: https://www.creativcoder.dev/blog/what-is-a-lsm-tree\n\n#### Wiki:\n\nRocksDB wiki: https://github.com/facebook/rocksdb/wiki/RocksDB-Overview\n\n#### Implementation guides:\n\nMini LSM - https://skyzh.github.io/mini-lsm/\n","funding_links":[],"categories":[],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fcreativcoder%2Frootconf-25-lsmtree","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fcreativcoder%2Frootconf-25-lsmtree","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fcreativcoder%2Frootconf-25-lsmtree/lists"}