Uploaded image for project: 'Core Server'
  1. Core Server
  2. SERVER-68000

Optimize index used to support query-based reopening

    • Type: Icon: Improvement Improvement
    • Resolution: Won't Do
    • Priority: Icon: Major - P3 Major - P3
    • None
    • Affects Version/s: None
    • Component/s: None
    • Labels:
      None
    • Execution Team 2022-11-28, Execution Team 2022-12-26
    • 5

      The index we build by default to support query-based reopening can lead to about a 10% decrease in throughput for bulk insert workloads, and up to 30% increase in median latency for individual inserts. We can probably improve this by building the index directly on the system.buckets collection over {meta: 1, control.min.time: 1} rather than using the standard rewrite ({meta: 1, control.min.time: 1, control.max.time: 1}) to decrease the frequency of index key updates.

      Additionally, we could potentially skip calculating index keys if we know the underlying fields haven't changed.

            Assignee:
            dan.larkin-york@mongodb.com Dan Larkin-York
            Reporter:
            dan.larkin-york@mongodb.com Dan Larkin-York
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Created:
              Updated:
              Resolved: