[Tracking][Phase II] Improve optimize()/compaction performance and resource efficiency

オープン
#728 コメント 2 件 リアクション 0 件 担当者 1 名 GitHub で見る

メンテナーはふだん 1 日以内に返信

@feihongxu0824 がすでに取り組んでいます。

2026年9月7日 から。

評価

この issue はまだ評価されていません。

説明

Background

Phase I (#98) introduced a safe segment-reuse path for compaction:

  • Reuse the first compatible vector index as the merge base.
  • Append tail segments instead of rebuilding the complete index.
  • Support FLAT, HNSW, and HNSW_RABITQ when there is no filter and schemas are compatible.
  • Fall back to a full rebuild for filters, incompatible schemas, IVF, VAMANA, and other unsafe cases.

This significantly reduced compaction time for reusable paths. Phase II will build on that work and address the remaining rebuild, file-copy, memory, and I/O costs.

Goals
  • Make compaction cost scale primarily with the changed/tail data where possible.
  • Reduce write amplification, temporary disk usage, and peak RSS.
  • Expand incremental/reuse support to more index and compaction scenarios.

Tracking fixes and improvments here.

主要言語
C++
スター
16.3k
フォーク
1k
平均マージ
2日 10時間
マージ済み PR(30日)
32

環境構築

はじめの一歩

  1. issue を最後まで読み、次にプロジェクトのコントリビューションガイドを読みます。
  2. 着手することを issue にコメントします — 二人が同じ作業をするのを防げます。
  3. リポジトリをフォークし、ブランチを切って変更します。
  4. issue 番号を参照したプルリクエストを送ります。

alibaba/zvec のほかの issue

alibaba/zvec の issue をすべて見る

似ている issue

C++ の issue をもっと見る

新しい issue をメールで受け取る

初心者向けの GitHub issue を短くまとめたダイジェスト。