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

support ability to pass hint to update

    XMLWordPrintable

    Details

    • Backwards Compatibility:
      Fully Compatible
    • Backport Requested:
      v4.2
    • Sprint:
      Query 2019-06-17, Query 2019-07-01
    • Case:
    • Linked BF Score:
      38

      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).

        Attachments

          Issue Links

            Activity

              People

              Votes:
              126 Vote for this issue
              Watchers:
              94 Start watching this issue

                Dates

                Created:
                Updated:
                Resolved: