Skip to content

perf: optimize riot performance and fix bugs - #190

Merged
vcaesar merged 1 commit into
mainfrom
test-v2
Nov 24, 2026
Merged

vcaesar merged 1 commit into
mainfrom
test-v2

Conversation

@vcaesar

@vcaesar vcaesar commented Nov 24, 2026 •

Copy link
Copy Markdown
Owner

Update go.mod and 5 others

Generated with Codg
Assisted-by: claude-opus-5-5 via Codg codg@atomai.cc

Please provide Issues links to:

  • Issues: #

Provide test code:

```Go
    
```

Description

...

Summary by CodeRabbit

  • Improvements

    • Search queries using block skipping now process skipped matches in batches, which can improve search efficiency.
    • Search results and standard aggregation counts and maximum scores remain consistent across supported query types and index configurations.
  • Tests

    • Added coverage for skipped-match reporting, search results, and aggregation consistency.

Update go.mod and 5 others

Generated with Codg
Assisted-by: claude-opus-5-5 via Codg <codg@atomai.cc>
@CLAassistant

Copy link
Copy Markdown

CLA assistant check
Thank you for your submission! We really appreciate it. Like many open source projects, we ask that you sign our Contributor License Agreement before we can accept your contribution.
You have signed the CLA already but the status is still pending? Let us recheck it.

@vcaesar vcaesar added this to the v1.80.0 milestone Nov 24, 2026
@coderabbitai

coderabbitai Bot commented Nov 24, 2026 •

Copy link
Copy Markdown

Explain Change →

No actionable comments were generated in the recent review.

Walkthrough

Changes: Search skipped-hit handling

Layer / File(s) Summary
Disjunction bounds and skipped runs
search/searcher/search_disjunction_slice.go, search/searcher/disjoint_bitmaps_test.go
Disjunction window skipping checks bitmap disjointness when the summed bound exceeds the floor and the single-child maximum does not. Disjunction iteration batches below-floor hits when block skipping is enabled and flushes pending hits before returning a qualifying hit or at exhaustion. Tests cover disjoint and overlapping bitmap cases.
Term and conjunction skipped-hit batches
search/searcher/search_term.go, search/searcher/search_conjunction.go
Term and conjunction searchers report accumulated below-floor hits as runs when block skipping is enabled. They retain individual reporting when it is disabled and stop when the callback declines a run.
Skipped-run and aggregation tests
search/searcher/skipped_runs_cov_test.go, skipped_runs_test.go
Tests check skipped-run counts, limits, callback stopping, and returned hits. Aggregation tests compare top-1 and top-10 results with full-hit baselines across query shapes and index layouts.

Dependency version update

Layer / File(s) Summary
Update ice requirement
go.mod
The required version of github.com/vcaesar/ice changes from v1.6.1 to v1.6.2.

Change: Other

Merge Risk: Minimal · up to 45224 · assessed changes only

Path filters excluded changed files. This rating applies only to the assessed changes.

Security architecture risk: Minimal · up to 45224

The search optimization stays within the existing scoring and cancellation rules. No new security exposure or index compatibility break was established. Whether an older release can reopen an index written after the upgrade remains unverified.

Retained concerns
No architecture-level concerns identified.

Security review details

Resilience and Maintainability Implications

  • observed — Batching changes when the collector sees skipped hits, but the cancellation check detects when a run crosses a hit-count checkpoint. A cancellation detected there or a searcher error prevents the collector from publishing a result iterator, and the collector closes the searcher on exit.

Hardening Proposals

  • proposed — Validate compatibility in both directions before rolling out the dependency bump on indexes that must remain readable after rollback: open an existing index with the new release, then verify that the old release can reopen a copy after the new release writes and merges segments.
Finishing Touches

Generate unit tests (beta)

  • Commit to this branch
  • Create a new PR
  • Autofix · Keep fixing CodeRabbit findings and required CI, and resolving merge conflicts
Recent review info

Run configuration

  • Source mode: Auto
  • Repository: Unavailable
  • Branch: Unavailable
  • File: No configuration file from this repository applied
  • Commit: Unavailable
  • Layers: defaults
  • Review profile: CHILL
  • Plan: Advanced
  • Run ID: f392da0e-3dcf-46f6-b6f0-3dea3af4500f
Commits

Reviewing files that changed from the base of the PR and between fd10bda and 45224f6.

Files ignored due to path filters: 1

  • go.sum is excluded by !**/*.sum
Files selected for processing: 7

  • go.mod
  • search/searcher/disjoint_bitmaps_test.go
  • search/searcher/search_conjunction.go
  • search/searcher/search_disjunction_slice.go
  • search/searcher/search_term.go
  • search/searcher/skipped_runs_cov_test.go
  • skipped_runs_test.go

Included review availability: This review used your included allowance. Your plan provides up to 10 included reviews per hour; 8 remain after this review.

@codecov

codecov Bot commented Nov 24, 2026 •

Copy link
Copy Markdown

Codecov Report

✅ All modified and coverable lines are covered by tests.
✅ Project coverage is 99.33%. Comparing base (e9b1582) to head (45224f6).
⚠️ Report is 45 commits behind head on main.

Additional details and impacted files
@@            Coverage Diff             @@
##             main     #190      +/-   ##
==========================================
- Coverage   99.34%   99.33%   -0.02%     
==========================================
  Files         302      302              
  Lines       15422    15488      +66     
==========================================
+ Hits        15321    15385      +64     
- Misses        101      103       +2     
Flag Coverage Δ
macos-latest 99.32% <100.00%> (-0.01%) ⬇️
ubuntu-latest 99.31% <100.00%> (-0.02%) ⬇️
windows-latest 99.30% <100.00%> (-0.01%) ⬇️

Flags with carried forward coverage won't be shown. Click here to find out more.

☔ View full report in Codecov by Harness.
📢 Have feedback on the report? Share it here.

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.

@vcaesar
vcaesar merged commit 6493e16 into main Nov 24, 2026
7 of 8 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants