shubham
shubham3w ago

read data is toomuch

hi so we are using convex for database storage - with just one person using it - my daily read and write database is coming to be 25 gb with read having most of the portions - and it hs only text that we storing in database one user doing calls to retrieve data from database - it feels very unusal that if things like apple notes consumes data in kb's but on convex teh read data is coming in gb for text files - any help would be appreciated?
16 Replies
Convex Bot
Convex Bot3w ago
Thanks for posting in <#1088161997662724167>. Reminder: If you have a Convex Pro account, use the Convex Dashboard to file support tickets. - Provide context: What are you trying to achieve, what is the end-user interaction, what are you seeing? (full error message, command output, etc.) - Use search.convex.dev to search Docs, Stack, and Discord all at once. - Additionally, you can post your questions in the Convex Community's <#1228095053885476985> channel to receive a response from AI. - Avoid tagging staff unless specifically instructed. Thank you!
jamwt
jamwt3w ago
hi! did you also send a support email? just double checking quick questions with database usage -- can you check your "server health" tab on the dashboard? see if there are any hints or warnings there to help optimize this. 98% of the time, the issue is a missing index
jamwt
jamwt3w ago
Health | Convex Developer Hub
Monitor your Convex deployment health including failure rates, cache performance, scheduler status, and deployment insights for optimization.
jamwt
jamwt3w ago
if you don't mind pasting your insights dashboard screenshot, we could take a look!
shubham
shubhamOP2w ago
No description
shubham
shubhamOP2w ago
@Jamie
ampp
ampp2w ago
it would help to see Functions breakdown by project - then select Database Bandwidth in the dropdown on the right.
shubham
shubhamOP2w ago
even after all optimizations its still half a gb per day w one user
No description
Honey
Honey2w ago
make sure you are not using filters in convex functions and using collect with pagination
Clever Tagline
It's the weekend for the Convex team. Please be patient and he may get back to you on Monday if his time allows.
jamwt
jamwt2w ago
the section right below this called "insights" -- anything there?
shubham
shubhamOP2w ago
all clear there
jamwt
jamwt2w ago
on this usage page, if you scroll down to show which functions are using the most bandwidth, are there any outliers?
shubham
shubhamOP2w ago
i feel like all of them should have been in kb's since they are plain text i am not sure whey everything consumes mb's with single digit users- how can this scale with 10k or 100k users i am worried about that
No description
ampp
ampp2w ago
There are endless ways to optimize. But a lot of websites with 100's of thousands of users remove high usage features. Run the axiom integration and that will show you more granular usage.
jamwt
jamwt2w ago
is that top function using withIndex for every single ctx.db.query("...") call? b/c this is looking unindexed to me

Did you find this page helpful?