[{"data":1,"prerenderedAt":-1},["ShallowReactive",2],{"project-5838":3},{"id":4,"name":5,"fullName":6,"owner":7,"repo":5,"description":8,"homepage":9,"htmlUrl":10,"language":11,"languages":10,"totalLinesOfCode":10,"stars":12,"forks":13,"watchers":14,"openIssues":15,"contributorsCount":16,"subscribersCount":16,"size":16,"stars1d":17,"stars7d":18,"stars30d":19,"stars90d":16,"forks30d":16,"starsTrendScore":18,"compositeScore":20,"rankGlobal":10,"rankLanguage":10,"license":21,"archived":22,"fork":22,"defaultBranch":23,"hasWiki":22,"hasPages":22,"topics":24,"createdAt":10,"pushedAt":10,"updatedAt":26,"readmeContent":27,"aiSummary":28,"trendingCount":16,"starSnapshotCount":16,"syncStatus":29,"lastSyncTime":30,"discoverSource":31},5838,"redb","cberner\u002Fredb","cberner","An embedded key-value database in pure Rust","https:\u002F\u002Fwww.redb.org",null,"Rust",4563,216,25,6,0,3,9,79,77.41,"Apache License 2.0",false,"master",[25],"rust","2026-06-12 04:00:27","# redb\n\n![CI](https:\u002F\u002Fgithub.com\u002Fcberner\u002Fredb\u002Factions\u002Fworkflows\u002Fci.yml\u002Fbadge.svg)\n[![Crates.io](https:\u002F\u002Fimg.shields.io\u002Fcrates\u002Fv\u002Fredb.svg)](https:\u002F\u002Fcrates.io\u002Fcrates\u002Fredb)\n[![Documentation](https:\u002F\u002Fdocs.rs\u002Fredb\u002Fbadge.svg)](https:\u002F\u002Fdocs.rs\u002Fredb)\n[![License](https:\u002F\u002Fimg.shields.io\u002Fcrates\u002Fl\u002Fredb)](https:\u002F\u002Fcrates.io\u002Fcrates\u002Fredb)\n[![dependency status](https:\u002F\u002Fdeps.rs\u002Frepo\u002Fgithub\u002Fcberner\u002Fredb\u002Fstatus.svg)](https:\u002F\u002Fdeps.rs\u002Frepo\u002Fgithub\u002Fcberner\u002Fredb)\n\nA simple, portable, high-performance, ACID, embedded key-value store.\n\nredb is written in pure Rust and is loosely inspired by [lmdb](http:\u002F\u002Fwww.lmdb.tech\u002Fdoc\u002F). Data is stored in a collection\nof copy-on-write B-trees. For more details, see the [design doc](docs\u002Fdesign.md)\n\n```rust\nuse redb::{Database, Error, ReadableDatabase, TableDefinition};\n\nconst TABLE: TableDefinition\u003C&str, u64> = TableDefinition::new(\"my_data\");\n\nfn main() -> Result\u003C(), Error> {\n    let db = Database::create(\"my_db.redb\")?;\n    let write_txn = db.begin_write()?;\n    {\n        let mut table = write_txn.open_table(TABLE)?;\n        table.insert(\"my_key\", &123)?;\n    }\n    write_txn.commit()?;\n\n    let read_txn = db.begin_read()?;\n    let table = read_txn.open_table(TABLE)?;\n    assert_eq!(table.get(\"my_key\")?.unwrap().value(), 123);\n\n    Ok(())\n}\n```\n\n## Status\nStable and maintained.\n\nThe file format is stable, and a reasonable effort will be made to provide an upgrade path if there\nare any future changes to it.\n\n## Features\n* Zero-copy, thread-safe, `BTreeMap` based API\n* Fully ACID-compliant transactions\n* MVCC support for concurrent readers & writer, without blocking\n* Crash-safe by default\n* Savepoints and rollbacks\n\n## Development\nTo run all the tests and benchmarks a few extra dependencies are required:\n* `cargo install cargo-deny --locked`\n* `cargo install cargo-fuzz --locked`\n* `apt install libclang-dev`\n\n## Benchmarks\nredb has similar performance to other top embedded key-value stores such as lmdb and rocksdb\n\n|                           | redb      | lmdb       | rocksdb        | sled     | fjall       | sqlite     |\n|---------------------------|-----------|------------|----------------|----------|-------------|------------|\n| bulk load                 | 17063ms   | **9232ms** | 13969ms        | 24971ms  | 18619ms     | 15341ms    |\n| individual writes         | **920ms** | 1598ms     | 2432ms         | 2701ms   | 3488ms      | 7040ms     |\n| batch writes              | 1595ms    | 942ms      | 451ms          | 853ms    | **353ms**   | 2625ms     |\n| len()                     | **0ms**   | **0ms**    | 749ms          | 1573ms   | 1181ms      | 30ms       |\n| random reads              | 1138ms    | **637ms**  | 2911ms         | 1601ms   | 2177ms      | 4283ms     |\n| random reads              | 934ms     | **631ms**  | 2884ms         | 1592ms   | 2357ms      | 4281ms     |\n| random range reads        | 1174ms    | **565ms**  | 2734ms         | 1992ms   | 2564ms      | 8431ms     |\n| random range reads        | 1173ms    | **565ms**  | 2742ms         | 1993ms   | 2690ms      | 8449ms     |\n| random reads (4 threads)  | 1390ms    | **840ms**  | 3995ms         | 1913ms   | 2606ms      | 7000ms     |\n| random reads (8 threads)  | 757ms     | **427ms**  | 2147ms         | 1019ms   | 1352ms      | 8123ms     |\n| random reads (16 threads) | 652ms     | **216ms**  | 1478ms         | 690ms    | 963ms       | 23022ms    |\n| random reads (32 threads) | 410ms     | **125ms**  | 1100ms         | 444ms    | 576ms       | 26536ms    |\n| removals                  | 23297ms   | 10435ms    | 6900ms         | 11088ms  | **6004ms**  | 10323ms    |\n| uncompacted size          | 4.00 GiB  | 2.61 GiB   | **893.18 MiB** | 2.13 GiB | 1000.95 MiB | 1.09 GiB   |\n| compacted size            | 1.69 GiB  | 1.26 GiB   | **454.71 MiB** | N\u002FA      | 1000.95 MiB | 556.85 MiB |\n\nSource code for benchmark [here](.\u002Fcrates\u002Fredb-bench\u002Fbenches\u002Flmdb_benchmark.rs). Results collected on a Ryzen 9950X3D with Samsung 9100 PRO NVMe.\n\n## License\n\nLicensed under either of\n\n* [Apache License, Version 2.0](LICENSE-APACHE)\n* [MIT License](LICENSE-MIT)\n\nat your option.\n\n### Contribution\n\nUnless you explicitly state otherwise, any contribution intentionally\nsubmitted for inclusion in the work by you, as defined in the Apache-2.0\nlicense, shall be dual licensed as above, without any additional terms or\nconditions.\n","redb 是一个用纯 Rust 编写的嵌入式键值数据库。它具有零拷贝、线程安全的 BTreeMap 风格 API，支持完全 ACID 事务，并通过 MVCC 实现了读写并发无阻塞特性，同时默认具备崩溃恢复能力。该项目还提供了保存点和回滚功能以增强数据操作的灵活性。redb 的性能与 lmdb 和 rocksdb 等顶级嵌入式键值存储库相当，适用于需要高性能且可靠持久化存储的应用场景，如日志记录、缓存系统或轻量级的数据管理需求。",2,"2026-06-11 03:05:09","top_language"]