
I have a solar monitor device that emits 10 parameters per minute, in Json format. What is the right way to store the data in DB:
- shall all minute entry be a separate document,
- or to keep all data from one device in one document,
- or to have multiple time-limited (daily, monthly) documents for one device?
- shall have separate collection for each device? What is a reasonable number of collections and documents to deal with?

Single vs multiple documents per data point is up to you depending on how you'll be using the data.
I typically create a collection per data type and void having multiple collections with the same schema

A collection should be able to handle billions of documents. Under the hood, a collection is a mariadb table so refer to the limitations there: https://stackoverflow.com/questions/56474252/max-number-of-records-can-mariadb-support
Recommended threads
- Database error
My code: await databases.createDocument( process.env.APPWRITE_DATABASE, process.env.APPWRITE_COLLECTION_USER, data.userId, ...
- Server Error when using Apprwrite in .NE...
Hello can somebody help me.. I'm getting server error 500 when I try use queries in ListDocuments function but when I removed it or just query without filter it...
- Migration
I want to migrate the data available on Appwrite cloud, from one project to another project in cloud itself. How can this be done, is not possible ?
