[mongodb] Collection per Item (#10202)

Put Item in separate Collections

Signed-off-by: Marc <iseli_marc@hotmail.com>
This commit is contained in:
Marc
2021-03-13 19:48:19 +01:00
committed by GitHub
parent e7950ddbd1
commit 89fcefdb7c
2 changed files with 59 additions and 9 deletions

View File

@@ -11,6 +11,9 @@ This service can be configured in the file `services/mongodb.cfg`.
| ---------- | ------- | :------: | ---------------------------------------------------------------------------- |
| url | | Yes | connection URL to address MongoDB. For example, `mongodb://localhost:27017` |
| database | | Yes | database name |
| collection | | Yes | collection name |
| collection | | Yes | set collection to "" if it shall generate a collection per item |
All item and event related configuration is done in the file `persistence/mongodb.persist`.
If you have a username and password it looks like this: url = mongodb://[username]:[password]@[localhost]:27017/[database]
The database is required: http://mongodb.github.io/mongo-java-driver/3.9/javadoc/com/mongodb/MongoClientURI.html
All item and event related configuration is done in the file `persistence/mongodb.persist`.