Write amplification ratio: total_index_writes / total_puts. Returns 0.0 if no PUTs have been performed.
(&self)
| 444 | /// |
| 445 | /// Returns 0.0 if no PUTs have been performed. |
| 446 | pub fn write_amp_ratio(&self) -> f64 { |
| 447 | if self.total_puts == 0 { |
| 448 | return 0.0; |
| 449 | } |
| 450 | self.total_index_writes as f64 / self.total_puts as f64 |
| 451 | } |
| 452 | |
| 453 | /// Lookup primary keys by exact field value match. |
| 454 | pub fn lookup_eq(&self, field: &str, value: &[u8]) -> Vec<&[u8]> { |
no outgoing calls