Science Score: 54.0%
This score indicates how likely this project is to be science-related based on various indicators:
-
✓CITATION.cff file
Found CITATION.cff file -
✓codemeta.json file
Found codemeta.json file -
✓.zenodo.json file
Found .zenodo.json file -
○DOI references
-
✓Academic publication links
Links to: arxiv.org -
○Academic email domains
-
○Institutional organization owner
-
○JOSS paper metadata
-
○Scientific vocabulary similarity
Low similarity (13.4%) to scientific vocabulary
Repository
C++ fast transactional key-value storage.
Basic Info
Statistics
- Stars: 171
- Watchers: 6
- Forks: 18
- Open Issues: 16
- Releases: 0
Metadata Files
README.md
LineairDB
LineairDB is a fast transactional key-value storage library. It provides transaction processing for multiple keys with strict serializability.
Features
- Keys and values are arbitrary byte arrays.
- The basic operations are read(key), write(key, value), ExecuteTransaction(procedure, callback).
- Changes in a transaction for multiple key-value pairs are made with atomicity and durability.
- Concurrent transactions are processed with strict serializability.
- In contended write-heavy workloads, high scalability for many-core CPUs is provided.
Notes
- LineairDB is not an SQL (Relational) database.
- There is no client-server support in the library (i.e., LineairDB is an embedded database).
Usage
```c++
include
int main() { { LineairDB::Database db; LineairDB::TxStatus status;
// Execute: enqueue a transaction with an expected callback
db.ExecuteTransaction(
[](LineairDB::Transaction& tx) {
auto alice = tx.Read<int>("alice");
if (alice.has_value()) {
int alice = alice.value();
}
tx.Write<int>("bob", 1);
},
[&](LineairDB::TxStatus s) { status = s; });
// Fence: Block-wait until all running transactions are terminated
db.Fence();
// status == LineairDB::TxStatus::Committed;
} } ```
Getting the Source
git clone --recurse-submodules https://github.com/lineairdb/lineairdb.git
Building
Quick start:
mkdir -p build && cd build
cmake -DBUILD_SHARED_LIBS=ON -DCMAKE_BUILD_TYPE=Release .. && make && sudo make install
Then you can use LineairDB by including the header lineairdb/lineairdb.h.
Compatibility
We have been tested LineairDB in the following environments:
- Apple clang version 11.0.3
- Clang >= 6 on Linux
- GCC >= 7.5
Documentation
The LineairDB library documentation is available.
You can also build it by simply running
doxygen
and open docs/build/html/index.html.
Technical detail of concurrency control protocols such as SiloNWR is also available in the research paper at this link. The project roadmap is here.
Benchmark Results
The followings are our benchmark results. This is a modified benchmark of YCSB-A; unlike official YCSB in which a transaction operates a single key, each transaction operates on four keys in our benchmark.
This benchmark is executed in the following environments:
| | | | ---------------------------- | ------------------------------------------------- | | CPU | four Intel Xeon E7-8870 (total 144 logical cores) | | Memory | 1TB (no swap-out) | | YCSB Table size | 100K | | YCSB Record size | 8-bytes | | Epoch size | 1000ms | | Contention (θ) | 0.9 (highly contended) | | # of threads to process txns | 70 |
YCSB-A

SiloNWR, our novel concurrency control protocol, achieves excellent performance over 10 Million transaction per seconds (TPS) by omitting transactions without exclusive lockings. Note that YCSB-A has an operation ratio of Read 50% and (Blind) Write 50%; that is, this is a fairly favorable setting for NWR-protocols. If your use case is such a blind write-intensive, then LineairDB can be a great solution.
Contributing
This project welcomes contributions, issues, suggestions, and feature requests.
Feel free to check issues page.
Question & Discussion
If you have any questions, please feel free to ask on slack. Join to slack
Owner
- Name: LineairDB
- Login: LineairDB
- Kind: organization
- Repositories: 1
- Profile: https://github.com/LineairDB
Citation (CITATION.cff)
cff-version: 1.2.0 title: "C++ fast transactional key-value storage." message: "If you use this software, please cite it as below." authors: - name: "LineairDB contributors" title: "LineairDB" version: 1.0.0 date-released: 2020-4-28 url: "https://github.com/lineairdb/lineairdb" repository-code: "https://github.com/lineairdb/lineairdb" license: Apache-2.0
GitHub Events
Total
- Issues event: 2
- Watch event: 10
- Delete event: 10
- Issue comment event: 37
- Push event: 15
- Pull request review comment event: 44
- Pull request review event: 55
- Pull request event: 28
- Fork event: 6
- Create event: 6
Last Year
- Issues event: 2
- Watch event: 10
- Delete event: 10
- Issue comment event: 37
- Push event: 15
- Pull request review comment event: 44
- Pull request review event: 55
- Pull request event: 28
- Fork event: 6
- Create event: 6
Issues and Pull Requests
Last synced: 9 months ago
All Time
- Total issues: 2
- Total pull requests: 70
- Average time to close issues: over 3 years
- Average time to close pull requests: 21 days
- Total issue authors: 2
- Total pull request authors: 4
- Average comments per issue: 0.5
- Average comments per pull request: 0.6
- Merged pull requests: 11
- Bot issues: 0
- Bot pull requests: 57
Past Year
- Issues: 1
- Pull requests: 16
- Average time to close issues: N/A
- Average time to close pull requests: 3 days
- Issue authors: 1
- Pull request authors: 4
- Average comments per issue: 0.0
- Average comments per pull request: 0.06
- Merged pull requests: 7
- Bot issues: 0
- Bot pull requests: 3
Top Authors
Issue Authors
- nikezono (1)
- wasanemon (1)
Pull Request Authors
- dependabot[bot] (57)
- nikezono (8)
- wasanemon (4)
- Noxy3301 (1)
Top Labels
Issue Labels
Pull Request Labels
Dependencies
- actions/checkout v2 composite
- actions/upload-artifact v2 composite