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

fast way to fetch logging config for a table

    XMLWordPrintableJSON

Details

    • Improvement
    • Status: Closed
    • Major - P3
    • Resolution: Done
    • None
    • None
    • None
    • None
    • 8

    Description

      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.

      Attachments

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

        Issue Links

          Activity

            People

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

              Dates

                Created:
                Updated:
                Resolved: