tracks lexicons and how many times they appeared on the jetstream

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

ptr.pet 89a0ea69 8d7c71b8

verified
Changed files
+2 -2
server
src
+1 -1
server/src/db/handle.rs
···
impl LexiconHandle {
pub fn new(keyspace: &Keyspace, nsid: &str) -> Self {
let opts = PartitionCreateOptions::default()
-
.block_size(1024 * 128)
.compression(fjall::CompressionType::Miniz(9));
Self {
tree: keyspace.open_partition(nsid, opts).unwrap(),
···
impl LexiconHandle {
pub fn new(keyspace: &Keyspace, nsid: &str) -> Self {
let opts = PartitionCreateOptions::default()
+
.block_size(1024 * 48)
.compression(fjall::CompressionType::Miniz(9));
Self {
tree: keyspace.open_partition(nsid, opts).unwrap(),
+1 -1
server/src/db/mod.rs
···
impl Default for DbConfig {
fn default() -> Self {
Self {
-
ks_config: fjall::Config::default(),
min_block_size: 1000,
max_block_size: 1_000_000,
max_last_activity: Duration::from_secs(10),
···
impl Default for DbConfig {
fn default() -> Self {
Self {
+
ks_config: fjall::Config::default().cache_size(1024 * 1024 * 512),
min_block_size: 1000,
max_block_size: 1_000_000,
max_last_activity: Duration::from_secs(10),