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

Improve shard targeting for $text queries

    • Type: Icon: Improvement Improvement
    • Resolution: Unresolved
    • Priority: Icon: Major - P3 Major - P3
    • None
    • Affects Version/s: None
    • Component/s: Querying, Sharding
    • Query Integration
    • QuInt E (01/11/16), Query F (02/01/16), Query 10 (02/22/16)

      Currently, sharded $text queries almost always target all shards (i.e. scatter-gather), even if they are AND-related to a simple range scan on the shard key. Instead, $text queries should be targeted using the normal query targeting logic. Special-casing $text queries was previously necessary when planning $text queries on mongos was not allowed, but this restriction was relaxed in the implementation of SERVER-19510.

      The query planner still cannot generate a plan for $text queries without a text index.

            Assignee:
            backlog-query-integration [DO NOT USE] Backlog - Query Integration
            Reporter:
            rassi J Rassi
            Votes:
            2 Vote for this issue
            Watchers:
            7 Start watching this issue

              Created:
              Updated: