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
- API Endpoint to Verify Password.
I have 2 use cases where i need to verify a users password outside of login, e.g. Updating user account data (such as name, or prefs, or data in a users databa...
- Corrupted files on AWS S3
Hello! I'm having trouble using S3 storage with appwrite for file uploads. It happens when uploading files from the Javascript SDK or from the console. The fi...
- 500 server error
Pretty please.. trying to run the last 1.7.4 version on a coolify instance.. i searched like everywhere.. i changed the console to 6.0.41 too.. i tried to hardc...
