<!-- 
RSS generated by JIRA (9.7.1#970001-sha1:2222b88b221c4928ef0de3161136cc90c8356a66) at Thu Feb 08 02:55:44 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-991] $push with $slice + $sort</title>
                <link>https://jira.mongodb.org/browse/SERVER-991</link>
                <project id="10000" key="SERVER">Core Server</project>
                    <description>&lt;p&gt;You can now limit the resulting elements in the array after you push. The new syntax is :&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;   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;db.coll.update({...}, {$push: { $each:[&amp;lt;values&amp;gt;], $slice:-N, $sort:{...}}}&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;The initial implementation (see &lt;a href=&quot;https://jira.mongodb.org/browse/SERVER-8069&quot; title=&quot;Support full $slice / $sort semantics in $push&quot; class=&quot;issue-link&quot; data-issue-key=&quot;SERVER-8069&quot;&gt;&lt;del&gt;SERVER-8069&lt;/del&gt;&lt;/a&gt; for more) only supports negative slice (taking stuff from the end of the array).&lt;/p&gt;

&lt;p&gt;Sorting is by embedded document fields and doesn&apos;t work any type which is not an embedded docs (in the array).&lt;/p&gt;</description>
                <environment></environment>
        <key id="11744">SERVER-991</key>
            <summary>$push with $slice + $sort</summary>
                <type id="2" iconUrl="https://jira.mongodb.org/secure/viewavatar?size=xsmall&amp;avatarId=14711&amp;avatarType=issuetype">New Feature</type>
                                            <priority id="4" iconUrl="https://jira.mongodb.org/images/icons/priorities/minor.svg">Minor - P4</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="alerner">Alberto Lerner</assignee>
                                    <reporter username="ibwhite">Ian White</reporter>
                        <labels>
                    </labels>
                <created>Fri, 9 Apr 2010 20:50:49 +0000</created>
                <updated>Thu, 6 Apr 2023 16:24:30 +0000</updated>
                            <resolved>Thu, 13 Dec 2012 01:58:19 +0000</resolved>
                                                    <fixVersion>2.3.2</fixVersion>
                                    <component>Write Ops</component>
                                        <votes>141</votes>
                                    <watches>98</watches>
                                                                                                                <comments>
                            <comment id="384701" author="flavien" created="Fri, 19 Jul 2013 14:37:45 +0000"  >&lt;p&gt;Is there a chance to have this work with the aggregation framework in a $group operator, so that we can find the top K items in each group?&lt;/p&gt;</comment>
                            <comment id="230320" author="auto" created="Thu, 3 Jan 2013 21:26:36 +0000"  >&lt;p&gt;Author:&lt;/p&gt;
{u&apos;date&apos;: u&apos;2013-01-03T21:23:09Z&apos;, u&apos;name&apos;: u&apos;Alberto Lerner&apos;, u&apos;email&apos;: u&apos;alerner@10gen.com&apos;}
&lt;p&gt;Message: &lt;a href=&quot;https://jira.mongodb.org/browse/SERVER-991&quot; title=&quot;$push with $slice + $sort&quot; class=&quot;issue-link&quot; data-issue-key=&quot;SERVER-991&quot;&gt;&lt;del&gt;SERVER-991&lt;/del&gt;&lt;/a&gt; &lt;a href=&quot;https://jira.mongodb.org/browse/SERVER-8008&quot; title=&quot;$push to sorted array&quot; class=&quot;issue-link&quot; data-issue-key=&quot;SERVER-8008&quot;&gt;&lt;del&gt;SERVER-8008&lt;/del&gt;&lt;/a&gt; Fixed test to use $slice instead of $trimTo.&lt;br/&gt;
Branch: master&lt;br/&gt;
&lt;a href=&quot;https://github.com/mongodb/mongo/commit/56090cce56cc8e700b8dedc809e50523d3272cea&quot; class=&quot;external-link&quot; target=&quot;_blank&quot; rel=&quot;nofollow noopener&quot;&gt;https://github.com/mongodb/mongo/commit/56090cce56cc8e700b8dedc809e50523d3272cea&lt;/a&gt;&lt;/p&gt;</comment>
                            <comment id="230107" author="auto" created="Thu, 3 Jan 2013 17:26:11 +0000"  >&lt;p&gt;Author:&lt;/p&gt;
{u&apos;date&apos;: u&apos;2013-01-03T17:19:13Z&apos;, u&apos;name&apos;: u&apos;Alberto Lerner&apos;, u&apos;email&apos;: u&apos;alerner@10gen.com&apos;}
&lt;p&gt;Message: &lt;a href=&quot;https://jira.mongodb.org/browse/SERVER-991&quot; title=&quot;$push with $slice + $sort&quot; class=&quot;issue-link&quot; data-issue-key=&quot;SERVER-991&quot;&gt;&lt;del&gt;SERVER-991&lt;/del&gt;&lt;/a&gt; &lt;a href=&quot;https://jira.mongodb.org/browse/SERVER-8008&quot; title=&quot;$push to sorted array&quot; class=&quot;issue-link&quot; data-issue-key=&quot;SERVER-8008&quot;&gt;&lt;del&gt;SERVER-8008&lt;/del&gt;&lt;/a&gt; Replaced $trimTo by $slice (but only accepting negative slices for now).&lt;br/&gt;
Branch: master&lt;br/&gt;
&lt;a href=&quot;https://github.com/mongodb/mongo/commit/b3687e73545f6d0d04f1992119308e7ab80d44e1&quot; class=&quot;external-link&quot; target=&quot;_blank&quot; rel=&quot;nofollow noopener&quot;&gt;https://github.com/mongodb/mongo/commit/b3687e73545f6d0d04f1992119308e7ab80d44e1&lt;/a&gt;&lt;/p&gt;</comment>
                            <comment id="214224" author="auto" created="Thu, 13 Dec 2012 18:52:14 +0000"  >&lt;p&gt;Author:&lt;/p&gt;
{u&apos;date&apos;: u&apos;2012-12-13T18:48:38Z&apos;, u&apos;email&apos;: u&apos;alerner@10gen.com&apos;, u&apos;name&apos;: u&apos;Alberto Lerner&apos;}
&lt;p&gt;Message: &lt;a href=&quot;https://jira.mongodb.org/browse/SERVER-991&quot; title=&quot;$push with $slice + $sort&quot; class=&quot;issue-link&quot; data-issue-key=&quot;SERVER-991&quot;&gt;&lt;del&gt;SERVER-991&lt;/del&gt;&lt;/a&gt; Fixed the last few trim&apos;s to trimTo&apos;s.&lt;br/&gt;
Branch: master&lt;br/&gt;
&lt;a href=&quot;https://github.com/mongodb/mongo/commit/2beeb14b6a200094ccf1ebe3be638a8c0d00f843&quot; class=&quot;external-link&quot; target=&quot;_blank&quot; rel=&quot;nofollow noopener&quot;&gt;https://github.com/mongodb/mongo/commit/2beeb14b6a200094ccf1ebe3be638a8c0d00f843&lt;/a&gt;&lt;/p&gt;</comment>
                            <comment id="213428" author="auto" created="Wed, 12 Dec 2012 21:24:55 +0000"  >&lt;p&gt;Author:&lt;/p&gt;
{u&apos;date&apos;: u&apos;2012-12-12T21:21:43Z&apos;, u&apos;email&apos;: u&apos;alerner@10gen.com&apos;, u&apos;name&apos;: u&apos;Alberto Lerner&apos;}
&lt;p&gt;Message: &lt;a href=&quot;https://jira.mongodb.org/browse/SERVER-991&quot; title=&quot;$push with $slice + $sort&quot; class=&quot;issue-link&quot; data-issue-key=&quot;SERVER-991&quot;&gt;&lt;del&gt;SERVER-991&lt;/del&gt;&lt;/a&gt; Allowed trimTo to be a double if it&apos;s not fractional.&lt;br/&gt;
Branch: master&lt;br/&gt;
&lt;a href=&quot;https://github.com/mongodb/mongo/commit/7bf153e956d24bad98169ef751ff71050cce10dd&quot; class=&quot;external-link&quot; target=&quot;_blank&quot; rel=&quot;nofollow noopener&quot;&gt;https://github.com/mongodb/mongo/commit/7bf153e956d24bad98169ef751ff71050cce10dd&lt;/a&gt;&lt;/p&gt;</comment>
                            <comment id="213368" author="geoffeg" created="Wed, 12 Dec 2012 20:20:50 +0000"  >&lt;p&gt;Hmm, just tested this and it works great but I had to specifically cast the value for $trimTo to a NumberInt or NumberLong in the mongo shell. { $push : { &apos;v&apos; : &lt;/p&gt;
{ $each : [ 19 ], $trimTo : 2 }
&lt;p&gt;}} gave me &quot;$trim value must be a numeric integer&quot;. Was that intended?&lt;/p&gt;

&lt;p&gt;also, one thought.. Maybe the $trimTo values could be used as hints for padding factors? I would assume the use case for this involves updates to the same collections always having the same $trimTo values and starting off with only one value and growing until $trimTo when the values get popped off. This is probably over-optimization.&lt;/p&gt;</comment>
                            <comment id="213120" author="alerner" created="Wed, 12 Dec 2012 15:35:14 +0000"  >&lt;p&gt;Added a new variation of $push that trims the resulting array to a given size. Sam and Alberto discussed already a bit about it.&lt;/p&gt;</comment>
                            <comment id="213117" author="alerner" created="Wed, 12 Dec 2012 15:33:12 +0000"  >&lt;p&gt;Author:&lt;/p&gt;
{u&apos;date&apos;: u&apos;2012-12-12T15:01:10Z&apos;, u&apos;email&apos;: u&apos;alerner@10gen.com&apos;, u&apos;name&apos;: u&apos;Alberto Lerner&apos;}
&lt;p&gt;Message: &lt;a href=&quot;https://jira.mongodb.org/browse/SERVER-991&quot; title=&quot;$push with $slice + $sort&quot; class=&quot;issue-link&quot; data-issue-key=&quot;SERVER-991&quot;&gt;&lt;del&gt;SERVER-991&lt;/del&gt;&lt;/a&gt; Fixed debug compilation.&lt;br/&gt;
Branch: master&lt;br/&gt;
&lt;a href=&quot;https://github.com/mongodb/mongo/commit/90f4ef6e11b10732552ebf51d8c89d214b996ca9&quot; class=&quot;external-link&quot; target=&quot;_blank&quot; rel=&quot;nofollow noopener&quot;&gt;https://github.com/mongodb/mongo/commit/90f4ef6e11b10732552ebf51d8c89d214b996ca9&lt;/a&gt;&lt;/p&gt;</comment>
                            <comment id="213095" author="auto" created="Wed, 12 Dec 2012 15:05:30 +0000"  >&lt;p&gt;Author:&lt;/p&gt;
{u&apos;date&apos;: u&apos;2012-12-12T14:56:18Z&apos;, u&apos;email&apos;: u&apos;alerner@10gen.com&apos;, u&apos;name&apos;: u&apos;Alberto Lerner&apos;}
&lt;p&gt;Message: &lt;a href=&quot;https://jira.mongodb.org/browse/SERVER-991&quot; title=&quot;$push with $slice + $sort&quot; class=&quot;issue-link&quot; data-issue-key=&quot;SERVER-991&quot;&gt;&lt;del&gt;SERVER-991&lt;/del&gt;&lt;/a&gt; Added ability to trim array as part of a $push.&lt;br/&gt;
Branch: master&lt;br/&gt;
&lt;a href=&quot;https://github.com/mongodb/mongo/commit/77cf08426e6e30c60efd7198c016386b52503a4a&quot; class=&quot;external-link&quot; target=&quot;_blank&quot; rel=&quot;nofollow noopener&quot;&gt;https://github.com/mongodb/mongo/commit/77cf08426e6e30c60efd7198c016386b52503a4a&lt;/a&gt;&lt;/p&gt;</comment>
                            <comment id="207007" author="bgsosh@gmail.com" created="Wed, 5 Dec 2012 11:41:35 +0000"  >&lt;p&gt;Definitely a much required basic feature - IMO this is more useful even than capped collections.  I can&apos;t imagine it&apos;s that difficult to implement - is it?&lt;/p&gt;</comment>
                            <comment id="149337" author="nyxtom" created="Wed, 1 Aug 2012 05:00:42 +0000"  >&lt;p&gt;This feature needs to exist. I&apos;d almost consider just running a patched/forked version of mongodb just for this feature.&lt;/p&gt;</comment>
                            <comment id="123868" author="awsiv" created="Tue, 29 May 2012 14:50:59 +0000"  >&lt;p&gt;@Stephan B : +1 to that &lt;img class=&quot;emoticon&quot; src=&quot;https://jira.mongodb.org/images/icons/emoticons/smile.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="123867" author="jgonera" created="Tue, 29 May 2012 14:50:02 +0000"  >&lt;p&gt;Why exactly has this been postponed again? What is the problem and how could the community help in resolving it?&lt;/p&gt;</comment>
                            <comment id="123844" author="stephanos" created="Tue, 29 May 2012 14:24:47 +0000"  >&lt;p&gt;With &lt;a href=&quot;http://gigaom.com/cloud/with-42m-more-10gen-wants-to-take-mongodb-mainstream/&quot; class=&quot;external-link&quot; target=&quot;_blank&quot; rel=&quot;nofollow noopener&quot;&gt;$42M&lt;/a&gt; of new investment maybe this tiny 1-day-patch could be &lt;b&gt;considered&lt;/b&gt; to be included in the 2.1/2.2 release? :-/&lt;/p&gt;</comment>
                            <comment id="122941" author="hoffrocket" created="Thu, 24 May 2012 22:31:08 +0000"  >&lt;p&gt;I implemented this with slightly different syntax than what&apos;s proposed.  Haven&apos;t really tested out in production though:&lt;br/&gt;
&lt;a href=&quot;https://github.com/hoffrocket/mongo/commits/jon-pushMax&quot; class=&quot;external-link&quot; target=&quot;_blank&quot; rel=&quot;nofollow noopener&quot;&gt;https://github.com/hoffrocket/mongo/commits/jon-pushMax&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;Usage:&lt;/p&gt;

&lt;p&gt;{ $pushMax : { a : &lt;/p&gt;
{max: 5, data: 4 }
&lt;p&gt; } }&lt;/p&gt;

&lt;p&gt;Also includes a new $hash (should probably be renamed $md5) query operation so that replication works correctly.&lt;/p&gt;</comment>
                            <comment id="122339" author="richardoliver@qivox.co.uk" created="Wed, 23 May 2012 16:21:30 +0000"  >&lt;p&gt;@Stephan B absolutely, I&apos;ve been waiting for nearly two years for this feature.  It&apos;s really frustrating watching it slip further and further back.&lt;/p&gt;</comment>
                            <comment id="122315" author="stephanos" created="Wed, 23 May 2012 15:12:17 +0000"  >&lt;p&gt;Is there ANY chance this might be re-considered for 2.2?&lt;/p&gt;

&lt;p&gt;I mean it seems trivial to implement and is quite inefficient to solve in application code.&lt;br/&gt;
Based on the current roadmap the 2.4 release would probably be 2013 ... &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;

&lt;p&gt;I&apos;d just like to understand why a small, but very popular feature like this can&apos;t make it into 2.1/2.2&lt;/p&gt;</comment>
                            <comment id="115088" author="pierrearmageddon" created="Tue, 1 May 2012 11:13:45 +0000"  >&lt;p&gt;This feature is also really important for us. Would be great if this could get pushed up so it gets into 2.2. Thanks&lt;/p&gt;</comment>
                            <comment id="110589" author="stephanos" created="Tue, 17 Apr 2012 08:41:13 +0000"  >&lt;p&gt;No! Why in 2.3? It says &quot;Estimate: Small ( &amp;lt; 1 day)&quot; - so why not in 2.2? &lt;br/&gt;
This feature request is 2+ years old already. I&apos;ve been looking forward to this for months... &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;

&lt;p&gt;PS: According to &quot;Popular Issues&quot; this ranks #9.&lt;/p&gt;</comment>
                            <comment id="104894" author="javierferrero" created="Thu, 29 Mar 2012 18:37:33 +0000"  >&lt;p&gt;+1 for this useful feature. Hope it gets resolved soon.&lt;/p&gt;</comment>
                            <comment id="103694" author="eliot" created="Mon, 26 Mar 2012 18:40:21 +0000"  >&lt;p&gt;Yes.&lt;/p&gt;</comment>
                            <comment id="103457" author="colinmollenhour" created="Mon, 26 Mar 2012 08:57:01 +0000"  >&lt;p&gt;Makes sense. However, that second to last push example is not valid JSON..&lt;/p&gt;

&lt;p&gt;Did you mean this?&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;{ $push : { a : { $each: [ 1 ] , $trim : 5 } } }&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;{ $push : { a : { $each : [ 1 , 2 ] , $trim : 5 } } }&lt;/span&gt;&lt;/pre&gt;
			&lt;/td&gt;
		&lt;/tr&gt;
			&lt;/tbody&gt;
&lt;/table&gt;
&lt;/div&gt;
&lt;p/&gt;</comment>
                            <comment id="103413" author="eliot" created="Mon, 26 Mar 2012 02:09:46 +0000"  >&lt;p&gt;We&apos;d like to move more towards the way $addToSet works with $each&lt;/p&gt;

&lt;p&gt;Current syntax:&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;{ $push : { a : 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;   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;{ $pushAll : { a : [ 1 , 2 ] } } &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;newer&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;   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;{ $push : { a : { $each : [ 1 , 2] } } }&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;given that, perhaps&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;{ $push : { a : { 1 , $trim : 5 } } }&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;{ $push : { a : { $each : [ 1 , 2 ] , $trim : 5 } } }&lt;/span&gt;&lt;/pre&gt;
			&lt;/td&gt;
		&lt;/tr&gt;
			&lt;/tbody&gt;
&lt;/table&gt;
&lt;/div&gt;
&lt;p/&gt;</comment>
                            <comment id="103399" author="vboivie" created="Sun, 25 Mar 2012 23:36:26 +0000"  >&lt;p&gt;@Colin: How will you handle a $pushAllTrim-syntax?. The argument for $pushAll is an array which would conflict with this proposal.&lt;/p&gt;</comment>
                            <comment id="103398" author="colinmollenhour" created="Sun, 25 Mar 2012 22:41:25 +0000"  >&lt;p&gt;In light of the discussion on &lt;a href=&quot;https://github.com/mongodb/mongo/pull/181&quot; class=&quot;external-link&quot; target=&quot;_blank&quot; rel=&quot;nofollow noopener&quot;&gt;github&lt;/a&gt; here is a new syntax proposal:&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;db.user.update({name: &apos;ibwhite&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;  $pushTrim: {last_10_urls: [&apos;/category/apple&apos;, -10]},&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;  $addToSetTrim: {last_5_unique_urls: [&apos;/category/apple&apos;, -5]}&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;});&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;These operators take a 2-tuple as an argument for each key where the first value is the value to $push or $addToSet and the second is the length to trim to after the push. This holds with the &quot;one operation per key&quot; requirement while allowing different keys to have different trim lengths in one update (which the syntax in the description of this ticket does not allow).&lt;/p&gt;</comment>
                            <comment id="92240" author="vboivie" created="Sat, 25 Feb 2012 12:02:55 +0000"  >&lt;p&gt;@Colin: I like that idea even though it breaks the rule that the same field can not be referenced by more than one modifier (&lt;a href=&quot;https://jira.mongodb.org/browse/SERVER-1050&quot; title=&quot;not allowed to $push and $pop to same field in same update&quot; class=&quot;issue-link&quot; data-issue-key=&quot;SERVER-1050&quot;&gt;&lt;del&gt;SERVER-1050&lt;/del&gt;&lt;/a&gt;, which is rather tricky to solve in a generic way without rewriting too much code in update.cpp).&lt;/p&gt;

&lt;p&gt;I took a stab at it (called it $trim however) and implemented support for it at &lt;a href=&quot;https://github.com/mongodb/mongo/pull/181&quot; class=&quot;external-link&quot; target=&quot;_blank&quot; rel=&quot;nofollow noopener&quot;&gt;https://github.com/mongodb/mongo/pull/181&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;Please review and/or comment it.&lt;/p&gt;</comment>
                            <comment id="88385" author="colinmollenhour" created="Tue, 14 Feb 2012 21:02:33 +0000"  >&lt;p&gt;Alternative syntax proposal which would not change any existing modifiers and would work with multiple capped arrays while allowing different sizes for each in one query and also allow for easy &quot;ad-hoc&quot; capping:&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;db.user.update({name: &lt;/span&gt;&lt;span style=&quot;color: blue; font-family: &apos;Consolas&apos;, &apos;Bitstream Vera Sans Mono&apos;, &apos;Courier New&apos;, Courier, monospace !important;&quot;&gt;&apos;ibwhite&apos;&lt;/span&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;  $push: {last_10_urls: &lt;/span&gt;&lt;span style=&quot;color: blue; font-family: &apos;Consolas&apos;, &apos;Bitstream Vera Sans Mono&apos;, &apos;Courier New&apos;, Courier, monospace !important;&quot;&gt;&apos;/category/apple&apos;&lt;/span&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;  $addToSet: {last_5_unique_urls: &lt;/span&gt;&lt;span style=&quot;color: blue; font-family: &apos;Consolas&apos;, &apos;Bitstream Vera Sans Mono&apos;, &apos;Courier New&apos;, Courier, monospace !important;&quot;&gt;&apos;/category/apple&apos;&lt;/span&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;  $prune: {&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;    last_10_urls: -10,  &lt;/span&gt;&lt;span style=&quot;color: #008200; font-family: &apos;Consolas&apos;, &apos;Bitstream Vera Sans Mono&apos;, &apos;Courier New&apos;, Courier, monospace !important;&quot;&gt;// negative numbers delete oldest elements&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;    last_5_unique_urls: -5,&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;   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;});&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;MongoDb would have to make the assumption that $prune always is applied after all other operators.&lt;/p&gt;</comment>
                            <comment id="51690" author="auzziebooth" created="Wed, 31 Aug 2011 09:56:14 +0000"  >&lt;p&gt;Please move this to 1.8.4 if possible. This feature is no too big but save a lot of queries and client-side processing in many scenarios&lt;/p&gt;</comment>
                            <comment id="46057" author="mlazarov" created="Wed, 3 Aug 2011 09:47:41 +0000"  >&lt;p&gt;It&apos;s really useful and I hope it would be done in version 1.8.4&lt;/p&gt;</comment>
                            <comment id="26352" author="lomantpa" created="Sun, 20 Mar 2011 22:03:44 +0000"  >&lt;p&gt;+1 for this as this features brings a lot of new possibilities.&lt;/p&gt;

&lt;p&gt;We have a similar situation as reported by Keith and it is very expensive to deal with a virtual capped array inside our application.&lt;/p&gt;</comment>
                            <comment id="20430" author="keithbranton" created="Thu, 18 Nov 2010 03:39:08 +0000"  >&lt;p&gt;Dave, it is unclear if you are suggesting a mongo stored function (these tend to be a bit slow iir) or application server code.&lt;/p&gt;

&lt;p&gt;I&apos;m trying to track the last 100 (unique) members that view each profile in a social application. Collection is document per profile, and there is an array in that document called recentViewers. &lt;/p&gt;

&lt;p&gt;Remember if you are going to do this in the application servers, i.e. load the profile document, change the array and store it again, with the few very popular pages the profiles have probably been updated several times since you loaded the document.&lt;/p&gt;

&lt;p&gt;Not so easy, unless I&apos;m missing something obvious (which is possible &lt;img class=&quot;emoticon&quot; src=&quot;https://jira.mongodb.org/images/icons/emoticons/smile.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;

&lt;p&gt;My biggest concern about this proposal is that the size is repeated at each point of use - not very dry. If updates are performed from more than one place in the code (maybe even implemented in different languages) then there is increased risk that the limits will not always be kept in sync, leading to unexpected results. I would much rather see a limit be stored in metadata in the database.&lt;/p&gt;

&lt;p&gt;Perhaps a better way of implementing this functionality would be a new bson type; capped_array ::= int32 document, supporting all the usual array operations while imposing the limit&lt;/p&gt;</comment>
                            <comment id="20429" author="bingomanatee" created="Thu, 18 Nov 2010 00:26:23 +0000"  >&lt;p&gt;This may be a useful action but it doesn&apos;t follow the behavior of push as it is currently understood and implemented in most languages. &lt;/p&gt;

&lt;p&gt;Because it implies a limit parameter, if implemented, it should be distinct and named_thus (push_stack(target, &lt;span class=&quot;error&quot;&gt;&amp;#91;elements&amp;#93;&lt;/span&gt;, limit)? stack_add(target, &lt;span class=&quot;error&quot;&gt;&amp;#91;elements&amp;#93;&lt;/span&gt;, limit)?&lt;/p&gt;

&lt;p&gt;Again - this feels like a creeping attempt to force business logic into the model. &lt;/p&gt;

&lt;p&gt;This can just as easily be accomplished with a few lines of javaScript or server side code. &lt;/p&gt;</comment>
                            <comment id="20126" author="littlexiang" created="Mon, 8 Nov 2010 18:02:56 +0000"  >&lt;p&gt;It&apos;s really useful. Hope it would be done by version 1.7 stable&lt;/p&gt;</comment>
                            <comment id="19046" author="kevin" created="Sun, 10 Oct 2010 00:57:29 +0000"  >&lt;p&gt;any update or eta on this?&lt;br/&gt;
would love to have this!&lt;br/&gt;
thanks!&lt;/p&gt;</comment>
                            <comment id="14603" author="suhail" created="Sun, 6 Jun 2010 16:34:19 +0000"  >&lt;p&gt;And $addToSet please =)&lt;/p&gt;</comment>
                            <comment id="14602" author="chx" created="Sun, 6 Jun 2010 16:33:51 +0000"  >&lt;p&gt;Like a virtual capped collection, hm?&lt;/p&gt;</comment>
                    </comments>
                <issuelinks>
                            <issuelinktype id="10011">
                    <name>Depends</name>
                                            <outwardlinks description="depends on">
                                        <issuelink>
            <issuekey id="43910">SERVER-6399</issuekey>
        </issuelink>
                            </outwardlinks>
                                                                <inwardlinks description="is depended on by">
                                        <issuelink>
            <issuekey id="60669">DOCS-932</issuekey>
        </issuelink>
                            </inwardlinks>
                                    </issuelinktype>
                            <issuelinktype id="10012">
                    <name>Related</name>
                                            <outwardlinks description="related to">
                                        <issuelink>
            <issuekey id="65574">CSHARP-684</issuekey>
        </issuelink>
            <issuelink>
            <issuekey id="60824">SERVER-8069</issuekey>
        </issuelink>
            <issuelink>
            <issuekey id="66531">SERVER-8746</issuekey>
        </issuelink>
                            </outwardlinks>
                                                                <inwardlinks description="is related to">
                                        <issuelink>
            <issuekey id="60133">SERVER-8008</issuekey>
        </issuelink>
            <issuelink>
            <issuekey id="58995">DOCS-874</issuekey>
        </issuelink>
            <issuelink>
            <issuekey id="11839">SERVER-1050</issuekey>
        </issuelink>
            <issuelink>
            <issuekey id="14225">SERVER-2363</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>36.0</customfieldvalue>
                        </customfieldvalues>
                    </customfield>
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                <customfield id="customfield_10055" key="com.atlassian.jira.ext.charting:firstresponsedate">
                        <customfieldname>Date of 1st Reply</customfieldname>
                        <customfieldvalues>
                            <customfieldvalue>Sun, 6 Jun 2010 16:33:51 +0000</customfieldvalue>

                        </customfieldvalues>
                    </customfield>
                                                                <customfield id="customfield_10052" key="com.atlassian.jira.toolkit:dayslastcommented">
                        <customfieldname>Days since reply</customfieldname>
                        <customfieldvalues>
                                        10 years, 30 weeks, 5 days ago
    
                        </customfieldvalues>
                    </customfield>
                                                                <customfield id="customfield_18254" key="com.onresolve.jira.groovy.groovyrunner:scripted-field">
                        <customfieldname>Dependencies</customfieldname>
                        <customfieldvalues>
                            <customfieldvalue><![CDATA[<s><a href='https://jira.mongodb.org/browse/SERVER-6399'>SERVER-6399</a></s>]]></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_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>
                            10 years, 30 weeks, 5 days ago
                        </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>alerner</customfieldvalue>
            <customfieldvalue>auto</customfieldvalue>
            <customfieldvalue>auzziebooth</customfieldvalue>
            <customfieldvalue>awsiv</customfieldvalue>
            <customfieldvalue>colinmollenhour</customfieldvalue>
            <customfieldvalue>bingomanatee</customfieldvalue>
            <customfieldvalue>eliot</customfieldvalue>
            <customfieldvalue>flavien</customfieldvalue>
            <customfieldvalue>geoffeg</customfieldvalue>
            <customfieldvalue>ibwhite</customfieldvalue>
            <customfieldvalue>javierferrero</customfieldvalue>
            <customfieldvalue>hoffrocket</customfieldvalue>
            <customfieldvalue>jgonera</customfieldvalue>
            <customfieldvalue>chx</customfieldvalue>
            <customfieldvalue>keithbranton</customfieldvalue>
            <customfieldvalue>kevin@mongodb.com</customfieldvalue>
            <customfieldvalue>mlazarov</customfieldvalue>
            <customfieldvalue>lomantpa</customfieldvalue>
            <customfieldvalue>pierrearmageddon</customfieldvalue>
            <customfieldvalue>richardoliver@qivox.co.uk</customfieldvalue>
            <customfieldvalue>bgsosh@gmail.com</customfieldvalue>
            <customfieldvalue>stephanos</customfieldvalue>
            <customfieldvalue>suhail</customfieldvalue>
            <customfieldvalue>nyxtom</customfieldvalue>
            <customfieldvalue>vboivie</customfieldvalue>
            <customfieldvalue>littlexiang</customfieldvalue>
    
                        </customfieldvalues>
                    </customfield>
                                                                                                                                                                                                                                        <customfield id="customfield_14254" key="com.pyxis.greenhopper.jira:gh-lexo-rank">
                        <customfieldname>Product Rank</customfieldname>
                        <customfieldvalues>
                            <customfieldvalue>1|hrpecf:</customfieldvalue>

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

                        </customfieldvalues>
                    </customfield>
                                                                <customfield id="customfield_10558" key="com.pyxis.greenhopper.jira:gh-global-rank">
                        <customfieldname>Rank (Obsolete)</customfieldname>
                        <customfieldvalues>
                            <customfieldvalue>11447</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_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|hrixsf:</customfieldvalue>

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