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

XMLWordPrintableJSON

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

      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:
            [DO NOT USE] Backlog - Storage Engines Team
            Reporter:
            Chenhao Qu
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

              Created:
              Updated: