Uploaded image for project: 'Nuxeo Platform'
  1. Nuxeo Platform
  2. NXP-19891

Allow use of native id for MongoDB

    XMLWordPrintable

    Details

    • Type: New Feature
    • Status: Resolved
    • Priority: Minor
    • Resolution: Fixed
    • Affects Version/s: None
    • Fix Version/s: 8.3
    • Component/s: Core MongoDB

      Description

      We currently use a field "ecm:id" in MongoDB to store the document id. However MongoDB allows us to use its native "_id" field as long as it's unique, which fits our needs.

      When doing this we avoid having an extra field store, and an extra index on it.


      Use of MongoDB native _id field can be activated in the repository's configuration using:

          <repository name="default" label="label.default.repository">
            <server>${nuxeo.mongodb.server}</server>
            <dbname>${nuxeo.mongodb.dbname}</dbname>
            ...
            <nativeId>true</nativeId>
            ...
          </repository>
      

        Attachments

          Activity

            People

            • Votes:
              0 Vote for this issue
              Watchers:
              3 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: