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

AuditLogWriter should fetch entry ids by block

    XMLWordPrintable

    Details

    • Type: Improvement
    • Status: Resolved
    • Priority: Minor
    • Resolution: Fixed
    • Affects Version/s: 9.10
    • Fix Version/s: 10.3
    • Component/s: Audit, Streams

      Description

      Writing audit log entries is very slow.
      Even if we submit to the audit backend a batch of log entries, the slow part is to get the entry id based on a sequence for each entry.
      This creates a roundtrip with a es/redis or db depending on the UIDSequencer impl for each entry.
      This should be refactored to prevent this.

      Possible solutions:

      • Extend UIDSequencer to server a block of sequence -> NXP-25356
      • For the stream implementation (the default) use an entry id based on the record offset.

        Attachments

          Issue Links

            Activity

              People

              • Assignee:
                bdelbosc Benoit Delbosc
                Reporter:
                bdelbosc Benoit Delbosc
                Participants:
                Reviewers:
                Florent Guillaume
              • Votes:
                0 Vote for this issue
                Watchers:
                2 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 - 2 hours
                  2h