Back

Get the whole collection at a time

  • 0
  • Databases
  • Functions
  • Web
  • Storage
harishgehlot__
3 Sep, 2023, 15:40

Hi Is it possible to get the whole collection in appwrite's Database at a time. I am using python to get the whole data and train a Machine learning model on it and model retrains itself whenever there is change in Data (added new data)

TL;DR
To get the entire collection at once in Appwrite's Database, you can use pagination. In the self-hosted version, you can fetch up to 5,000 documents per request, while in the cloud version, you can fetch up to 100 documents per request. It is recommended to implement pagination for best practices.
Binyamin
3 Sep, 2023, 16:56

In self-hosted Appwrite you can get up to 5K documents per fetch In the cloud you can get 100 per fetch. You can - and this is the best practice - to use pagination

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