ApsA
Convex Community10mo ago
3 replies
Aps

Document in args VS db.get

Hi all!

The topic is about passing documents as args between queries/mutations vs passing only the ids and fetching them from the db every time.

I asked the AI in the docs and it recommended to pass the id, but I wanted to verify this with a human.

I would imagine there are performance considerations here?
Are there also pricing considerations?

Thanks
Was this page helpful?