magicsethM
Convex Community3y ago
31 replies
magicseth

Debugging occasional slowness

I'm seeing occasional lag when a child asks our system a question.

In this screenshot append_to_conversation inserts to a list, that is being queried, and newHistory indicates that we received it.
That happened at 11:18:40

The server says it took just a few ms, but it didn't log until timestamp 11:18:44

9/25/2023, 11:18:44 PM
19ms
success
Mutation
queries/ai_conversations/append_to_conversation
log
'childSpoke'


Usually it's way more intant, but here it took 4 seconds to arrive at the server. Is there any instrumentation I can add to identify the lag?

It happens rarely, but sometimes I see lags bigger than 20 seconds.

Trying to track down the core issue.
image.png
Was this page helpful?