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

Allow optimized MongoDB ids with shorter size

    XMLWordPrintable

    Details

    • Type: New Feature
    • Status: Resolved
    • Priority: Minor
    • Resolution: Fixed
    • Affects Version/s: None
    • Fix Version/s: 10.10-HF25, 11.1
    • Component/s: Core MongoDB
    • Epic Link:
    • Impact type:
      Configuration Change
    • Upgrade notes:
      Hide

      To use optimized ids, provide the following XML configuration (or adapt it):

        <require>default-repository-config</require>
        <extension target="org.nuxeo.ecm.core.storage.mongodb.MongoDBRepositoryService" point="repository">
          <repository name="default">
            <idType>sequenceHexRandomized</idType>
            <nativeId>true</nativeId>
          </repository>
        </extension>
      
      Show
      To use optimized ids, provide the following XML configuration (or adapt it): <require> default-repository-config </require> <extension target= "org.nuxeo.ecm.core.storage.mongodb.MongoDBRepositoryService" point= "repository" > <repository name= "default" > <idType> sequenceHexRandomized </idType> <nativeId> true </nativeId> </repository> </extension>
    • Team:
      FG
    • Sprint:
      nxFG 11.1.13
    • Story Points:
      5

      Description

      We would like to have the option to use smaller document ids in MongoDB. Such smaller ids will give smaller database sizes but more importantly smaller index sizes (in MongoDB as well as

      Currently ids are stored as String version of uuids, which use 36 bytes. We will allow ids to be NumberLong, which use 8 bytes. The external representation (from Nuxeo itself) will still be a string, under the form of a 16-character hexadecimal value.

        Attachments

          Issue Links

            Activity

              People

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

                Dates

                • Created:
                  Updated:
                  Resolved:

                  Time Tracking

                  Estimated:
                  Original Estimate - Not Specified
                  Not Specified
                  Remaining:
                  Remaining Estimate - 0 minutes
                  0m
                  Logged:
                  Time Spent - 3 days
                  3d

                    PagerDuty

                    Error rendering 'com.pagerduty.jira-server-plugin:PagerDuty'. Please contact your Jira administrators.