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

Support sequence id type on MongoDB

    XMLWordPrintable

    Details

    • Type: Improvement
    • Status: Resolved
    • Priority: Minor
    • Resolution: Fixed
    • Affects Version/s: 8.2
    • Fix Version/s: 8.3
    • Component/s: Core MongoDB

      Description

      Like for any SQL db having compact document id improves index IO and memory footprint.
      We should support more compact ecm:id type in the form of a sequence computed by the database.

      For performance reason, to avoid a round-trip whenever we need a new sequence id, we should provide a way for sequence allocation to be done by blocks.


      Use of a MongoDB sequence for ids, and definition of the block size, 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>
            ...
            <idType>sequence</idType>
            <sequenceBlockSize>100</sequenceBlockSize>
            ...
          </repository>
      

        Attachments

          Activity

            People

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

              Dates

              • Created:
                Updated:
                Resolved: