Skip to content

Commit

Permalink
Adds "Fjall" as a DB backend for moor
Browse files Browse the repository at this point in the history
Fjall is an LSM-based storage engine similar in some respects to
RocksDB, but written in pure Rust.

Depending on how this works out, this may become the default, and I
may retire the WiredTiger bindings, as it has become a source of
stress in compilation. And its isolation level is perhaps not high
enough.
  • Loading branch information
rdaum committed Nov 24, 2024
1 parent a92d312 commit 2f74563
Show file tree
Hide file tree
Showing 28 changed files with 2,762 additions and 142 deletions.
335 changes: 260 additions & 75 deletions Cargo.lock

Large diffs are not rendered by default.

2 changes: 2 additions & 0 deletions Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@ members = [
"crates/compiler",
"crates/daemon",
"crates/db",
"crates/db-fjall",
"crates/db-relbox",
"crates/db-wiredtiger",
"crates/kernel",
Expand Down Expand Up @@ -133,6 +134,7 @@ thiserror = "2.0"
paste = "1.0"

# For the DB & values layer.
fjall = { version = "2.3.2", default-features = false, features = ["ssi_tx", "bytes"] }
libc = "0.2"
relbox = { git = "https://github.com/rdaum/Relbox.git", version = "0.2.0" }
text_io = "0.1" # Used for reading text dumps.
Expand Down
2 changes: 2 additions & 0 deletions crates/daemon/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,7 @@ moor-db-relbox = { path = "../db-relbox", optional = true }
relbox = { workspace = true, optional = true }

moor-db = { path = "../db" }
moor-db-fjall = { path = "../db-fjall" }
moor-db-wiredtiger = { path = "../db-wiredtiger" }
moor-kernel = { path = "../kernel" }
moor-values = { path = "../values" }
Expand All @@ -32,6 +33,7 @@ bytes.workspace = true
color-eyre.workspace = true
daumtils.workspace = true
eyre.workspace = true
fjall.workspace = true
oneshot.workspace = true
signal-hook.workspace = true
tempfile.workspace = true
Expand Down
Loading

0 comments on commit 2f74563

Please sign in to comment.