Hello guys,
I have a dart function in Appwrite, whiche whole purpose is to load the ids, names and email of all available users. Currently, there are a litte over 1.3k Users in the Database. This causes the function to load for 16 Seconds to retrieve all the user information. The code is the following: await users.list(queries: [Query.limit(5000)]);.
Why is the request taking so long? Is there a way to speed it up?
Cheers for the help!
TL;DR
Issue: Dart function to load user information in Appwrite is slow, taking 16 seconds to fetch 1.3k users.
Solution: Modify the code `await users.list(queries: [Query.limit(5000)]);` to limit the query to only fetch necessary information, thus speeding up the process.