Despite not using or storing any files, the bandwidth usage is excessively high.
- 0
- Self Hosted
- Flutter
- Databases
- Storage
why the bandwidth usage is excessively high.
What was returned in your 60k spike? If the size of each response was 1K then it will be 60MB and for you it seems like 2-3KB for each response.
It is not much but indeed bigger then average small responses
ok
how can we calculate this
Do you know what are the requests?
If there in web for example you can check the response size in the network tab
not really but i think request are generally response from server
Maybe a database response with a lot of documents ?
ok
In conclusion itβs a bit big response but nothing out of the ordinary
i have small doubt, if one collection contain 1 million documents of all user then when ever we make a request which means our bandwidth size will more ?
If you will send back all the million documents in one response, then sure it will use a huge amount of bandwidth
then how to handle this because as i am fetching all documents and filtering them by permissions, which means more bandwith and computation
You can do it inside a function. Then it will be only internal bandwidth. And after filtering it inside the function send back only the filtered results
databaseId: databaseID,
collectionId: collectionId,
queries: [
Query.limit(10000),
//Query.equal("id", getuserId.$id),
]
);``` here is how i am fetching document but its giving me particular users data i have just used permission for filtering data, now in this condition should i have to use function because data is filtered internally by appwrite (in my asumption, may be i can wrong)
Yes that will work. When youβre initializing the function. Provide the use JWT instead of the API key
nor using api key neither jwt
I mean in the function
ok, Thank you.
Recommended threads
- Does 1.9.0 Self Hosted have MongoDB Atla...
I have been playing with the new 1.9.0 update and I am really excited for the MongoDB support. I wanted to ask though if at the current time Appwrite supports b...
- {"code": 1008, "message": "Invalid Origi...
Nothing has changed in my application or console settings so I'm curious as to what I need to do to fix this. I already have the client registered so I'm not en...
- significant increase in CPU usage with 1...
Hi, This is no big deal at all (as everything is working great so far), but I just saw that the update (from 1.8 to 1.9) consumes much more CPU than before (re...