Uploaded image for project: 'Documentation'
  1. Documentation
  2. DOCS-12819

Investigate changes in SERVER-1599

    XMLWordPrintable

Details

    • Task
    • Status: Closed
    • Major - P3
    • Resolution: Fixed
    • None
    • 4.3.1, 4.2.0-rc3
    • manual, Server
    • None

    Description

      Description

      Change Description:

      Update command now supports index hints, similar to the count command and aggregation pipeline hints. Hint values may be the key value pattern or index name.

      SERVER ticket description:

      Support a way to pass a hint to update command to use a specific index for update query filter. Work done under this ticket will not prevent misuse of hinting, as reported by SERVER-26413.

      Original description:
      Change the behavior on the server for update to look for the special fields: $query, $sortby, $limit, $hint. If these are found treat them the same as the Op_Query does.

      This will allow sorting (so you can update the right element), $limit (so you can just update some of them), $hint (so you can force the right index) in addition to the normal $query part.

      This should be backwards compatible. It will either be a $query + other $ options, or just the query, without options (like it is now).

      Scope of changes

      Impact to Other Docs

      MVP (Work and Date)

      Resources (Scope or Design Docs, Invision, etc.)

      Attachments

        Issue Links

          Activity

            People

              kay.kim@mongodb.com Kay Kim (Inactive)
              craig.homa@mongodb.com Craig Homa
              Kay Kim Kay Kim (Inactive)
              Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved:
                2 years, 49 weeks, 6 days ago