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

MongoDB indexes for nuxeo.audit

    XMLWordPrintable

    Details

    • Type: Improvement
    • Status: Resolved
    • Priority: Minor
    • Resolution: Fixed
    • Affects Version/s: 8.10-HF14
    • Fix Version/s: 8.10-HF20, 9.3
    • Component/s: Core MongoDB

      Description

      For 8.10 LTS sites when using Mongo for audit logs we need some indexes on nuxeo.audit. Altas, for example, recommends the following:

      db.audit.createIndex({ 
          docUUID: 1,
          eventId: 1
      }, {background: true})
      
      db.audit.createIndex({ 
          eventDate: -1
      }, {background: true})
      

      I applied this to one of our sites to see if it improves performance which users have reported.

        Attachments

          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 - 15 minutes
                15m