{"id":16877020,"url":"https://github.com/penberg/tihku","last_synced_at":"2025-08-25T13:10:48.581Z","repository":{"id":152465010,"uuid":"624295090","full_name":"penberg/tihku","owner":"penberg","description":"Optimistic multi-version concurrency control (MVCC) for main memory databases, written in Rust.","archived":false,"fork":false,"pushed_at":"2023-07-12T08:11:08.000Z","size":446,"stargazers_count":130,"open_issues_count":11,"forks_count":13,"subscribers_count":6,"default_branch":"main","last_synced_at":"2025-04-02T04:11:26.324Z","etag":null,"topics":["database","mvcc","rust"],"latest_commit_sha":null,"homepage":"","language":"Rust","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/penberg.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE.md","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":"2023-04-06T06:47:49.000Z","updated_at":"2025-03-27T05:03:27.000Z","dependencies_parsed_at":null,"dependency_job_id":"f084fb0d-b422-452b-bc0d-1646c7a73aae","html_url":"https://github.com/penberg/tihku","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/penberg/tihku","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/penberg%2Ftihku","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/penberg%2Ftihku/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/penberg%2Ftihku/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/penberg%2Ftihku/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/penberg","download_url":"https://codeload.github.com/penberg/tihku/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/penberg%2Ftihku/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":272070951,"owners_count":24868115,"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-08-25T02:00:12.092Z","response_time":1107,"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":["database","mvcc","rust"],"created_at":"2024-10-13T15:41:17.553Z","updated_at":"2025-08-25T13:10:48.536Z","avatar_url":"https://github.com/penberg.png","language":"Rust","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Tihku\n\nTihku is an _work-in-progress_, open-source implementation of the Hekaton multi-version concurrency control (MVCC) written in Rust.\nThe project aims to provide a foundational building block for implementing database management systems.\n\nOne of the projects using Tihku is an experimental [libSQL branch with MVCC](https://github.com/penberg/libsql/tree/mvcc) that aims to implement `BEGIN CONCURRENT` with Tihku improve SQLite write concurrency.\n\n## Features\n\n* Main memory architecture, rows are accessed via an index\n* Optimistic multi-version concurrency control\n* Rust and C APIs\n\n## Experimental Evaluation\n\n**Single-threaded micro-benchmarks**\n\nOperations                         | Throughput\n-----------------------------------|------------\n`begin_tx`, `read`, and `commit`   | 2.2M ops/second\n`begin_tx`, `update`, and `commit` | 2.2M ops/second\n`read`                             | 12.9M ops/second\n`update`                           | 6.2M ops/second\n\n(The `cargo bench` was run on a AMD Ryzen 9 3900XT 2.2 GHz CPU.)\n\n## Development\n\nRun tests:\n\n```console\ncargo test\n```\n\nTest coverage report:\n\n```console\ncargo tarpaulin -o html\n```\n\nRun benchmarks:\n\n```console\ncargo bench\n```\n\nRun benchmarks and generate flamegraphs:\n\n```console\necho -1 | sudo tee /proc/sys/kernel/perf_event_paranoid\ncargo bench --bench my_benchmark -- --profile-time=5\n```\n\n## References\n\nLarson et al. [High-Performance Concurrency Control Mechanisms for Main-Memory Databases](https://vldb.org/pvldb/vol5/p298_per-akelarson_vldb2012.pdf). VLDB '11\n\nPaper errata: The visibility check in Table 2 is wrong and causes uncommitted delete to become visible to transactions (fixed in [commit 6ca3773]( https://github.com/penberg/mvcc-rs/commit/6ca377320bb59b52ecc0430b9e5e422e8d61658d)).\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fpenberg%2Ftihku","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fpenberg%2Ftihku","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fpenberg%2Ftihku/lists"}