
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
- Is it possible to getRow with all relati...
With the new Opt-In relationship loading, is it possible to query getRow to get all attributes and relationships and possibly even cascading relationships? I tr...
- TableDB.getRow() response does not conta...
This is for Web/React sdk 20.0.0 The row was created via `TableDB.createRow(...)` and I can see it in the console with the relationships correctly set. In the c...
- Permissions for bulk operation
Hi team, I have a question: “In the databases.createDocuments bulk API, can I set document-level permissions? If yes, how exactly should I include the permissio...
