mirror of
https://github.com/qdrant/qdrant.git
synced 2026-07-31 23:20:52 -05:00
Review feedback: capacity was checked per point, from three separate places generating OutOfAppendableCapacity. Now `appendable_segments_with_capacity` is the single origin of the error, and both consumers build on it: `smallest_appendable_segment` picks the smallest among the eligible candidates (measuring is what it already did), and `apply_points_with_conditional_move` computes eligible destinations lazily once per call — the update paths batch points per call, so capacity is checked once per batch of 32 points, not per point. The per-point insert check is dropped. The cap consequently allows an overshoot of at most one batch worth of points per destination, which is negligible against real segment size caps. Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>