<!-- 
RSS generated by JIRA (9.7.1#970001-sha1:2222b88b221c4928ef0de3161136cc90c8356a66) at Thu Feb 08 03:59:39 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-22183] Aggregation $match doesn`t increase counter in the  $indexStats</title>
                <link>https://jira.mongodb.org/browse/SERVER-22183</link>
                <project id="10000" key="SERVER">Core Server</project>
                    <description>&lt;p&gt;Aggregation which uses index (by explain()), doesn`t increase the counter in the statistics visible by $indexStats&lt;/p&gt;</description>
                <environment></environment>
        <key id="247109">SERVER-22183</key>
            <summary>Aggregation $match doesn`t increase counter in the  $indexStats</summary>
                <type id="4" iconUrl="https://jira.mongodb.org/secure/viewavatar?size=xsmall&amp;avatarId=14710&amp;avatarType=issuetype">Improvement</type>
                                            <priority id="2" iconUrl="https://jira.mongodb.org/images/icons/priorities/critical.svg">Critical - P2</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="3">Duplicate</resolution>
                                        <assignee username="-1">Unassigned</assignee>
                                    <reporter username="marian.badinka@dhl.com">marian badinka</reporter>
                        <labels>
                    </labels>
                <created>Thu, 14 Jan 2016 12:57:40 +0000</created>
                <updated>Thu, 14 Jan 2016 13:07:05 +0000</updated>
                            <resolved>Thu, 14 Jan 2016 13:06:03 +0000</resolved>
                                    <version>3.2.0</version>
                    <version>3.2.1</version>
                                                    <component>Aggregation Framework</component>
                                        <votes>0</votes>
                                    <watches>5</watches>
                                                                                                                <comments>
                            <comment id="1134753" author="scotthernandez" created="Thu, 14 Jan 2016 13:06:03 +0000"  >&lt;p&gt;Yes, this has been scheduled for 3.2.2: &lt;a href=&quot;https://jira.mongodb.org/browse/SERVER-22048&quot; title=&quot;Index access stats should be recorded for $match &amp;amp; mapReduce&quot; class=&quot;issue-link&quot; data-issue-key=&quot;SERVER-22048&quot;&gt;&lt;del&gt;SERVER-22048&lt;/del&gt;&lt;/a&gt;&lt;/p&gt;</comment>
                            <comment id="1134752" author="marian.badinka@dhl.com" created="Thu, 14 Jan 2016 13:05:45 +0000"  >&lt;p&gt;steps to reproduce:&lt;br/&gt;
&amp;gt; db.test.insert(a:1,b:2,c:3)&lt;br/&gt;
&amp;gt; db.test.insert(a:1,b:2,c:3)&lt;br/&gt;
&amp;gt; db.test.insert(a:1,b:2,c:3)&lt;/p&gt;

&lt;p&gt;&amp;gt; db.test.createIndex(a:1)&lt;/p&gt;

&lt;p&gt;//check stats//&lt;br/&gt;
&amp;gt; db.test.aggregate(&lt;span class=&quot;error&quot;&gt;&amp;#91;{$indexStats: {}},{$project:{&amp;quot;_id&amp;quot; : &amp;quot;$name&amp;quot;,&amp;quot;count&amp;quot; : &amp;quot;$accesses.ops&amp;quot;}}&amp;#93;&lt;/span&gt;)&lt;br/&gt;
     &quot;_id&quot; : &quot;a_1&quot;, &quot;count&quot; : (0) }&lt;br/&gt;
     &quot;&lt;em&gt;id&quot; : &quot;_id&lt;/em&gt;&quot;, &quot;count&quot; :(0) }&lt;/p&gt;

&lt;p&gt; //generate aggregation suppose to use index a_1 and increase the counter on $indexStats//&lt;br/&gt;
&amp;gt; db.test.aggregate(&lt;span class=&quot;error&quot;&gt;&amp;#91;{$match:{a:1}}&amp;#93;&lt;/span&gt;);&lt;/p&gt;
{ &quot;_id&quot; : ObjectId(&quot;569794a34bf2cadd7dd8ca3d&quot;), &quot;a&quot; : 1, &quot;b&quot; : 2, &quot;c&quot; : 3 }
{ &quot;_id&quot; : ObjectId(&quot;569794a44bf2cadd7dd8ca3e&quot;), &quot;a&quot; : 1, &quot;b&quot; : 2, &quot;c&quot; : 3 }
{ &quot;_id&quot; : ObjectId(&quot;569794a44bf2cadd7dd8ca3f&quot;), &quot;a&quot; : 1, &quot;b&quot; : 2, &quot;c&quot; : 3 }

&lt;p&gt;//check stats again - index &quot;a_1&quot; should have count:1 and not count:0//&lt;br/&gt;
&amp;gt; db.test.aggregate(&lt;span class=&quot;error&quot;&gt;&amp;#91;{$indexStats: {}},{$project:{&amp;quot;_id&amp;quot; : &amp;quot;$name&amp;quot;,&amp;quot;count&amp;quot; : &amp;quot;$accesses.ops&amp;quot;}}&amp;#93;&lt;/span&gt;)&lt;br/&gt;
     &quot;_id&quot; : &quot;a_1&quot;, &quot;count&quot; : (0) }&lt;br/&gt;
     &quot;&lt;em&gt;id&quot; : &quot;_id&lt;/em&gt;&quot;, &quot;count&quot; :(0) }&lt;/p&gt;

&lt;p&gt;ciao \ marian&lt;/p&gt;
</comment>
                    </comments>
                <issuelinks>
                            <issuelinktype id="10010">
                    <name>Duplicate</name>
                                            <outwardlinks description="duplicates">
                                        <issuelink>
            <issuekey id="245467">SERVER-22048</issuekey>
        </issuelink>
                            </outwardlinks>
                                                        </issuelinktype>
                    </issuelinks>
                <attachments>
                    </attachments>
                <subtasks>
                    </subtasks>
                <customfields>
                                                <customfield id="customfield_10050" key="com.atlassian.jira.toolkit:comments">
                        <customfieldname># Replies</customfieldname>
                        <customfieldvalues>
                            <customfieldvalue>2.0</customfieldvalue>
                        </customfieldvalues>
                    </customfield>
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                <customfield id="customfield_10055" key="com.atlassian.jira.ext.charting:firstresponsedate">
                        <customfieldname>Date of 1st Reply</customfieldname>
                        <customfieldvalues>
                            <customfieldvalue>Thu, 14 Jan 2016 13:06:03 +0000</customfieldvalue>

                        </customfieldvalues>
                    </customfield>
                                                                <customfield id="customfield_10052" key="com.atlassian.jira.toolkit:dayslastcommented">
                        <customfieldname>Days since reply</customfieldname>
                        <customfieldvalues>
                                        8 years, 4 weeks, 6 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>scotthernandez</customfieldvalue>

                        </customfieldvalues>
                    </customfield>
                                                                <customfield id="customfield_11151" key="com.atlassian.jira.toolkit:LastCommentDate">
                        <customfieldname>Last public comment date</customfieldname>
                        <customfieldvalues>
                            8 years, 4 weeks, 6 days ago
                        </customfieldvalues>
                    </customfield>
                                                                                                                                                                                                                                                                    <customfield id="customfield_10051" key="com.atlassian.jira.toolkit:participants">
                        <customfieldname>Participants</customfieldname>
                        <customfieldvalues>
                                        <customfieldvalue>marian.badinka@dhl.com</customfieldvalue>
            <customfieldvalue>scotthernandez</customfieldvalue>
    
                        </customfieldvalues>
                    </customfield>
                                                                                                                                                                                                                                        <customfield id="customfield_14254" key="com.pyxis.greenhopper.jira:gh-lexo-rank">
                        <customfieldname>Product Rank</customfieldname>
                        <customfieldvalues>
                            <customfieldvalue>1|hrkklz:</customfieldvalue>

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

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

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