[DOCS-12819] Investigate changes in SERVER-1599 Created: 19/Jun/19  Updated: 13/Nov/23  Resolved: 07/Aug/19

Status: Closed
Project: Documentation
Component/s: manual, Server
Affects Version/s: None
Fix Version/s: 4.3.1, 4.2.0-rc3, Server_Docs_20231030, Server_Docs_20231106, Server_Docs_20231105, Server_Docs_20231113

Type: Task Priority: Major - P3
Reporter: Craig Homa Assignee: Kay Kim (Inactive)
Resolution: Fixed Votes: 0
Labels: None
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified

Issue Links:
Documented
documents SERVER-1599 support ability to pass hint to update Closed
Related
is related to DOCS-12944 Investigate changes in SERVER-42608: ... Closed
is related to SERVER-42608 Allow updateOne and updateMany in she... Closed
Participants:
Days since reply: 4 years, 24 weeks, 2 days ago
Epic Link: DOCS: 4.2 Server/Tools

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



 Comments   
Comment by Githook User [ 26/Aug/19 ]

Author:

{'name': 'Kay Kim', 'email': 'kay.kim@10gen.com', 'username': 'kay-kim'}

Message: DOCS-12819: 4.2 update and hint (part2)
Branch: v4.2.1
https://github.com/mongodb/docs/commit/db0154b9258e29643b8ac0540241fb5f704532db

Comment by Githook User [ 07/Aug/19 ]

Author:

{'name': 'Kay Kim', 'email': 'kay.kim@10gen.com', 'username': 'kay-kim'}

Message: DOCS-12819: 4.2 update and hint (part1)
Branch: master
https://github.com/mongodb/docs/commit/90294930ef91c74a3895bcd17b3bdd1eb32b97df

Comment by Kay Kim (Inactive) [ 21/Jun/19 ]

Will wait for the SERVER ticket to be updated properly and have the docs ticket generator link create and link the tickets.

Comment by Kay Kim (Inactive) [ 21/Jun/19 ]

craig.homa - will close this ticket and unlink from SERVER.  Instead, will wait for the SERVER ticket to be updated  for docs changes.

 

cc: ian.whalen

Generated at Thu Feb 08 08:06:11 UTC 2024 using Jira 9.7.1#970001-sha1:2222b88b221c4928ef0de3161136cc90c8356a66.