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
- Apple OAuth Scopes
Hi Hi, I've configured sign in with apple and this is the response i'm getting from apple once i've signed in. I cant find anywhere I set scopes. I remember se...
- Sign In With Apple OAuth Help
Hi All! I've got a flutter & appwrite app which Im trying to use sign in with apple for. I already have sign in with google working and the function is the sam...
- Type Mismatch in AppwriteException
There is a discrepancy in the TypeScript type definitions for AppwriteException. The response property is defined as a string in the type definitions, but in pr...