tangled
alpha
login
or
join now
ptr.pet
/
Allegedly
forked from
microcosm.blue/Allegedly
0
fork
atom
Server tools to backfill, tail, mirror, and verify PLC logs
0
fork
atom
overview
issues
pulls
pipelines
increase memtable size as test
ptr.pet
2 weeks ago
7c0e3f6e
f2df0907
verified
This commit was signed with the committer's
known signature
.
ptr.pet
SSH Key Fingerprint:
SHA256:Abmvag+juovVufZTxyWY8KcVgrznxvBjQpJesv071Aw=
+10
-3
1 changed file
expand all
collapse all
unified
split
src
plc_fjall.rs
+10
-3
src/plc_fjall.rs
···
93
93
94
94
impl FjallDb {
95
95
pub fn open(path: impl AsRef<Path>) -> fjall::Result<Self> {
96
96
-
let db = Database::builder(path).open()?;
97
97
-
let ops = db.keyspace("ops", KeyspaceCreateOptions::default)?;
98
98
-
let by_did = db.keyspace("by_did", KeyspaceCreateOptions::default)?;
96
96
+
let db = Database::builder(path)
97
97
+
.max_journaling_size(/* 1 GiB */ 1_024 * 1_024 * 1_024)
98
98
+
.open()?;
99
99
+
let opts = KeyspaceCreateOptions::default;
100
100
+
let ops = db.keyspace("ops", || {
101
101
+
opts().max_memtable_size(/* 256 MiB */ 256 * 1_024 * 1_024)
102
102
+
})?;
103
103
+
let by_did = db.keyspace("by_did", || {
104
104
+
opts().max_memtable_size(/* 128 MiB */ 128 * 1_024 * 1_024)
105
105
+
})?;
99
106
Ok(Self {
100
107
inner: Arc::new(FjallInner { db, ops, by_did }),
101
108
})