mercyM
Convex Community4mo ago
1 reply
mercy

cache in helper functions

Does Convex optimize out duplicate
ctx.db.get()
calls for the same document ID within a single query transaction when using helper functions?
If i have Query Q which passes the QueryCtx to TS helper function A which ctx.get/ctx.withIndex a document and then the ctx is passed to helper function B which queries for the same document, does convex cache this?
Was this page helpful?