Installation and Administration

DBS - MongoDB Configuration

Updated: October 16, 2020

DBS (Document-Based Storage) is an infrastructure in the Nuxeo Platform 5.9.5 (Fast Track) allowing storage of documents inside a document-oriented store, like NoSQL.

The first implementation is available for MongoDB.

Installation

Starting with Nuxeo Platform 5.9.5, all the MongoDB code is part of the default platform.

To activate MongoDB document storage, add the mongodb template to your existing list of templates (nuxeo.templates) in nuxeo.conf.

You must keep the template corresponding to your SQL database in nuxeo.templates, because the SQL database is still used for other things (directories, audit, etc.). For instance you could have:

nuxeo.templates=postgresql,mongodb

or

nuxeo.templates=default,mongodb

Configuration

The property nuxeo.mongodb.server in nuxeo.conf can be set if your MongoDB server doesn't run on the default localhost:27017.

Nuxeo stores its information in the nuxeo database of MongoDB, under the default collection (the name of the collection is the Nuxeo repository name).

For MongoDB beginners, note that if you want to clear your MongoDB instance of Nuxeo data (for instance to start afresh), you should do:

$ mongo nuxeo
> db.default.remove({})
Related Documentation