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

Prevent kickback to router when reading from views on unsplittable collections located on the db-primary

    XMLWordPrintableJSON

Details

    • Icon: Task Task
    • Resolution: Fixed
    • Icon: Major - P3 Major - P3
    • 7.3.0-rc0
    • None
    • None
    • None
    • Sharding EMEA
    • Fully Compatible
    • Sharding EMEA 2023-10-30, CAR Team 2023-11-13, CAR Team 2023-11-27
    • 20

    Description

      When reading from a view, mongos will first target the db-primary shard (where view definitions live). The shard will then resolve the view and either:
      a) Execute the read on the underlying collection locally, if the underlying collection is UNSHARDED (i.e. untracked).
      b) "kick back" to mongos, so that mongos retargets the read as an aggregation directly on the underlying collection.

      We must preserve the optimized path (a) for unsplittable collections that live on the db-primary shard. Currently the optimization is not kept because we only attempt local read when the collection in untracked.

      Attachments

        Activity

          People

            jordi.serra-torrens@mongodb.com Jordi Serra Torrens
            jordi.serra-torrens@mongodb.com Jordi Serra Torrens
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: