mirror of
https://github.com/kjanat/livedash-node.git
synced 2026-01-16 18:32:10 +01:00
- Add compound index on (companyId, language) for language filtering - Add compound index on (companyId, messagesSent) for message count sorting - Add compound index on (companyId, avgResponseTime) for response time sorting These indexes optimize the session dashboard queries that filter by language or sort by messagesSent/avgResponseTime, preventing full table scans.