Execute an on-demand compaction request. Forces compaction of all vector collections (regardless of tombstone ratio), CSR compaction, and dangling edge sweep. Returns a summary payload with compaction statistics.
(&mut self, task: &ExecutionTask)
| 24 | /// ratio), CSR compaction, and dangling edge sweep. Returns a summary |
| 25 | /// payload with compaction statistics. |
| 26 | pub(in crate::data::executor) fn execute_compact(&mut self, task: &ExecutionTask) -> Response { |
| 27 | let result = self.run_compaction(true); |
| 28 | let payload = match zerompk::to_msgpack_vec(&result) { |
| 29 | Ok(p) => p, |
| 30 | Err(e) => { |
| 31 | tracing::warn!(error = %e, "failed to encode compaction stats"); |
| 32 | Vec::new() |
| 33 | } |
| 34 | }; |
| 35 | self.response_with_payload(task, payload) |
| 36 | } |
| 37 | |
| 38 | /// Run all maintenance/compaction tasks. |
| 39 | /// |
no test coverage detected