Skip to content

perf(search): skip unchanged facet keys when storing metadata - #3682

Merged
aduffeck merged 1 commit into
mainfrom
fix/search-stale-facet-metadata
Oct 30, 2026
Merged

aduffeck merged 1 commit into
mainfrom
fix/search-stale-facet-metadata

Conversation

@dschmidt

@dschmidt dschmidt commented Oct 8, 2026 •

Copy link
Copy Markdown
Contributor

Reindexing a file whose facets did not change no longer writes to the storage, only keys whose stored value differs go into SetArbitraryMetadata. Avoided writes also mean no change event and no mtime propagation, so a --force-rescan of unchanged files stays side-effect free.

Stale key removal itself landed with #3862, this is the leftover of #3682 on top of it.

@codacy-production

codacy-production Bot commented Oct 8, 2026 •

Copy link
Copy Markdown

Up to standards ✅

🟢 Issues 0 issues

Results:
0 new issues

View in Codacy

🟢 Metrics 0 complexity

Metric Results
Complexity 0

View in Codacy

🟢 Coverage 100.00% diff coverage · +0.00% coverage variation

Metric Results
Coverage variation ✅ +0.00% coverage variation (-1.00%)
Diff coverage ✅ 100.00% diff coverage

View coverage diff in Codacy

Coverage variation details
Coverable lines Covered lines Coverage
Common ancestor commit (5b1efe5) 92699 25892 27.93%
Head commit (9a87029) 92702 (+3) 25897 (+5) 27.94% (+0.00%)

Coverage variation is the difference between the coverage for the head and common ancestor commits of the pull request branch: <coverage of head commit> - <coverage of common ancestor commit>

Diff coverage details
Coverable lines Covered lines Diff coverage
Pull request (#3682) 6 6 100.00%

Diff coverage is the percentage of lines that are covered by tests out of the coverable lines that the pull request added or modified: <covered lines added or modified>/<coverable lines added or modified> * 100%

NEW Get contextual insights on your PRs based on Codacy's metrics, along with PR and Jira context, without leaving GitHub. Enable AI reviewer
TIP This summary will be updated as you push new changes.

@dschmidt
dschmidt force-pushed the fix/search-stale-facet-metadata branch 2 times, most recently from 6706b63 to d924ea1 Compare October 9, 2026 08:21
@dschmidt dschmidt changed the title fix(search): remove stale facet metadata and write only changed keys fix(search): remove stale facet metadata Oct 9, 2026
@dschmidt
dschmidt marked this pull request as ready for review October 9, 2026 08:23
@dschmidt
dschmidt requested review from aduffeck and fschade October 15, 2026 14:28
@dschmidt
dschmidt marked this pull request as draft October 30, 2026 08:55
@dschmidt
dschmidt force-pushed the fix/search-stale-facet-metadata branch from d924ea1 to 8193755 Compare October 30, 2026 08:57
@dschmidt
dschmidt force-pushed the fix/search-stale-facet-metadata branch from 8193755 to 9a87029 Compare October 30, 2026 09:06
@dschmidt dschmidt changed the title fix(search): remove stale facet metadata perf(search): skip unchanged facet keys when storing metadata Oct 30, 2026
@dschmidt
dschmidt marked this pull request as ready for review October 30, 2026 09:14
@aduffeck
aduffeck enabled auto-merge October 30, 2026 09:20
@aduffeck
aduffeck merged commit e8bc4c8 into main Oct 30, 2026
61 checks passed
@aduffeck
aduffeck deleted the fix/search-stale-facet-metadata branch October 30, 2026 09:33
@openclouders openclouders mentioned this pull request Oct 30, 2026
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