Foressi
Foressi
CCConvex Community
Created by Foressi on 12/16/2024 in #support-community
About receiving useQuery events
Now I can understand it clearly. Thank you!
13 replies
CCConvex Community
Created by Foressi on 12/16/2024 in #support-community
About receiving useQuery events
The issue was resolved by using an index. Since this is still in the early stages of development, I was planning to apply indexes later, but it seems they are essential. Thank you so much for your help. Have a great day!
13 replies
CCConvex Community
Created by Foressi on 12/16/2024 in #support-community
About receiving useQuery events
To clarify, if only 1 user is viewing the chat page, the getMessages function appears once. But as the number of users viewing the chat page increases, the getMessages function in the dashboard logs increases proportionally - even when users are on pages with different roomIds. On the client side, only messages with the same roomId are displayed, so other roomId messages are not actually shown. However, it seems unusual that the getMessages function is logged as many times as there are users in the dashboard logs. I'm curious whether this is the original way Convex operates or if I'm misconfiguring something. If it's a misconfiguration, I'd appreciate hints about where I might be going wrong.
13 replies
CCConvex Community
Created by Foressi on 12/16/2024 in #support-community
About receiving useQuery events
No description
13 replies
CCConvex Community
Created by Foressi on 12/16/2024 in #support-community
About receiving useQuery events
First, I'm working with Next.js 14, Convex, and Convex Auth. As you mentioned, on the client page using getMessages, only messages with the specific roomId are being returned. However, let's say 4 users are on the chat page (using getMessages), but each is viewing a page with a different roomId. When a specific user performs a mutation for roomId A, getMessages should only update for the chat room matching that roomId. Consequently, the logs page in the dashboard should show the getMessages function only once, but as shown in the attached image, it appears 4 times.
13 replies