So I am self hosting convex so I am really being conscious about my app to make sure I do not put extra load on CPU and bandwidth, so I want to fetch bunch of chat Documents and these chat documents needs to have a profile pic, They have a relational field that connects them to the character, now each chat document can use different chars so.
I want to know can I create a single query that first gets all the chat documents then their corresponding character data and return the iamge url of each chat with them.
Doing this cuz if I save the image in the chat document and if users updated a character's image it wont get updated, but concerned it will take more CPU compute.
Tell me the best way to keep a high cache hit for this, mkaing sure user have a good UX, and its not putting as low load as possibel on server.