tracks lexicons and how many times they appeared on the jetstream
3
fork

Configure Feed

Select the types of activity you want to include in your feed.

refactor(server): decrease block size for partitions and increase cache

dusk 89a0ea69 8d7c71b8

+2 -2
+1 -1
server/src/db/handle.rs
··· 57 57 impl LexiconHandle { 58 58 pub fn new(keyspace: &Keyspace, nsid: &str) -> Self { 59 59 let opts = PartitionCreateOptions::default() 60 - .block_size(1024 * 128) 60 + .block_size(1024 * 48) 61 61 .compression(fjall::CompressionType::Miniz(9)); 62 62 Self { 63 63 tree: keyspace.open_partition(nsid, opts).unwrap(),
+1 -1
server/src/db/mod.rs
··· 97 97 impl Default for DbConfig { 98 98 fn default() -> Self { 99 99 Self { 100 - ks_config: fjall::Config::default(), 100 + ks_config: fjall::Config::default().cache_size(1024 * 1024 * 512), 101 101 min_block_size: 1000, 102 102 max_block_size: 1_000_000, 103 103 max_last_activity: Duration::from_secs(10),