Skip to content

Fix file count and symbol query normalization performance - #2762

Merged
Widthdom merged 4 commits into
mainfrom
codex/fix-issue1827-1954
May 31, 2026
Merged

Fix file count and symbol query normalization performance#2762
Widthdom merged 4 commits into
mainfrom
codex/fix-issue1827-1954

Conversation

@Widthdom

Copy link
Copy Markdown
Owner

Summary

  • Scope file metadata count aggregation to the candidate file set before joining symbol/reference counts.
  • Reuse normalized symbol query lists across recursive multi-query search/count paths.
  • Add focused DbReader coverage for grouped count SQL and normalized query reuse.

Validation

  • dotnet build CodeIndex.sln -p:UseSharedCompilation=false
  • dotnet test tests/CodeIndex.Tests/CodeIndex.Tests.csproj --filter "FullyQualifiedName~DbReaderTests" -p:UseSharedCompilation=false
  • dotnet run --project tools/CodeIndex.Changelog -- check
  • adversarial review: No blocking/actionable issues found.

Note: an earlier full dotnet test CodeIndex.sln -p:UseSharedCompilation=false run hit a transient ConsoleCaptureTests.Capture_RestoresConsoleStreams_WhenActionThrows failure and then hung; the failing test passed when rerun directly.

Documentation and Changelog

  • Added changelog.d/unreleased/1827.fixed.md
  • Added changelog.d/unreleased/1954.fixed.md

Follow-up Candidates

Fixes #1827
Fixes #1954

@Widthdom
Widthdom merged commit 13e5233 into main May 31, 2026
10 checks passed
@Widthdom
Widthdom deleted the codex/fix-issue1827-1954 branch May 31, 2026 13:15
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Query validation materializes results multiple times Replace correlated COUNT subqueries in GetFileByPath with JOIN GROUP BY

1 participant