Targeted Queries


Lecturer says mongos redirect targeted query to related shard according to the shard metadata that mongos has cached. Yet, he also says that whether the query is targeted or scatter gather mongos open cursors for all shards.

Both this information are true?

Is opening cursor for shards that not having(for targeted queries) related data redundant?


Hi @Umut_Tekin,

Thanks for reaching out. @mattjavaly can you please review this?