tracks lexicons and how many times they appeared on the jetstream

feat(server): use unlimited journaling and write buffer size on compact cmd as well

ptr.pet f864854c 55d6b407

verified
Changed files
+8 -1
server
src
+8 -1
server/src/main.rs
···
}
fn compact() {
-
let db = Db::new(DbConfig::default(), CancellationToken::new()).expect("couldnt create db");
let info = db.info().expect("cant get db info");
db.major_compact().expect("cant compact");
std::thread::sleep(Duration::from_secs(5));
···
}
fn compact() {
+
let db = Db::new(
+
DbConfig::default().ks(|c| {
+
c.max_journaling_size(u64::MAX)
+
.max_write_buffer_size(u64::MAX)
+
}),
+
CancellationToken::new(),
+
)
+
.expect("couldnt create db");
let info = db.info().expect("cant get db info");
db.major_compact().expect("cant compact");
std::thread::sleep(Duration::from_secs(5));