You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Add base_version filter to compute net content diffs across arbitrary repository versions
This PR adds a base_version filter to the content viewset that lets repository_version_added
and repository_version_removed compute the net content diff between two arbitray (non-adjacent)
repository versions, rather than only the single-step diff against the immediate predecessor.
Benchmarks on a synthetic 200k-unit system with 1000-unit diffs between repo versions show
that implementing this base_filter vs running a complex q query is ~5-15x faster, with the
query going from 1486 ms -> 99 ms for a 50k/50k repo version pair and 2403 ms -> 479 ms for a
199k/199k repo version pair. With base_version, planning time also decreases significantly
and stays ~0.2 ms.
When base_version is omitted, behavior is unchanged (single-step diff), preserving backward
compatibility. If base_version is provided without repository_version_added or
repository_version_removed, nothing happens.
Closes#7831
Assisted by: Claude Opus 4.8
0 commit comments