pub trait CompactionPersistence: Send + Sync {
// Required method
fn after_compaction<'a>(
&'a self,
compacted_count: usize,
summary_content: &'a str,
summary: &'a str,
) -> Pin<Box<dyn Future<Output = (bool, Option<QdrantPersistFuture>)> + Send + 'a>>;
}Expand description
Persistence completion hook invoked after the in-memory drain/reinsert is finalized.
Returns:
persist_failed: whether the synchronousSQLitepersistence step failed.qdrant_future: optional'staticfuture for the off-thread Qdrant write, bubbled back to the caller viaCompactionOutcome::Compacted::qdrant_future.