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

make single command for size and median

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

      Want to have 1 command "shouldSplitAndMedian??" that figures out if we should split, and if so the split point.
      While doing, also want to change way we determine if we should split.

      Instead of actually counting data, just want to walk index and assume each object is the average object size.
      Will make much faster, and also not require all the data to fit in ram.

      Also - should make it yield as well, just in case it has to page in index.

            Assignee:
            alerner Alberto Lerner
            Reporter:
            eliot Eliot Horowitz (Inactive)
            Votes:
            2 Vote for this issue
            Watchers:
            5 Start watching this issue

              Created:
              Updated:
              Resolved: