Chat: Replace 3-second full polling with incremental fetches
ConversationClient.tsx:280-291 polls the full message list, typing status and the conversation every 3 s (about 60 requests per minute per open tab). InboxShell.tsx:139-171 polls conversations every 10 s. listChatConversations (lib/chat-data.ts:911-928) runs 2-3 correlated subqueries per row. On Turso, every open tab is constant load. Intercom pushes updates over a socket. First scope: add ?since=<updated_at> so only new messages are fetched, pause polling while document.hidden, and denormalize last_message_body onto chat_conversations. Priority: medium. Effort: M.
Comentários 0
Ainda sem comentários.
Entre para comentar