{"id":19385865,"url":"https://github.com/ashwaniydv/my-lsm-tree-cpp","last_synced_at":"2025-04-23T22:32:06.906Z","repository":{"id":220663338,"uuid":"752226403","full_name":"ashwaniYDV/My-LSM-Tree-cpp","owner":"ashwaniYDV","description":"Log-structured Key-Value storage engine written in C++","archived":false,"fork":false,"pushed_at":"2024-06-01T12:26:07.000Z","size":2106,"stargazers_count":5,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-04-02T21:42:34.668Z","etag":null,"topics":["bitcask","cpp","database","db","storage-engine","wal","write-ahead-logging"],"latest_commit_sha":null,"homepage":"","language":"C++","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/ashwaniYDV.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","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}},"created_at":"2024-02-03T12:08:13.000Z","updated_at":"2024-06-01T12:26:11.000Z","dependencies_parsed_at":"2024-02-28T19:53:56.855Z","dependency_job_id":"ab606088-c896-48bd-aa29-efc6016f429d","html_url":"https://github.com/ashwaniYDV/My-LSM-Tree-cpp","commit_stats":null,"previous_names":["ashwaniydv/log-structured-kv-storage-engine","ashwaniydv/my-lsm-tree-cpp"],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ashwaniYDV%2FMy-LSM-Tree-cpp","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ashwaniYDV%2FMy-LSM-Tree-cpp/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ashwaniYDV%2FMy-LSM-Tree-cpp/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ashwaniYDV%2FMy-LSM-Tree-cpp/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/ashwaniYDV","download_url":"https://codeload.github.com/ashwaniYDV/My-LSM-Tree-cpp/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":250527168,"owners_count":21445316,"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","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":["bitcask","cpp","database","db","storage-engine","wal","write-ahead-logging"],"created_at":"2024-11-10T10:03:28.657Z","updated_at":"2025-04-23T22:32:06.645Z","avatar_url":"https://github.com/ashwaniYDV.png","language":"C++","funding_links":[],"categories":[],"sub_categories":[],"readme":"# My-LSM-Tree-cpp\n\n* Implemented a Log-Structured Merge Tree (LSM Tree) Key-Value Storage Engine in C++, drawing inspiration from databases like Bitcask, LevelDB, RocskDB, etc.\n\n## About\n* Lightning-fast writes by appending data directly to a binary file, optimizing write performance.\n* Reads are highly efficient, leveraging an in-memory index to store byte offsets of the latest records in the data file. \n* It is fault-tolerant, persisting both data and index to the file system.\n* Supports crash recovery through \"write-ahead logging,\" allowing the reconstruction of the index in case of system crashes during the persistence process.\n* Data is stored across multiple immutable files + one active/mutable file for handling large data. \n\n## TODO\n* Write a compaction algorithm (running in background) to merge older chunks and their indexes. (Since data file is append only, a key can be present in multiple files but its latest record will be in one of the latest files.)\n* Implement LSM tree.\n\n## How to run\n```\nmake clean\nmake run\n```\n\n## References\n* https://riak.com/assets/bitcask-intro.pdf\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fashwaniydv%2Fmy-lsm-tree-cpp","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fashwaniydv%2Fmy-lsm-tree-cpp","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fashwaniydv%2Fmy-lsm-tree-cpp/lists"}