Hello Walter. I think the former has a place - join picks local replica or fail. I don't think join query (unless crossCollection) bothers about shard preference.
On Wed, Sep 13, 2023 at 7:21 PM Walter Underwood <wun...@wunderwood.org> wrote: > We have a sharded collection that joins with a non-sharded collection. The > non-sharded collection has a replica on every node. Does the join > automatically choose the local replica or do we need to pass in a shard > preference param? > > wunder > Walter Underwood > wun...@wunderwood.org > http://observer.wunderwood.org/ (my blog) > > -- Sincerely yours Mikhail Khludnev