Skip to content
Back

(Self-hosted) users.list is very slow

  • 0
  • Self Hosted
  • Functions
BomL97
17 Jan, 2025, 08:00

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.
Reply

Reply to this thread by joining our Discord

Reply on Discord

Need support?

Join our Discord

Get community support by joining our Discord server.

Join Discord

Get premium support

Join Appwrite Pro and get email support from our team.

Learn more