Skip DB member lookup for messages auth check

PerformanceMediaService
Shipped
March 12, 2026 at 3:07 AM UTC
Author
Kamo
Commit
c798b27

Extract getMemberIdFromRequest() that reads memberID from the Redis session without hitting the DB. Use it in getMessages() instead of getCurrentMember() — the member entity was only ever null-checked there, never used. Saves one DB round-trip on every chat history load. Refactor getCurrentMember() to delegate to getMemberIdFromRequest() internally to avoid duplicated cookie/session-reading logic.

All changes

Like what you see shipping?

Every one of these updates lands in your workspace automatically. Start free and watch it grow week after week.

Start Free ForeverView Pricing