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

Get collections sorted by namespace directly from the configsvr

    • Type: Icon: Task Task
    • Resolution: Fixed
    • Priority: Icon: Major - P3 Major - P3
    • 6.3.0-rc0
    • Affects Version/s: None
    • Component/s: None
    • Labels:
      None
    • Sharding EMEA
    • Fully Compatible
    • v6.0
    • Sharding EMEA 2023-01-23, Sharding EMEA 2023-02-06

      We have various indexes on the namespaces field on config.collections thus we should be able to get a list of sorted collections directly from the config server without the need of sorting them on the shard.

      https://github.com/10gen/mongo/blob/1f1a391453abde32fe9e7c2537fff7b7de2cd2e0/src/mongo/db/s/shardsvr_check_metadata_consistency_participant_command.cpp#L121-L127

      In order to achieve this we can add an additional optional paramter to ShardingCatalogClientImpl::getCollections to specify the sorting criteria.

            Assignee:
            pol.pinol@mongodb.com Pol Pinol
            Reporter:
            pol.pinol@mongodb.com Pol Pinol
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

              Created:
              Updated:
              Resolved: