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

    • Type: Icon: Task Task
    • Resolution: Fixed
    • Priority: Icon: Major - P3 Major - P3
    • 7.3.0-rc0
    • Affects Version/s: None
    • Component/s: None
    • None
    • Sharding EMEA
    • Fully Compatible
    • Sharding EMEA 2023-10-30, CAR Team 2023-11-13, CAR Team 2023-11-27
    • 20

      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.

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

              Created:
              Updated:
              Resolved: