Constellation, Spacedust, Slingshot, UFOs: atproto crates and services for microcosm
75
fork

Configure Feed

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

read options

might make things a bit faster?

phil 4892264c cdf8cba1

+6 -1
+6 -1
constellation/src/storage/rocks_store.rs
··· 43 43 // consider doing optimize_level_style_compaction or optimize_universal_style_compaction 44 44 opts 45 45 } 46 + fn get_db_read_opts() -> Options { 47 + let mut opts = Options::default(); 48 + opts.optimize_for_point_lookup(512); 49 + opts 50 + } 46 51 47 52 #[derive(Debug, Clone)] 48 53 pub struct RocksStorage { ··· 271 276 ]; 272 277 273 278 let db = if readonly { 274 - DBWithThreadMode::open_cf_descriptors_read_only(&get_db_opts(), path, cfs, false)? 279 + DBWithThreadMode::open_cf_descriptors_read_only(&get_db_read_opts(), path, cfs, false)? 275 280 } else { 276 281 DBWithThreadMode::open_cf_descriptors(&get_db_opts(), path, cfs)? 277 282 };