<!-- 
RSS generated by JIRA (9.7.1#970001-sha1:2222b88b221c4928ef0de3161136cc90c8356a66) at Thu Feb 08 02:55:03 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-754] way to return region of an embedded array</title>
                <link>https://jira.mongodb.org/browse/SERVER-754</link>
                <project id="10000" key="SERVER">Core Server</project>
                    <description>&lt;p&gt;db.foo.find( {} , { comments : &lt;/p&gt;
{ $slice : [ 20,40] }
&lt;p&gt; } )&lt;/p&gt;</description>
                <environment></environment>
        <key id="11518">SERVER-754</key>
            <summary>way to return region of an embedded array</summary>
                <type id="4" iconUrl="https://jira.mongodb.org/secure/viewavatar?size=xsmall&amp;avatarId=14710&amp;avatarType=issuetype">Improvement</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="mathias@mongodb.com">Mathias Stearn</assignee>
                                    <reporter username="eliot">Eliot Horowitz</reporter>
                        <labels>
                    </labels>
                <created>Mon, 15 Mar 2010 17:29:19 +0000</created>
                <updated>Tue, 12 Jul 2016 00:27:29 +0000</updated>
                            <resolved>Fri, 16 Apr 2010 20:05:17 +0000</resolved>
                                                    <fixVersion>1.5.1</fixVersion>
                                    <component>Querying</component>
                                        <votes>0</votes>
                                    <watches>0</watches>
                                                                                                                <comments>
                            <comment id="13707" author="auto" created="Fri, 16 Apr 2010 16:56:22 +0000"  >&lt;p&gt;Author:&lt;/p&gt;
{&apos;login&apos;: &apos;RedBeard0531&apos;, &apos;name&apos;: &apos;Mathias Stearn&apos;, &apos;email&apos;: &apos;mathias@10gen.com&apos;}
&lt;p&gt;Message: $slice operator for projections (second arg to find) &lt;a href=&quot;https://jira.mongodb.org/browse/SERVER-754&quot; title=&quot;way to return region of an embedded array&quot; class=&quot;issue-link&quot; data-issue-key=&quot;SERVER-754&quot;&gt;&lt;del&gt;SERVER-754&lt;/del&gt;&lt;/a&gt;&lt;br/&gt;
&lt;a href=&quot;http://github.com/mongodb/mongo/commit/0cd709783028ee29129d18d82e23abe6221a904a&quot; class=&quot;external-link&quot; target=&quot;_blank&quot; rel=&quot;nofollow noopener&quot;&gt;http://github.com/mongodb/mongo/commit/0cd709783028ee29129d18d82e23abe6221a904a&lt;/a&gt;&lt;/p&gt;</comment>
                            <comment id="13602" author="eliot" created="Tue, 13 Apr 2010 13:01:31 +0000"  >&lt;p&gt;i&apos;d say apis are split 50/50 on min,max vs start,len for list substring&lt;/p&gt;

&lt;p&gt;ruby is start,len and our most common language, so maybe that should be the tie breaker&lt;/p&gt;</comment>
                            <comment id="13601" author="redbeard0531" created="Tue, 13 Apr 2010 12:58:37 +0000"  >&lt;p&gt;I think simple numbers should work like this this: &lt;/p&gt;

&lt;p&gt;$slice: 5 -&amp;gt; first 5&lt;br/&gt;
$slice: -5 -&amp;gt; last 5&lt;/p&gt;


&lt;p&gt;If there is an array is it better to do range or skip-limit?&lt;br/&gt;
$slice: &lt;span class=&quot;error&quot;&gt;&amp;#91;20, 30&amp;#93;&lt;/span&gt; -&amp;gt; objects from 20 to 30&lt;br/&gt;
vs&lt;br/&gt;
$slice: &lt;span class=&quot;error&quot;&gt;&amp;#91;20, 10&amp;#93;&lt;/span&gt; -&amp;gt; skip 20, limit 10&lt;/p&gt;</comment>
                            <comment id="13600" author="mike" created="Tue, 13 Apr 2010 12:21:29 +0000"  >&lt;p&gt;could try to mimic the python slice syntax:&lt;br/&gt;
$slice: &lt;span class=&quot;error&quot;&gt;&amp;#91;3&amp;#93;&lt;/span&gt; // 3..end&lt;br/&gt;
$slice: &lt;span class=&quot;error&quot;&gt;&amp;#91;-3&amp;#93;&lt;/span&gt; // last 3&lt;br/&gt;
$slice: &lt;span class=&quot;error&quot;&gt;&amp;#91;3, -3&amp;#93;&lt;/span&gt; // 3..-3&lt;br/&gt;
$slice: &lt;span class=&quot;error&quot;&gt;&amp;#91;null, 3&amp;#93;&lt;/span&gt; // first 3&lt;/p&gt;

&lt;p&gt;taking it all the way, could even do:&lt;br/&gt;
$slice: &lt;span class=&quot;error&quot;&gt;&amp;#91;null, null, 2&amp;#93;&lt;/span&gt; // all evens&lt;br/&gt;
$slice: &lt;span class=&quot;error&quot;&gt;&amp;#91;null, 10, 3&amp;#93;&lt;/span&gt; // every 3rd out of the first 10&lt;/p&gt;</comment>
                            <comment id="13599" author="ashb" created="Tue, 13 Apr 2010 12:14:38 +0000"  >&lt;p&gt;&amp;gt; slice : 3 // first 3? &lt;/p&gt;

&lt;p&gt;My PoV as a user is I&apos;d expect this to skip the first 3, i.e return 3..end&lt;/p&gt;

&lt;p&gt;-3 returning last 3 makes sense to me&lt;/p&gt;

&lt;p&gt;My 2p&lt;/p&gt;</comment>
                            <comment id="13598" author="dwight_10gen" created="Tue, 13 Apr 2010 11:58:03 +0000"  >&lt;p&gt;$slice : 3 // first 3?&lt;br/&gt;
$slice : -3 // last 3?&lt;/p&gt;</comment>
                            <comment id="13597" author="dwight_10gen" created="Tue, 13 Apr 2010 11:57:01 +0000"  >&lt;p&gt;    { arr : &lt;/p&gt;
{ $slice : [20,40] }
&lt;p&gt; } &lt;/p&gt;

&lt;p&gt;?&lt;/p&gt;</comment>
                    </comments>
                    <attachments>
                    </attachments>
                <subtasks>
                    </subtasks>
                <customfields>
                                                <customfield id="customfield_10050" key="com.atlassian.jira.toolkit:comments">
                        <customfieldname># Replies</customfieldname>
                        <customfieldvalues>
                            <customfieldvalue>7.0</customfieldvalue>
                        </customfieldvalues>
                    </customfield>
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                <customfield id="customfield_10055" key="com.atlassian.jira.ext.charting:firstresponsedate">
                        <customfieldname>Date of 1st Reply</customfieldname>
                        <customfieldvalues>
                            <customfieldvalue>Tue, 13 Apr 2010 11:57:01 +0000</customfieldvalue>

                        </customfieldvalues>
                    </customfield>
                                                                <customfield id="customfield_10052" key="com.atlassian.jira.toolkit:dayslastcommented">
                        <customfieldname>Days since reply</customfieldname>
                        <customfieldvalues>
                                        13 years, 44 weeks, 5 days 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_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>ramon.fernandez@mongodb.com</customfieldvalue>

                        </customfieldvalues>
                    </customfield>
                                                                <customfield id="customfield_11151" key="com.atlassian.jira.toolkit:LastCommentDate">
                        <customfieldname>Last public comment date</customfieldname>
                        <customfieldvalues>
                            13 years, 44 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>ashb</customfieldvalue>
            <customfieldvalue>auto</customfieldvalue>
            <customfieldvalue>dwight@mongodb.com</customfieldvalue>
            <customfieldvalue>eliot</customfieldvalue>
            <customfieldvalue>mathias@mongodb.com</customfieldvalue>
            <customfieldvalue>mike</customfieldvalue>
    
                        </customfieldvalues>
                    </customfield>
                                                                                                                                                                                                                                        <customfield id="customfield_14254" key="com.pyxis.greenhopper.jira:gh-lexo-rank">
                        <customfieldname>Product Rank</customfieldname>
                        <customfieldvalues>
                            <customfieldvalue>1|hrpqkn:</customfieldvalue>

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

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

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