Uploaded image for project: 'WiredTiger'
  1. WiredTiger
  2. WT-5394

fast way to fetch logging config for a table

    • Type: Icon: Improvement Improvement
    • Resolution: Done
    • Priority: Icon: Major - P3 Major - P3
    • None
    • Affects Version/s: None
    • Component/s: None
    • None
    • 8

      On startup, MongoDB needs to fetch the state of all tables' logging config. It does this by opening a metadata:create cursor on each table. This operation is CPU intensive since it needs to merge multiple configs (from table, column group, and file) into one sorted config string before returning to the caller. We could potentially improve MongoDB startup time by creating a special fast-path way to fetch just the state of logging (e.g. "log=(enabled=true)") for a table without going through the expensive config parsing work. This might involve a special flag to metadata:create cursors, or something more exotic.

        1. metadata_cur.png
          metadata_cur.png
          119 kB
        2. test_metadata_cursor04.py
          3 kB

            Assignee:
            sue.loverso@mongodb.com Susan LoVerso
            Reporter:
            milkie@mongodb.com Eric Milkie
            Votes:
            1 Vote for this issue
            Watchers:
            7 Start watching this issue

              Created:
              Updated:
              Resolved: