Skip DB member lookup for messages auth check

PerformanceMediaService
ส่งแล้ว
12 มีนาคม 2569 เวลา 03:07 UTC
ผู้เขียน
Kamo
ตั้งค่า
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.

เปลี่ยนแปลงทั้งหมด

เหมือนที่คุณเห็นการขนส่ง?

ทุก คน ที่ ได้ รับ การ ปรับ ปรุง เหล่า นี้ จะ ลง ไป ใน ที่ ทํา งาน ของ คุณ โดย อัตโนมัติ. เริ่มให้อิสระและดูมันเติบโตสัปดาห์แล้วสัปดาห์เล่า.

เริ่ม เป็น อิสระ ตลอด ไปแสดงพริ้นซ์