#All access to documents is mediated through Convex functions.
9 messages · Page 1 of 1 (latest)
A function call can contain multiple database queries; it might be better think about function calls as just "a request to the backend".
It's $2 USD for every additional 1M calls after the included 25M!
Single or multiple, every database query counts as a function which counts against the quota, right?
No, a Convex query function like
handler: async (ctx, args) => {
const task1 = await ctx.db.get(args.taskId1);
const task2 = await ctx.db.get(args.taskId2);
// do something with tasks
},
does two database queries, but running this function counts as a single function call.
handler: async (ctx, args) => {
const task1 = await ctx.db.get(args.taskId1);
},
but this also counts as a single function and there's no other way to query the database
yeah that's right
That seems to be an extremely inefficient pricing scheme for my chat app.
It's so extreme, I feel like I'm in the wrong business....
I should wrap Firebase and resell it 😄 hahaha
It's true Convex isn't the right fit for everything, but curious about the math there, would you mind walking me through it? I'd like to make some pricing estimators for cases like this.