Skip to content

Fix index refresh stalls on large C# files - #2598

Merged
Widthdom merged 3 commits into
mainfrom
codex/fix-issue2528
May 24, 2026
Merged

Fix index refresh stalls on large C# files#2598
Widthdom merged 3 commits into
mainfrom
codex/fix-issue2528

Conversation

@Widthdom

Copy link
Copy Markdown
Owner

Summary

  • Batch upsert reference_lines during reference insertion instead of doing one INSERT ... RETURNING per unique line.
  • Refresh mutual-recursion flags through folded-name columns backed by a dedicated index.
  • Reuse already sanitized C# match lines while resolving brace ranges.

Validation

  • dotnet build src/CodeIndex/CodeIndex.csproj -p:UseSharedCompilation=false
  • dotnet test tests/CodeIndex.Tests/CodeIndex.Tests.csproj -c Release -p:UseSharedCompilation=false --filter "FullyQualifiedName~DatabaseTests"
  • dotnet test tests/CodeIndex.Tests/CodeIndex.Tests.csproj -c Release -p:UseSharedCompilation=false --filter "FullyQualifiedName~SymbolExtractorTests"
  • dotnet build CodeIndex.sln -c Release -p:UseSharedCompilation=false
  • dotnet test CodeIndex.sln -c Release -p:UseSharedCompilation=false
  • dotnet run --project tools/CodeIndex.Changelog -- check
  • dotnet ./src/CodeIndex/bin/Debug/net8.0/cdidx.dll index . --files tests/CodeIndex.Tests/QueryCommandRunnerTests.cs --db /private/tmp/cdidx-2528-clean.db --json
  • dotnet ./src/CodeIndex/bin/Debug/net8.0/cdidx.dll . --json
  • dotnet ./src/CodeIndex/bin/Debug/net8.0/cdidx.dll status --check --json
  • git diff --cached --check
  • Codex adversarial review: no blocking/actionable issues found.

Documentation / Changelog

  • Added changelog.d/unreleased/2528.fixed.md.

Follow-up Candidates

  • None.

Fixes #2528

@Widthdom
Widthdom merged commit 3322f94 into main May 24, 2026
10 checks passed
@Widthdom
Widthdom deleted the codex/fix-issue2528 branch May 24, 2026 10:27
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.

cdidx index stalls on QueryCommandRunnerTests.cs

1 participant