diff --git a/src/database/engine/descriptor.rs b/src/database/engine/descriptor.rs index 7c455ffe..4185ad8d 100644 --- a/src/database/engine/descriptor.rs +++ b/src/database/engine/descriptor.rs @@ -169,6 +169,7 @@ pub(crate) static RANDOM_CACHE: Descriptor = Descriptor { pub(crate) static RANDOM_SMALL_CACHE: Descriptor = Descriptor { compaction: CompactionStyle::Fifo, cache_disp: CacheDisp::Unique, + compression: CompressionType::None, limit_size: 1024 * 1024 * 64, ttl: 60 * 60 * 24 * 14, file_shape: 2, diff --git a/src/database/maps.rs b/src/database/maps.rs index e418551f..51b7d097 100644 --- a/src/database/maps.rs +++ b/src/database/maps.rs @@ -1,5 +1,6 @@ use std::{collections::BTreeMap, sync::Arc}; +use rocksdb::DBCompressionType as CompressionType; use tuwunel_core::Result; use crate::{ @@ -37,7 +38,8 @@ pub(super) static MAPS: &[Descriptor] = &[ Descriptor { name: "authchainkey_authchain", cache_disp: CacheDisp::SharedWith("shorteventid_authchain"), - index_size: 512, + compression: CompressionType::None, + index_size: 1024, block_size: 4096, key_size_hint: Some(8), // intentionally match shorteventid_authchain val_size_hint: Some(256),