Files
livedash-node/prisma
Kaj Kowalski 86498ec0df perf: add missing indexes for session filtering and sorting
- 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.
2025-06-28 21:18:11 +02:00
..