Hey :), is there a good way to see what part in a function takes long to call, i have currently a lot of (maximum duration: 1s, actual duration: 904.659649ms), but i cant find any way to find the issue what takes that long
5.1.2026, 12:59:59 [CONVEX H(GET /api/auth/convex/token)] [ERROR] [Error: Function execution timed out (maximum duration: 1s)
]
5.1.2026, 12:59:59 [CONVEX H(GET /api/auth/convex/token)] [ERROR] '2026-01-05T11:59:59.639Z ERROR [Better Auth]: INTERNAL_SERVER_ERROR' [Error: Function execution timed out (maximum duration: 1s)
]
5.1.2026, 13:00:05 [CONVEX Q(auth/functions:getSessionUserQuery)] [WARN] Function execution took a long time. (maximum duration: 1s, actual duration: 839.343142ms).
5.1.2026, 13:00:05 [CONVEX Q(auth/functions:getSessionUserQuery)] [WARN] Function execution took a long time. (maximum duration: 1s, actual duration: 839.343142ms).
5.1.2026, 13:00:05 [CONVEX Q(auth/functions:getSessionUserQuery)] [WARN] Function execution took a long time. (maximum duration: 1s, actual duration: 839.343142ms).
5.1.2026, 13:00:05 [CONVEX Q(auth/functions:getSessionUserQuery)] [WARN] Function execution took a long time. (maximum duration: 1s, actual duration: 839.343142ms).
5.1.2026, 13:00:05 [CONVEX Q(auth/functions:getSessionUserQuery)] [WARN] Function execution took a long time. (maximum duration: 1s, actual duration: 839.343142ms).
5.1.2026, 13:00:05 [CONVEX Q(auth/functions:getSessionUserQuery)] [WARN] Function execution took a long time. (maximum duration: 1s, actual duration: 839.343142ms).
5.1.2026, 13:00:05 [CONVEX Q(auth/functions:getSessionUserQuery)] [WARN] Function execution took a long time. (maximum duration: 1s, actual duration: 839.343142ms).
5.1.2026, 13:00:05 [CONVEX Q(auth/functions:getSessionUserQuery)] [WARN] Function execution took a long time. (maximum duration: 1s, actual duration: 839.343142ms).
5.1.2026, 13:00:05 [CONVEX Q(auth/functions:getSessionUserQuery)] [WARN] Function execution took a long time. (maximum duration: 1s, actual duration: 839.343142ms).
5.1.2026, 13:00:05 [CONVEX Q(auth/functions:getSessionUserQuery)] [WARN] Function execution took a long time. (maximum duration: 1s, actual duration: 839.343142ms).
5.1.2026, 13:00:05 [CONVEX Q(auth/functions:getSessionUserQuery)] [WARN] Function execution took a long time. (maximum duration: 1s, actual duration: 839.343142ms).
5.1.2026, 13:00:05 [CONVEX Q(auth/functions:getSessionUserQuery)] [WARN] Function execution took a long time. (maximum duration: 1s, actual duration: 839.343142ms).
5.1.2026, 13:00:05 [CONVEX Q(chat/functions:getThreads)] [WARN] Function execution took a long time. (maximum duration: 1s, actual duration: 894.110088ms).
5.1.2026, 13:00:05 [CONVEX Q(chat/functions:getThreads)] [WARN] Function execution took a long time. (maximum duration: 1s, actual duration: 894.110088ms).
5.1.2026, 13:00:06 [CONVEX Q(chat/functions:getThreadMessages)] Function execution timed out (maximum duration: 1s)
5.1.2026, 13:00:06 [CONVEX Q(chat/functions:getTemporaryThreads)] Function execution timed out (maximum duration: 1s)
5.1.2026, 13:00:06 [CONVEX Q(auth/functions:getUserSettings)] Function execution timed out (maximum duration: 1s)
5.1.2026, 13:00:06 [CONVEX Q(chat/functions:getPinnedThreads)] Function execution timed out (maximum duration: 1s)
5.1.2026, 13:00:06 [CONVEX Q(chat/functions:getThread)] Function execution timed out (maximum duration: 1s)
5.1.2026, 13:00:06 [CONVEX Q(chat/sharing:getThreadAccess)] Function execution timed out (maximum duration: 1s)
5.1.2026, 13:00:06 [CONVEX Q(chat/functions:getMessageRateLimit)] Function execution timed out (maximum duration: 1s)
5.1.2026, 13:00:06 [CONVEX Q(chat/functions:getAllThreadRelationships)] Function execution timed out (maximum duration: 1s)
5.1.2026, 13:00:06 [CONVEX Q(chat/functions:getThreadOrders)] Function execution timed out (maximum duration: 1s)
5.1.2026, 13:00:07 [CONVEX Q(chat/sharing:getThreadInvites)] [WARN] Function execution took a long time. (maximum duration: 1s, actual duration: 823.954433ms).
5.1.2026, 13:00:07 [CONVEX Q(chat/functions:searchThreads)] [WARN] Function execution took a long time. (maximum duration: 1s, actual duration: 882.175666ms).
5.1.2026, 13:00:07 [CONVEX Q(chat/functions:searchThreads)] [WARN] Function execution took a long time. (maximum duration: 1s, actual duration: 904.659649ms).
console.time is pretty handy for debugging slow queries: https://developer.mozilla.org/en-US/docs/Web/API/console/time_static
MDN Web Docs
console: time() static method - Web APIs | MDN
The console.time() static method starts a timer you can use to track how long an operation takes. You give each timer a unique name, and may have up to 10,000 timers running on a given page. When you call console.timeEnd() with the same name, the browser will output the time, in milliseconds, that elapsed since the timer was started.
The MDN Web Docs logo, featuring a blue accent color, displayed on a solid black background.
prisis | Daniel
☑️ — 1/6/26, 7:32 AM
Okay, so there is nothing in convex that i can use?
ariRole icon, Convex Team — 1/6/26, 12:11 PM
It works in your convex functions
Hey :), is there a good way to see what part in a function takes long to call, i have currently a lot of (maximum duration: 1s, actual duration: 904.659649ms), but i cant find any way to find the issue what takes that long
console.time is pretty handy for debugging slow queries: https://developer.mozilla.org/en-US/docs/Web/API/console/time_static
MDN Web Docs
console: time() static method - Web APIs | MDN
The console.time() static method starts a timer you can use to track how long an operation takes. You give each timer a unique name, and may have up to 10,000 timers running on a given page. When you call console.timeEnd() with the same name, the browser will output the time, in milliseconds, that elapsed since the timer was started.
The MDN Web Docs logo, featuring a blue accent color, displayed on a solid black background.
prisis | Daniel
☑️ — 1/6/26, 7:32 AM
Okay, so there is nothing in convex that i can use?
ariRole icon, Convex Team — 1/6/26, 12:11 PM
It works in your convex functions