Back

is there any way to get all document count in any collection , currently its not showing more then

  • 0
  • Android
Shubham
2 Feb, 2024, 15:36

is there any way to get all document count in any collection , currently its not showing more then 5000.

TL;DR
There is currently an issue on GitHub discussing adding aggregate functions to Appwrite, which would include getting the document count in a collection. You can show your support for this feature by giving it a thumbs up on the GitHub page (link provided). In the meantime, if you need a running total of all documents, you can set up a new collection and create a function with a trigger on document creation to keep track of the total count there.
Kenny
2 Feb, 2024, 15:53

5000 is the max, if you want arunning total of all documents you will have to have a new collection setup and then you can create a function with a trigger on document create and keep the total there.

Kenny
2 Feb, 2024, 15:54

Here is a github issue to add aggregate functions to appwrite,

https://github.com/appwrite/appwrite/issues/5667

Give it a thumbs up so the team knows that's a widely wanted feature.

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