<!-- 
RSS generated by JIRA (9.7.1#970001-sha1:2222b88b221c4928ef0de3161136cc90c8356a66) at Thu Feb 08 02:57:29 UTC 2024

It is possible to restrict the fields that are returned in this document by specifying the 'field' parameter in your request.
For example, to request only the issue key and summary append 'field=key&field=summary' to the URL of your request.
-->
<rss version="0.92" >
<channel>
    <title>MongoDB Jira</title>
    <link>https://jira.mongodb.org</link>
    <description>This file is an XML representation of an issue</description>
    <language>en-us</language>    <build-info>
        <version>9.7.1</version>
        <build-number>970001</build-number>
        <build-date>13-04-2023</build-date>
    </build-info>


<item>
            <title>[SERVER-1599] support ability to pass hint to update</title>
                <link>https://jira.mongodb.org/browse/SERVER-1599</link>
                <project id="10000" key="SERVER">Core Server</project>
                    <description>&lt;p&gt;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&#160;&lt;a href=&quot;https://jira.mongodb.org/browse/SERVER-26413&quot; title=&quot;Hinting an incompatible partial index can return incomplete results&quot; class=&quot;issue-link&quot; data-issue-key=&quot;SERVER-26413&quot;&gt;SERVER-26413&lt;/a&gt;.&lt;/p&gt;

&lt;p&gt;Original description:&lt;br/&gt;
 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.&lt;/p&gt;

&lt;p&gt;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.&lt;/p&gt;

&lt;p&gt;This should be backwards compatible. It will either be a $query + other $ options, or just the query, without options (like it is now).&lt;/p&gt;</description>
                <environment></environment>
        <key id="12729">SERVER-1599</key>
            <summary>support ability to pass hint to update</summary>
                <type id="2" iconUrl="https://jira.mongodb.org/secure/viewavatar?size=xsmall&amp;avatarId=14711&amp;avatarType=issuetype">New Feature</type>
                                            <priority id="3" iconUrl="https://jira.mongodb.org/images/icons/priorities/major.svg">Major - P3</priority>
                        <status id="6" iconUrl="https://jira.mongodb.org/images/icons/statuses/closed.png" description="The issue is considered finished, the resolution is correct. Issues which are closed can be reopened.">Closed</status>
                    <statusCategory id="3" key="done" colorName="success"/>
                                    <resolution id="9">Done</resolution>
                                        <assignee username="xinhao.zhang@mongodb.com">Xin Hao Zhang</assignee>
                                    <reporter username="scotthernandez">Scott Hernandez</reporter>
                        <labels>
                            <label>asya</label>
                            <label>ch</label>
                            <label>former-quick-wins</label>
                            <label>s3</label>
                            <label>storch</label>
                    </labels>
                <created>Mon, 9 Aug 2010 21:35:38 +0000</created>
                <updated>Fri, 3 Jun 2022 13:55:19 +0000</updated>
                            <resolved>Wed, 19 Jun 2019 15:38:16 +0000</resolved>
                                    <version>1.6.0</version>
                                    <fixVersion>4.2.0-rc3</fixVersion>
                    <fixVersion>4.3.1</fixVersion>
                                    <component>Write Ops</component>
                                        <votes>126</votes>
                                    <watches>93</watches>
                                                                                                                <comments>
                            <comment id="2311131" author="xgen-internal-githook" created="Wed, 3 Jul 2019 14:48:56 +0000"  >&lt;p&gt;Author:&lt;/p&gt;
{&apos;name&apos;: &apos;Blake Oler&apos;, &apos;email&apos;: &apos;blake.oler@mongodb.com&apos;, &apos;username&apos;: &apos;BlakeIsBlake&apos;}
&lt;p&gt;Message: &lt;a href=&quot;https://jira.mongodb.org/browse/SERVER-1599&quot; title=&quot;support ability to pass hint to update&quot; class=&quot;issue-link&quot; data-issue-key=&quot;SERVER-1599&quot;&gt;&lt;del&gt;SERVER-1599&lt;/del&gt;&lt;/a&gt; Fix lint&lt;/p&gt;

&lt;p&gt;(cherry picked from commit cc59938cb51628b33403b19afd4cf9ba70c25921)&lt;br/&gt;
Branch: v4.2&lt;br/&gt;
&lt;a href=&quot;https://github.com/mongodb/mongo/commit/3da9c08ac98e5a3761c68210ffb4416062cd1ec5&quot; class=&quot;external-link&quot; target=&quot;_blank&quot; rel=&quot;nofollow noopener&quot;&gt;https://github.com/mongodb/mongo/commit/3da9c08ac98e5a3761c68210ffb4416062cd1ec5&lt;/a&gt;&lt;/p&gt;</comment>
                            <comment id="2311130" author="xgen-internal-githook" created="Wed, 3 Jul 2019 14:48:54 +0000"  >&lt;p&gt;Author:&lt;/p&gt;
{&apos;name&apos;: &apos;Xin Hao Zhang&apos;, &apos;email&apos;: &apos;xinhao.zhang@mongodb.com&apos;, &apos;username&apos;: &apos;xinhaoz&apos;}
&lt;p&gt;Message: &lt;a href=&quot;https://jira.mongodb.org/browse/SERVER-1599&quot; title=&quot;support ability to pass hint to update&quot; class=&quot;issue-link&quot; data-issue-key=&quot;SERVER-1599&quot;&gt;&lt;del&gt;SERVER-1599&lt;/del&gt;&lt;/a&gt; Add support for index hint to update command&lt;/p&gt;

&lt;p&gt;(cherry picked from commit 90da71501d23dc1b5a3d78417079fd62e989e035)&lt;br/&gt;
Branch: v4.2&lt;br/&gt;
&lt;a href=&quot;https://github.com/mongodb/mongo/commit/0984d2f5318d54cb6b7691dee1a54fcd953c7357&quot; class=&quot;external-link&quot; target=&quot;_blank&quot; rel=&quot;nofollow noopener&quot;&gt;https://github.com/mongodb/mongo/commit/0984d2f5318d54cb6b7691dee1a54fcd953c7357&lt;/a&gt;&lt;/p&gt;</comment>
                            <comment id="2288468" author="xgen-internal-githook" created="Tue, 18 Jun 2019 14:36:41 +0000"  >&lt;p&gt;Author:&lt;/p&gt;
{&apos;name&apos;: &apos;Blake Oler&apos;, &apos;email&apos;: &apos;blake.oler@mongodb.com&apos;, &apos;username&apos;: &apos;BlakeIsBlake&apos;}
&lt;p&gt;Message: &lt;a href=&quot;https://jira.mongodb.org/browse/SERVER-1599&quot; title=&quot;support ability to pass hint to update&quot; class=&quot;issue-link&quot; data-issue-key=&quot;SERVER-1599&quot;&gt;&lt;del&gt;SERVER-1599&lt;/del&gt;&lt;/a&gt; Fix lint&lt;br/&gt;
Branch: master&lt;br/&gt;
&lt;a href=&quot;https://github.com/mongodb/mongo/commit/cc59938cb51628b33403b19afd4cf9ba70c25921&quot; class=&quot;external-link&quot; target=&quot;_blank&quot; rel=&quot;nofollow noopener&quot;&gt;https://github.com/mongodb/mongo/commit/cc59938cb51628b33403b19afd4cf9ba70c25921&lt;/a&gt;&lt;/p&gt;</comment>
                            <comment id="2288328" author="xgen-internal-githook" created="Tue, 18 Jun 2019 13:16:59 +0000"  >&lt;p&gt;Author:&lt;/p&gt;
{&apos;name&apos;: &apos;Xin Hao Zhang&apos;, &apos;email&apos;: &apos;xinhao.zhang@mongodb.com&apos;, &apos;username&apos;: &apos;xinhaoz&apos;}
&lt;p&gt;Message: &lt;a href=&quot;https://jira.mongodb.org/browse/SERVER-1599&quot; title=&quot;support ability to pass hint to update&quot; class=&quot;issue-link&quot; data-issue-key=&quot;SERVER-1599&quot;&gt;&lt;del&gt;SERVER-1599&lt;/del&gt;&lt;/a&gt; Add support for index hint to update command&lt;br/&gt;
Branch: master&lt;br/&gt;
&lt;a href=&quot;https://github.com/mongodb/mongo/commit/90da71501d23dc1b5a3d78417079fd62e989e035&quot; class=&quot;external-link&quot; target=&quot;_blank&quot; rel=&quot;nofollow noopener&quot;&gt;https://github.com/mongodb/mongo/commit/90da71501d23dc1b5a3d78417079fd62e989e035&lt;/a&gt;&lt;/p&gt;</comment>
                            <comment id="2202295" author="afaruqui@apple.com" created="Thu, 4 Apr 2019 18:11:40 +0000"  >&lt;p&gt;+1 for hint&lt;/p&gt;</comment>
                            <comment id="2129957" author="asya" created="Mon, 28 Jan 2019 22:06:10 +0000"  >&lt;p&gt;&lt;a href=&quot;https://jira.mongodb.org/secure/ViewProfile.jspa?name=stuart.hall%40masternaut.com&quot; class=&quot;user-hover&quot; rel=&quot;stuart.hall@masternaut.com&quot;&gt;stuart.hall@masternaut.com&lt;/a&gt; this ticket is only meant to track ability to pass &lt;tt&gt;hint&lt;/tt&gt; to an update command.&lt;/p&gt;

&lt;p&gt;Ability to sort to update a specific single document is already possible in &lt;tt&gt;findAndModify&lt;/tt&gt; and limiting updateMany would always break in a sharded cluster so we don&apos;t have any plans to add that.  I will update the title and description of the ticket accordingly.&lt;/p&gt;</comment>
                            <comment id="2123906" author="stuart.hall@masternaut.com" created="Wed, 23 Jan 2019 10:37:49 +0000"  >&lt;p&gt;We&apos;ve hit an issue with a specific query that requires a $hint, and this issue is proving a pain to work around. We&apos;re currently using &lt;a href=&quot;https://docs.mongodb.com/manual/core/query-plans/#index-filters&quot; class=&quot;external-link&quot; target=&quot;_blank&quot; rel=&quot;nofollow noopener&quot;&gt;Index Filters&lt;/a&gt; as a work around, but their ephemeral nature (they don&apos;t survive a mongod restart), and lack of proper cluster support makes them challenging to work with in production.&lt;/p&gt;

&lt;p&gt;Seems an odd thing to still not support update query hints (as well as the other requests in this ticket) over eight years after the initial report was created...&lt;/p&gt;</comment>
                            <comment id="1987280" author="davloperez@gmail.com" created="Tue, 28 Aug 2018 07:05:39 +0000"  >&lt;p&gt;+1 for $limit also&lt;/p&gt;</comment>
                            <comment id="1987009" author="JIRAUSER1269436" created="Mon, 27 Aug 2018 20:30:46 +0000"  >&lt;p&gt;+1 for $limit. UpdateMany and deleteMany in batches can take huge benefit of this feature.&lt;/p&gt;</comment>
                            <comment id="1920410" author="guy.margalit@noobaa.com" created="Thu, 14 Jun 2018 06:46:00 +0000"  >&lt;p&gt;+1 for $hint&lt;/p&gt;</comment>
                            <comment id="1703579" author="evgeny@cloudally.com" created="Thu, 19 Oct 2017 07:30:52 +0000"  >&lt;p&gt;+1 for $hint&lt;/p&gt;</comment>
                            <comment id="1407867" author="dancerjohn" created="Thu, 13 Oct 2016 20:02:10 +0000"  >&lt;p&gt;+1 for $sort. I have a case where I only want to update one object and so sorting matters.&lt;/p&gt;</comment>
                            <comment id="793923" author="eran" created="Thu, 25 Dec 2014 10:01:42 +0000"  >&lt;p&gt;@John Myers : &lt;br/&gt;
We had the same issue and solved it by sorting the query and then limiting the update to all document  that are below a sort threshold.&lt;br/&gt;
This give estimated results  at best...  but only require  1 query and 1 update (also it  will only work if the sorted field is quite unique).&lt;br/&gt;
For example (not actual code):&lt;/p&gt;
&lt;p/&gt;
&lt;div id=&quot;syntaxplugin&quot; class=&quot;syntaxplugin&quot; style=&quot;border: 1px dashed #bbb; border-radius: 5px !important; overflow: auto; max-height: 30em;&quot;&gt;
&lt;table cellspacing=&quot;0&quot; cellpadding=&quot;0&quot; border=&quot;0&quot; width=&quot;100%&quot; style=&quot;font-size: 1em; line-height: 1.4em !important; font-weight: normal; font-style: normal; color: black;&quot;&gt;
		&lt;tbody &gt;
				&lt;tr id=&quot;syntaxplugin_code_and_gutter&quot;&gt;
						&lt;td  style=&quot; line-height: 1.4em !important; padding: 0em; vertical-align: top;&quot;&gt;
					&lt;pre style=&quot;font-size: 1em; margin: 0 10px;  margin-top: 10px;   width: auto; padding: 0;&quot;&gt;&lt;span style=&quot;color: black; font-family: &apos;Consolas&apos;, &apos;Bitstream Vera Sans Mono&apos;, &apos;Courier New&apos;, Courier, monospace !important;&quot;&gt;var horizon=5000;&lt;/span&gt;&lt;/pre&gt;
			&lt;/td&gt;
		&lt;/tr&gt;
				&lt;tr id=&quot;syntaxplugin_code_and_gutter&quot;&gt;
						&lt;td  style=&quot; line-height: 1.4em !important; padding: 0em; vertical-align: top;&quot;&gt;
					&lt;pre style=&quot;font-size: 1em; margin: 0 10px;   width: auto; padding: 0;&quot;&gt;&lt;span style=&quot;color: black; font-family: &apos;Consolas&apos;, &apos;Bitstream Vera Sans Mono&apos;, &apos;Courier New&apos;, Courier, monospace !important;&quot;&gt;do {&lt;/span&gt;&lt;/pre&gt;
			&lt;/td&gt;
		&lt;/tr&gt;
				&lt;tr id=&quot;syntaxplugin_code_and_gutter&quot;&gt;
						&lt;td  style=&quot; line-height: 1.4em !important; padding: 0em; vertical-align: top;&quot;&gt;
					&lt;pre style=&quot;font-size: 1em; margin: 0 10px;   width: auto; padding: 0;&quot;&gt;&lt;span style=&quot;color: black; font-family: &apos;Consolas&apos;, &apos;Bitstream Vera Sans Mono&apos;, &apos;Courier New&apos;, Courier, monospace !important;&quot;&gt;  var query={....};&lt;/span&gt;&lt;/pre&gt;
			&lt;/td&gt;
		&lt;/tr&gt;
				&lt;tr id=&quot;syntaxplugin_code_and_gutter&quot;&gt;
						&lt;td  style=&quot; line-height: 1.4em !important; padding: 0em; vertical-align: top;&quot;&gt;
					&lt;pre style=&quot;font-size: 1em; margin: 0 10px;   width: auto; padding: 0;&quot;&gt;&lt;span style=&quot;color: black; font-family: &apos;Consolas&apos;, &apos;Bitstream Vera Sans Mono&apos;, &apos;Courier New&apos;, Courier, monospace !important;&quot;&gt;  var last = db.collection.find(query).sort({sortkey:1}).skip(horizon-1).limit(1)[0];&lt;/span&gt;&lt;/pre&gt;
			&lt;/td&gt;
		&lt;/tr&gt;
				&lt;tr id=&quot;syntaxplugin_code_and_gutter&quot;&gt;
						&lt;td  style=&quot; line-height: 1.4em !important; padding: 0em; vertical-align: top;&quot;&gt;
					&lt;pre style=&quot;font-size: 1em; margin: 0 10px;   width: auto; padding: 0;&quot;&gt;&lt;span style=&quot;color: black; font-family: &apos;Consolas&apos;, &apos;Bitstream Vera Sans Mono&apos;, &apos;Courier New&apos;, Courier, monospace !important;&quot;&gt;  &lt;/span&gt;&lt;/pre&gt;
			&lt;/td&gt;
		&lt;/tr&gt;
				&lt;tr id=&quot;syntaxplugin_code_and_gutter&quot;&gt;
						&lt;td  style=&quot; line-height: 1.4em !important; padding: 0em; vertical-align: top;&quot;&gt;
					&lt;pre style=&quot;font-size: 1em; margin: 0 10px;   width: auto; padding: 0;&quot;&gt;&lt;span style=&quot;color: black; font-family: &apos;Consolas&apos;, &apos;Bitstream Vera Sans Mono&apos;, &apos;Courier New&apos;, Courier, monospace !important;&quot;&gt;  if(last) {&lt;/span&gt;&lt;/pre&gt;
			&lt;/td&gt;
		&lt;/tr&gt;
				&lt;tr id=&quot;syntaxplugin_code_and_gutter&quot;&gt;
						&lt;td  style=&quot; line-height: 1.4em !important; padding: 0em; vertical-align: top;&quot;&gt;
					&lt;pre style=&quot;font-size: 1em; margin: 0 10px;   width: auto; padding: 0;&quot;&gt;&lt;span style=&quot;color: black; font-family: &apos;Consolas&apos;, &apos;Bitstream Vera Sans Mono&apos;, &apos;Courier New&apos;, Courier, monospace !important;&quot;&gt;    query[&apos;sortkey&apos;] = {$lte : last[&apos;sortkey&apos;] };&lt;/span&gt;&lt;/pre&gt;
			&lt;/td&gt;
		&lt;/tr&gt;
				&lt;tr id=&quot;syntaxplugin_code_and_gutter&quot;&gt;
						&lt;td  style=&quot; line-height: 1.4em !important; padding: 0em; vertical-align: top;&quot;&gt;
					&lt;pre style=&quot;font-size: 1em; margin: 0 10px;   width: auto; padding: 0;&quot;&gt;&lt;span style=&quot;color: black; font-family: &apos;Consolas&apos;, &apos;Bitstream Vera Sans Mono&apos;, &apos;Courier New&apos;, Courier, monospace !important;&quot;&gt;    db.collection.update(query,{$set:{mark:&quot;jabberwocky&quot;}},{multi:1});&lt;/span&gt;&lt;/pre&gt;
			&lt;/td&gt;
		&lt;/tr&gt;
				&lt;tr id=&quot;syntaxplugin_code_and_gutter&quot;&gt;
						&lt;td  style=&quot; line-height: 1.4em !important; padding: 0em; vertical-align: top;&quot;&gt;
					&lt;pre style=&quot;font-size: 1em; margin: 0 10px;   width: auto; padding: 0;&quot;&gt;&lt;span style=&quot;color: black; font-family: &apos;Consolas&apos;, &apos;Bitstream Vera Sans Mono&apos;, &apos;Courier New&apos;, Courier, monospace !important;&quot;&gt;    break;&lt;/span&gt;&lt;/pre&gt;
			&lt;/td&gt;
		&lt;/tr&gt;
				&lt;tr id=&quot;syntaxplugin_code_and_gutter&quot;&gt;
						&lt;td  style=&quot; line-height: 1.4em !important; padding: 0em; vertical-align: top;&quot;&gt;
					&lt;pre style=&quot;font-size: 1em; margin: 0 10px;   width: auto; padding: 0;&quot;&gt;&lt;span style=&quot;color: black; font-family: &apos;Consolas&apos;, &apos;Bitstream Vera Sans Mono&apos;, &apos;Courier New&apos;, Courier, monospace !important;&quot;&gt;  }&lt;/span&gt;&lt;/pre&gt;
			&lt;/td&gt;
		&lt;/tr&gt;
				&lt;tr id=&quot;syntaxplugin_code_and_gutter&quot;&gt;
						&lt;td  style=&quot; line-height: 1.4em !important; padding: 0em; vertical-align: top;&quot;&gt;
					&lt;pre style=&quot;font-size: 1em; margin: 0 10px;   width: auto; padding: 0;&quot;&gt;&amp;nbsp;&lt;/pre&gt;
			&lt;/td&gt;
		&lt;/tr&gt;
				&lt;tr id=&quot;syntaxplugin_code_and_gutter&quot;&gt;
						&lt;td  style=&quot; line-height: 1.4em !important; padding: 0em; vertical-align: top;&quot;&gt;
					&lt;pre style=&quot;font-size: 1em; margin: 0 10px;   width: auto; padding: 0;&quot;&gt;&lt;span style=&quot;color: black; font-family: &apos;Consolas&apos;, &apos;Bitstream Vera Sans Mono&apos;, &apos;Courier New&apos;, Courier, monospace !important;&quot;&gt;  horizon =  Math.floor( horizon / 2 );&lt;/span&gt;&lt;/pre&gt;
			&lt;/td&gt;
		&lt;/tr&gt;
				&lt;tr id=&quot;syntaxplugin_code_and_gutter&quot;&gt;
						&lt;td  style=&quot; line-height: 1.4em !important; padding: 0em; vertical-align: top;&quot;&gt;
					&lt;pre style=&quot;font-size: 1em; margin: 0 10px;   margin-bottom: 10px;  width: auto; padding: 0;&quot;&gt;&lt;span style=&quot;color: black; font-family: &apos;Consolas&apos;, &apos;Bitstream Vera Sans Mono&apos;, &apos;Courier New&apos;, Courier, monospace !important;&quot;&gt;} while (horizon);&lt;/span&gt;&lt;/pre&gt;
			&lt;/td&gt;
		&lt;/tr&gt;
			&lt;/tbody&gt;
&lt;/table&gt;
&lt;/div&gt;
&lt;p/&gt;
&lt;p&gt;In most cases it would not iterate  (also if you only care about  updating  once  you  reached your limit  you can simply  remote the iteration)&lt;/p&gt;

&lt;p&gt;Hope this  helps....&lt;/p&gt;</comment>
                            <comment id="793487" author="myjay610" created="Wed, 24 Dec 2014 02:50:44 +0000"  >&lt;p&gt;+1 for $limit. HUGE for batch processing which someone mentioned (2 years ago...). I&apos;m at a wall right now, having to do a batch query with $limit, and then iterate over all the results to set my flag for documents within the batch is insanely inefficient, especially when my client program is the one that has to do the heavy lifting.&lt;/p&gt;</comment>
                            <comment id="762059" author="rskvazh" created="Wed, 12 Nov 2014 10:02:17 +0000"  >&lt;p&gt;Index Filters helps for us! But they are not persistent. Mongod uses wrong index sometimes (when it in ram?) when updates occurred.&lt;/p&gt;</comment>
                            <comment id="751141" author="kevin.pulo@10gen.com" created="Wed, 29 Oct 2014 03:41:18 +0000"  >&lt;p&gt;A potential workaround for &lt;tt&gt;$hint&lt;/tt&gt; on updates in MongoDB 2.6 is to instead use &lt;a href=&quot;http://docs.mongodb.org/manual/core/query-plans/#index-filters&quot; class=&quot;external-link&quot; target=&quot;_blank&quot; rel=&quot;nofollow noopener&quot;&gt;Index Filters&lt;/a&gt;.&lt;/p&gt;</comment>
                            <comment id="566121" author="bperkins@ghx.com" created="Mon, 28 Apr 2014 21:47:06 +0000"  >&lt;p&gt;Limit would be very useful for us. We have many producers and consumers, and need to assign work to one and only one consumer in batches. It would be great to be able to do an update with limit(batch size). &lt;/p&gt;</comment>
                            <comment id="560086" author="theshuss" created="Wed, 23 Apr 2014 10:55:56 +0000"  >&lt;p&gt;I just had a case where $hint is vital for updates because MongoDB keep using a sparse index and cannot update the documents where the indexed field does not exist &lt;img class=&quot;emoticon&quot; src=&quot;https://jira.mongodb.org/images/icons/emoticons/sad.png&quot; height=&quot;16&quot; width=&quot;16&quot; align=&quot;absmiddle&quot; alt=&quot;&quot; border=&quot;0&quot;/&gt;&lt;/p&gt;</comment>
                            <comment id="483586" author="rgpublic" created="Fri, 17 Jan 2014 11:22:11 +0000"  >&lt;p&gt;I just wanted to add my &quot;+1&quot; here because I just stumbled over this. My use case: A huge number of rows needs to be updated with a certain flag. I&apos;d like to do this in a very controlled way - only doing 1000 rows at a time and then giving other queries enough time to complete before doing 1000 rows again. This is especially necessary because of MongoDB&apos;s currently somewhat limited concurrency features. Unfortunately $limit doesnt work with updates so the only approximate solution is to have MongoDB update all rows and then kill the operation after some time. Ugh. &lt;img class=&quot;emoticon&quot; src=&quot;https://jira.mongodb.org/images/icons/emoticons/sad.png&quot; height=&quot;16&quot; width=&quot;16&quot; align=&quot;absmiddle&quot; alt=&quot;&quot; border=&quot;0&quot;/&gt;&lt;/p&gt;</comment>
                            <comment id="322218" author="jkeys089" created="Fri, 26 Apr 2013 13:22:40 +0000"  >&lt;p&gt;I&apos;d also love to have this feature. Working around it is proving to be quite painful.&lt;/p&gt;</comment>
                            <comment id="235414" author="diversario" created="Wed, 9 Jan 2013 20:17:18 +0000"  >&lt;p&gt;$limit for update() would be awesome. I actually didn&apos;t realize there was no support for it until I tested the code I wrote and saw that &quot;limit&quot; in update options doesn&apos;t do anything.&lt;/p&gt;</comment>
                            <comment id="139571" author="samuele.artuso" created="Wed, 4 Jul 2012 12:11:57 +0000"  >&lt;p&gt;It would definitely useful to have these features in Mongo.&lt;/p&gt;</comment>
                            <comment id="99916" author="whardier" created="Sun, 18 Mar 2012 00:47:28 +0000"  >&lt;p&gt;I agree on limit() for multi=true updates.  This would be especially useful when doing batch processing.  There are many many many other ways of handling this situation.  Doing a limited update is one of the most direct and atomic methods of tagging a limited set of documents for later retrieval by that tag.&lt;/p&gt;

&lt;p&gt;Example:  Using a new UUID as a tag and modifying 20 documents that don&apos;t already have a &apos;batchtag&apos;.&lt;/p&gt;

&lt;p&gt;&apos;batchtag&apos; can be sparse indexed as well for very fast access to this small set.&lt;/p&gt;</comment>
                            <comment id="18929" author="scotthernandez" created="Tue, 5 Oct 2010 18:26:42 +0000"  >&lt;p&gt;The same should work for remove as well.&lt;/p&gt;</comment>
                            <comment id="16670" author="scotthernandez" created="Tue, 10 Aug 2010 15:54:58 +0000"  >&lt;p&gt;In the case where you don&apos;t use multi, sortby lets you chose which one you want to update, since it will update the first element only. For example if I were updating the best/wort sales-person I would need to be able to sort (else the sort will come from the index and could be wrong, or change ind. from the update statement).&lt;/p&gt;

&lt;p&gt;In the case of limit, I might just want to update the top 20 sales-people to give them a bonus, or something.&lt;/p&gt;

&lt;p&gt;All of these scenarios depend deeply on the structure of the data, but I want the query part of update to behave as much like find as possible. &lt;/p&gt;

&lt;p&gt;As Aaron pointed pointed out I can do that with two queries (first to get the _ids, then using $in _id to update) but it would be nice if the query portion of update was compatible with the params for find.&lt;/p&gt;</comment>
                            <comment id="16668" author="eliot" created="Tue, 10 Aug 2010 15:45:01 +0000"  >&lt;p&gt;I understand $query and $hint.&lt;br/&gt;
Why would you want $sortby and $limit on an update?&lt;/p&gt;</comment>
                    </comments>
                <issuelinks>
                            <issuelinktype id="10420">
                    <name>Backports</name>
                                            <outwardlinks description="backported by">
                                                        </outwardlinks>
                                                        </issuelinktype>
                            <issuelinktype id="10011">
                    <name>Depends</name>
                                                                <inwardlinks description="is depended on by">
                                        <issuelink>
            <issuekey id="971317">DRIVERS-751</issuekey>
        </issuelink>
                            </inwardlinks>
                                    </issuelinktype>
                            <issuelinktype id="10320">
                    <name>Documented</name>
                                                                <inwardlinks description="is documented by">
                                        <issuelink>
            <issuekey id="808650">DOCS-12819</issuekey>
        </issuelink>
                            </inwardlinks>
                                    </issuelinktype>
                            <issuelinktype id="10012">
                    <name>Related</name>
                                            <outwardlinks description="related to">
                                        <issuelink>
            <issuekey id="320135">SERVER-26413</issuekey>
        </issuelink>
            <issuelink>
            <issuekey id="51122">SERVER-7105</issuekey>
        </issuelink>
            <issuelink>
            <issuekey id="310573">SERVER-25716</issuekey>
        </issuelink>
            <issuelink>
            <issuekey id="1634840">SERVER-54824</issuekey>
        </issuelink>
                            </outwardlinks>
                                                                <inwardlinks description="is related to">
                                        <issuelink>
            <issuekey id="165316">SERVER-15802</issuekey>
        </issuelink>
            <issuelink>
            <issuekey id="29297">SERVER-4796</issuekey>
        </issuelink>
            <issuelink>
            <issuekey id="59478">SERVER-7944</issuekey>
        </issuelink>
            <issuelink>
            <issuekey id="14991">SERVER-2677</issuekey>
        </issuelink>
                            </inwardlinks>
                                    </issuelinktype>
                    </issuelinks>
                <attachments>
                    </attachments>
                <subtasks>
                    </subtasks>
                <customfields>
                                                <customfield id="customfield_10050" key="com.atlassian.jira.toolkit:comments">
                        <customfieldname># Replies</customfieldname>
                        <customfieldvalues>
                            <customfieldvalue>26.0</customfieldvalue>
                        </customfieldvalues>
                    </customfield>
                                                                <customfield id="customfield_18555" key="com.onresolve.jira.groovy.groovyrunner:scripted-field">
                        <customfieldname># of Sprints</customfieldname>
                        <customfieldvalues>
                            <customfieldvalue>2.0</customfieldvalue>

                        </customfieldvalues>
                    </customfield>
                                                                                                                                                                                                                                                                                                                                                                                                                <customfield id="customfield_12450" key="com.atlassian.jira.plugin.system.customfieldtypes:multicheckboxes">
                        <customfieldname>Backport Requested</customfieldname>
                        <customfieldvalues>
                                <customfieldvalue key="16775"><![CDATA[v4.2]]></customfieldvalue>
    
                        </customfieldvalues>
                    </customfield>
                                                                <customfield id="customfield_10011" key="com.atlassian.jira.plugin.system.customfieldtypes:radiobuttons">
                        <customfieldname>Backwards Compatibility</customfieldname>
                        <customfieldvalues>
                                <customfieldvalue key="10038"><![CDATA[Fully Compatible]]></customfieldvalue>

                        </customfieldvalues>
                    </customfield>
                                                                                                                                                    <customfield id="customfield_13552" key="com.go2group.jira.plugin.crm:crm_generic_field">
                        <customfieldname>Case</customfieldname>
                        <customfieldvalues>
                            <customfieldvalue><![CDATA[[500A000000bxOeFIAU, 5002K00000dBEcoQAG, 5002K00000da6jaQAA]]]></customfieldvalue>

                        </customfieldvalues>
                    </customfield>
                                                                                                                                                                                                                                                                                                                            <customfield id="customfield_10055" key="com.atlassian.jira.ext.charting:firstresponsedate">
                        <customfieldname>Date of 1st Reply</customfieldname>
                        <customfieldvalues>
                            <customfieldvalue>Tue, 10 Aug 2010 15:45:01 +0000</customfieldvalue>

                        </customfieldvalues>
                    </customfield>
                                                                <customfield id="customfield_10052" key="com.atlassian.jira.toolkit:dayslastcommented">
                        <customfieldname>Days since reply</customfieldname>
                        <customfieldvalues>
                                        4 years, 32 weeks ago
    
                        </customfieldvalues>
                    </customfield>
                                                                <customfield id="customfield_18254" key="com.onresolve.jira.groovy.groovyrunner:scripted-field">
                        <customfieldname>Dependencies</customfieldname>
                        <customfieldvalues>
                            <customfieldvalue><![CDATA[]]></customfieldvalue>


                        </customfieldvalues>
                    </customfield>
                                                                <customfield id="customfield_15850" key="com.atlassian.jira.plugins.jira-development-integration-plugin:devsummary">
                        <customfieldname>Development</customfieldname>
                        <customfieldvalues>
                            
                        </customfieldvalues>
                    </customfield>
                                                                                            <customfield id="customfield_17052" key="com.atlassian.jira.plugin.system.customfieldtypes:textarea">
                        <customfieldname>Downstream Changes Summary</customfieldname>
                        <customfieldvalues>
                            <customfieldvalue>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.&lt;br/&gt;
</customfieldvalue>

                        </customfieldvalues>
                    </customfield>
                                                                <customfield id="customfield_17050" key="com.atlassian.jira.plugin.system.customfieldtypes:radiobuttons">
                        <customfieldname>Downstream Team Attention</customfieldname>
                        <customfieldvalues>
                                <customfieldvalue key="16942"><![CDATA[Needed]]></customfieldvalue>

                        </customfieldvalues>
                    </customfield>
                                                                                                                        <customfield id="customfield_10857" key="com.pyxis.greenhopper.jira:gh-epic-link">
                        <customfieldname>Epic Link</customfieldname>
                        <customfieldvalues>
                            <customfieldvalue>PM-1324</customfieldvalue>
                        </customfieldvalues>
                    </customfield>
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                <customfield id="customfield_10057" key="com.atlassian.jira.toolkit:lastusercommented">
                        <customfieldname>Last comment by Customer</customfieldname>
                        <customfieldvalues>
                            <customfieldvalue>true</customfieldvalue>
                        </customfieldvalues>
                    </customfield>
                                                                                            <customfield id="customfield_10056" key="com.atlassian.jira.toolkit:lastupdaterorcommenter">
                        <customfieldname>Last commenter</customfieldname>
                        <customfieldvalues>
                            <customfieldvalue>luke.bonanomi@mongodb.com</customfieldvalue>

                        </customfieldvalues>
                    </customfield>
                                                                <customfield id="customfield_11151" key="com.atlassian.jira.toolkit:LastCommentDate">
                        <customfieldname>Last public comment date</customfieldname>
                        <customfieldvalues>
                            4 years, 32 weeks ago
                        </customfieldvalues>
                    </customfield>
                                                                <customfield id="customfield_16465" key="com.onresolve.jira.groovy.groovyrunner:scripted-field">
                        <customfieldname>Linked BF Score</customfieldname>
                        <customfieldvalues>
                            <customfieldvalue>38.0</customfieldvalue>

                        </customfieldvalues>
                    </customfield>
                                                                                            <customfield id="customfield_10000" key="com.atlassian.jira.plugin.system.customfieldtypes:radiobuttons">
                        <customfieldname>Old_Backport</customfieldname>
                        <customfieldvalues>
                                <customfieldvalue key="10000"><![CDATA[No]]></customfieldvalue>

                        </customfieldvalues>
                    </customfield>
                                                                                                                                                                                <customfield id="customfield_10051" key="com.atlassian.jira.toolkit:participants">
                        <customfieldname>Participants</customfieldname>
                        <customfieldvalues>
                                        <customfieldvalue>afaruqui@apple.com</customfieldvalue>
            <customfieldvalue>asya.kamsky@mongodb.com</customfieldvalue>
            <customfieldvalue>theshuss</customfieldvalue>
            <customfieldvalue>bperkins@ghx.com</customfieldvalue>
            <customfieldvalue>davloperez@gmail.com</customfieldvalue>
            <customfieldvalue>eliot</customfieldvalue>
            <customfieldvalue>eran</customfieldvalue>
            <customfieldvalue>evgeny@cloudally.com</customfieldvalue>
            <customfieldvalue>francesco.rivola@gmail.com</customfieldvalue>
            <customfieldvalue>xgen-internal-githook</customfieldvalue>
            <customfieldvalue>guy.margalit@noobaa.com</customfieldvalue>
            <customfieldvalue>diversario</customfieldvalue>
            <customfieldvalue>dancerjohn</customfieldvalue>
            <customfieldvalue>myjay610</customfieldvalue>
            <customfieldvalue>jkeys089</customfieldvalue>
            <customfieldvalue>kevin.pulo@mongodb.com</customfieldvalue>
            <customfieldvalue>rgpublic</customfieldvalue>
            <customfieldvalue>rskvazh</customfieldvalue>
            <customfieldvalue>samuele.artuso</customfieldvalue>
            <customfieldvalue>scotthernandez</customfieldvalue>
            <customfieldvalue>whardier</customfieldvalue>
            <customfieldvalue>stuart.hall@masternaut.com</customfieldvalue>
            <customfieldvalue>xinhao.zhang@mongodb.com</customfieldvalue>
    
                        </customfieldvalues>
                    </customfield>
                                                                                                                                                                                                                                        <customfield id="customfield_14254" key="com.pyxis.greenhopper.jira:gh-lexo-rank">
                        <customfieldname>Product Rank</customfieldname>
                        <customfieldvalues>
                            <customfieldvalue>1|hrphin:</customfieldvalue>

                        </customfieldvalues>
                    </customfield>
                                                                                                                                                                                <customfield id="customfield_12550" key="com.pyxis.greenhopper.jira:gh-lexo-rank">
                        <customfieldname>Rank</customfieldname>
                        <customfieldvalues>
                            <customfieldvalue>2|hr7gw7:</customfieldvalue>

                        </customfieldvalues>
                    </customfield>
                                                                <customfield id="customfield_10558" key="com.pyxis.greenhopper.jira:gh-global-rank">
                        <customfieldname>Rank (Obsolete)</customfieldname>
                        <customfieldvalues>
                            <customfieldvalue>6043</customfieldvalue>
                        </customfieldvalues>
                    </customfield>
                                                                                            <customfield id="customfield_23361" key="com.onresolve.jira.groovy.groovyrunner:scripted-field">
                        <customfieldname>Requested By</customfieldname>
                        <customfieldvalues>
                                

                        </customfieldvalues>
                    </customfield>
                                                                                                                                                                                                                                        <customfield id="customfield_10557" key="com.pyxis.greenhopper.jira:gh-sprint">
                        <customfieldname>Sprint</customfieldname>
                        <customfieldvalues>
                                <customfieldvalue id="2844">Query 2019-06-17</customfieldvalue>
    <customfieldvalue id="2845">Query 2019-07-01</customfieldvalue>

                        </customfieldvalues>
                    </customfield>
                                                                                                                                                                                                                                                                    <customfield id="customfield_17051" key="com.atlassian.jira.plugin.system.customfieldtypes:multicheckboxes">
                        <customfieldname>Teams Impacted</customfieldname>
                        <customfieldvalues>
                                <customfieldvalue key="16944"><![CDATA[Docs]]></customfieldvalue>
    <customfieldvalue key="16945"><![CDATA[Drivers]]></customfieldvalue>
    
                        </customfieldvalues>
                    </customfield>
                                                                                            <customfield id="customfield_10053" key="com.atlassian.jira.ext.charting:timeinstatus">
                        <customfieldname>Time In Status</customfieldname>
                        <customfieldvalues>
                            
                        </customfieldvalues>
                    </customfield>
                                                                                                                                                                                                                                                                                                                                                                                                                                                                        <customfield id="customfield_22870" key="com.onresolve.jira.groovy.groovyrunner:scripted-field">
                        <customfieldname>Triagers</customfieldname>
                        <customfieldvalues>
                                

                        </customfieldvalues>
                    </customfield>
                                                                                                                                                                                                                                                                                                                                                                                    <customfield id="customfield_14350" key="com.pyxis.greenhopper.jira:gh-lexo-rank">
                        <customfieldname>serverRank</customfieldname>
                        <customfieldvalues>
                            <customfieldvalue>1|hsfdlb:</customfieldvalue>

                        </customfieldvalues>
                    </customfield>
                                    </customfields>
    </item>
</channel>
</rss>