Skip to content
Back

getting total documents

  • 0
  • Self Hosted
  • Databases
Amberon
11 Nov, 2024, 07:10

hey, i want to get th total numbers of documents in a collection, i used the total count that is returned with response but it only showed at max 5000 count where else i have more then 52k documents

TL;DR
To get the total number of documents in a collection beyond the limit of 5000, you'll need to track this manually by updating a document on each creation and deletion. Use a function triggered by events to maintain an accurate count.
darShan
11 Nov, 2024, 07:39

you'll have to track this manually by say creating a document that is updated on each create and deletion of documents. Use a function that is triggered on events.

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