Skip to content

perf(keyword-metrics): batch freshness lookups#14

Merged
hubab1 merged 1 commit into
mainfrom
06-keyword-query-batching
Jul 18, 2026
Merged

perf(keyword-metrics): batch freshness lookups#14
hubab1 merged 1 commit into
mainfrom
06-keyword-query-batching

Conversation

@hubab1

@hubab1 hubab1 commented Jul 18, 2026

Copy link
Copy Markdown
Owner

Summary

  • Batch and deduplicate SwiftData freshness reads once per selection pass.
  • Fall back to the prior per-query lookup behavior if the bulk fetch fails.
  • Preserve provider grouping, per-entry persistence, progress, cancellation, and failure isolation.

Verification

  • KeywordMetricsServiceTests: 15 tests passed.
  • Full suite: 185 tests in 22 suites passed.
  • App build and launch verification passed.

Attribution

Adapted from PR #8 by @akshaynexus.

Adapt the bulk freshness lookup from PR #8 while preserving per-entry persistence, progress, cancellation, and failure behavior.

Co-authored-by: Akshay CM <akshaycm@hotmail.com>
@hubab1
hubab1 marked this pull request as ready for review July 18, 2026 15:58
@hubab1
hubab1 merged commit 0714d35 into main Jul 18, 2026
1 check passed
@hubab1
hubab1 deleted the 06-keyword-query-batching branch July 18, 2026 15:59
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.

1 participant