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

Track the depth of the btree when we split instead when we do search each time

    • Type: Icon: Improvement Improvement
    • Resolution: Unresolved
    • Priority: Icon: Minor - P4 Minor - P4
    • None
    • Affects Version/s: None
    • Component/s: None
    • Storage Engines
    • StorEng - Defined Pipeline

      We track the depth of btree each time we do the search:

          /* Track how deep the tree gets. */
          if (depth > btree->maximum_depth)
              btree->maximum_depth = depth;
      

      This is performance critical code and we should not do this here. Instead, we can do this when each time root page is split or reverse split as WiredTiger only changes the depth when root page is split or reverse split.

            Assignee:
            backlog-server-storage-engines [DO NOT USE] Backlog - Storage Engines Team
            Reporter:
            chenhao.qu@mongodb.com Chenhao Qu
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

              Created:
              Updated: