Can we optimize this query? - Convex Community