Skip to content

perf(cache): add two-tier profile score caching and optimize user com… - #217

Merged
O2sa merged 1 commit into
mainfrom
perf/enahnce-user-caching
Sep 26, 2026
Merged

O2sa merged 1 commit into
mainfrom
perf/enahnce-user-caching

Conversation

@O2sa

@O2sa O2sa commented Sep 26, 2026

Copy link
Copy Markdown
Owner
  • Add Tier 1 Redis computed profile cache (profile:) saving CPU scoring loops
  • Add Tier 2 PostgreSQL pre-computed score lookup in DatabaseStore bypassing raw_data JSONB
  • Refactor compareUsers to reuse getUserProfile and shared profile cache
  • Purge profile cache upon raw user data invalidation
  • Add unit test coverage in profile-cache.test.ts

…parison

- Add Tier 1 Redis computed profile cache (profile:<username>) saving CPU scoring loops
- Add Tier 2 PostgreSQL pre-computed score lookup in DatabaseStore bypassing raw_data JSONB
- Refactor compareUsers to reuse getUserProfile and shared profile cache
- Purge profile cache upon raw user data invalidation
- Add unit test coverage in profile-cache.test.ts
@vercel

vercel Bot commented Sep 26, 2026

Copy link
Copy Markdown

The latest updates on your projects. Learn more about Vercel for GitHub.

Project Deployment Actions Updated
dev-impact Ready Ready Preview Sep 26, 2026 1:13am UTC

@O2sa
O2sa merged commit dec247e into main Sep 26, 2026
7 checks passed
@O2sa

O2sa commented Sep 26, 2026

Copy link
Copy Markdown
Owner Author

✨ Thank you, @O2sa! Another great contribution merged! 🚀

You've been a fantastic contributor! We truly appreciate your continued support.

This branch was successfully deployed

1 active deployment
Preview — 6e7a1975 Deployed Sep 26, 2026 by vercel[bot]
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