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

Add ability to perform a natural scan on a specific recordId range

    • Type: Icon: Task Task
    • Resolution: Unresolved
    • Priority: Icon: Major - P3 Major - P3
    • None
    • Affects Version/s: None
    • Component/s: None
    • None
    • Query Execution

      Mongosync and dbCheck would benefit from being able to do a natural scan on a specific recordId range like so:

      db.runCommand( { find: "coll", sort: { $natural : 1 }, filter: { $and: [ { $recordID: { $gte: 100 } }, { $recordID: { $lte: 200 } } ] } } ) 

      For mongosync in particular, it would be optimal if this is done efficiently when reading from sharded cluster, e.g. if a recordId range does not pertain to a specific shard, that shard should not be a bottleneck on the query.

            Assignee:
            Unassigned Unassigned
            Reporter:
            evgeni.dobranov@mongodb.com Evgeni Dobranov
            Votes:
            0 Vote for this issue
            Watchers:
            12 Start watching this issue

              Created:
              Updated: