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

Replace old indexHint idl type with the new IndexHint type

    • Type: Icon: Improvement Improvement
    • Resolution: Unresolved
    • Priority: Icon: Major - P3 Major - P3
    • None
    • Affects Version/s: None
    • Component/s: None
    • Query Execution

      indexHint is an idl type defined in hint.idl

      Currently it accepts BSONObj or String as valid BSON types and is represented as a BSONObj in code (by converting an IndexName represented in String into a BSONObj).

      When working with hint type, it not always clear what exactly does the hint represent, an IndexName, IndexKeyPattern, or a NaturalOrderHint.

      As part of SERVER-77075 query settings were defined in the idl, together with the index hint spec and the new definition of the (new) index hint type.

      New IndexHint class is represented as a class wrapping 

       

      stdx::variant<IndexKeyPattern, IndexName, NaturalOrderHint> _hint;

       

      which documents all possible index hint types.

      As part of this ticket we would:

            Assignee:
            Unassigned Unassigned
            Reporter:
            denis.grebennicov@mongodb.com Denis Grebennicov
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

              Created:
              Updated: