<!-- 
RSS generated by JIRA (9.7.1#970001-sha1:2222b88b221c4928ef0de3161136cc90c8356a66) at Thu Feb 08 03:45:38 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-17810] &quot;matchTested&quot; exec stage statistic is misleading</title>
                <link>https://jira.mongodb.org/browse/SERVER-17810</link>
                <project id="10000" key="SERVER">Core Server</project>
                    <description>&lt;p&gt;Four query execution stages keep a counter called &lt;tt&gt;matchTested&lt;/tt&gt;: AND_SORTED, FETCH, IXSCAN, and OR.&lt;/p&gt;

&lt;p&gt;It would seem reasonable to assume that &lt;tt&gt;matchTested&lt;/tt&gt; means the number of results that were tested against a filter (the number that passed the filter plus the number that were rejected by the filter). In fact, all of the stages count &lt;tt&gt;matchTested&lt;/tt&gt; as just the number of results that pass the filter.&lt;/p&gt;

&lt;p&gt;Not only is this confusing naming, but it is a less useful statistic: the number passing the filter can already be inferred via the &lt;tt&gt;advanced&lt;/tt&gt; counter. We should consider changing the meaning of the counter to align with its naming.&lt;/p&gt;

&lt;p&gt;Edit: For IXSCAN, FETCH, and OR, the value of &lt;tt&gt;matchTested&lt;/tt&gt; can be inferred by the value of the &lt;tt&gt;advanced&lt;/tt&gt; counter.  As such, this information is redundant: we should remove it for these three stages.  For AND_SORTED, we should change its semantics per above.&lt;/p&gt;</description>
                <environment></environment>
        <key id="192867">SERVER-17810</key>
            <summary>&quot;matchTested&quot; exec stage statistic is misleading</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="qingyang.chen">Qingyang Chen</assignee>
                                    <reporter username="david.storch@mongodb.com">David Storch</reporter>
                        <labels>
                    </labels>
                <created>Mon, 30 Mar 2015 22:56:32 +0000</created>
                <updated>Fri, 5 Feb 2016 14:29:35 +0000</updated>
                            <resolved>Tue, 9 Jun 2015 02:04:00 +0000</resolved>
                                                    <fixVersion>3.1.5</fixVersion>
                                    <component>Querying</component>
                                        <votes>0</votes>
                                    <watches>4</watches>
                                                                                                                <comments>
                            <comment id="934743" author="xgen-internal-githook" created="Tue, 9 Jun 2015 02:02:07 +0000"  >&lt;p&gt;Author:&lt;/p&gt;
{u&apos;name&apos;: u&apos;Qingyang Chen&apos;, u&apos;email&apos;: u&apos;qingyang.chen@10gen.com&apos;}
&lt;p&gt;Message: &lt;a href=&quot;https://jira.mongodb.org/browse/SERVER-17810&quot; title=&quot;&amp;quot;matchTested&amp;quot; exec stage statistic is misleading&quot; class=&quot;issue-link&quot; data-issue-key=&quot;SERVER-17810&quot;&gt;&lt;del&gt;SERVER-17810&lt;/del&gt;&lt;/a&gt; remove matchTested specificStat&lt;/p&gt;

&lt;p&gt;Closes #976&lt;/p&gt;

&lt;p&gt;Signed-off-by: David Storch &amp;lt;david.storch@10gen.com&amp;gt;&lt;br/&gt;
Branch: master&lt;br/&gt;
&lt;a href=&quot;https://github.com/mongodb/mongo/commit/ee2e87ef994fb486b05cbec24eb16d95b3226136&quot; class=&quot;external-link&quot; target=&quot;_blank&quot; rel=&quot;nofollow noopener&quot;&gt;https://github.com/mongodb/mongo/commit/ee2e87ef994fb486b05cbec24eb16d95b3226136&lt;/a&gt;&lt;/p&gt;</comment>
                            <comment id="932170" author="rassi@10gen.com" created="Thu, 4 Jun 2015 22:06:24 +0000"  >&lt;p&gt;Sounds good.  Edited the description to reflect discussion.&lt;/p&gt;</comment>
                            <comment id="932163" author="david.storch" created="Thu, 4 Jun 2015 21:56:43 +0000"  >&lt;p&gt;I meant for all stages that keep a &lt;tt&gt;matchTested&lt;/tt&gt; statistic, but on second thought we might want to keep it for AND_SORTED. It&apos;s usually pretty obvious how many documents are getting filtered out at each step using just the &lt;tt&gt;advanced&lt;/tt&gt; numbers for each stage in the tree. It&apos;s helpful for AND_SORTED because it can help you distinguish between docs dropped because they weren&apos;t in the intersection versus docs in the intersection set that got dropped because they didn&apos;t pass the filter.&lt;/p&gt;

&lt;p&gt;The stages that keep such a statistic are:&lt;/p&gt;
&lt;ul&gt;
	&lt;li&gt;IXSCAN&lt;/li&gt;
	&lt;li&gt;FETCH&lt;/li&gt;
	&lt;li&gt;AND_SORTED&lt;/li&gt;
	&lt;li&gt;OR&lt;/li&gt;
&lt;/ul&gt;
</comment>
                            <comment id="932134" author="rassi@10gen.com" created="Thu, 4 Jun 2015 21:10:22 +0000"  >&lt;p&gt;&lt;a href=&quot;https://jira.mongodb.org/secure/ViewProfile.jspa?name=david.storch&quot; class=&quot;user-hover&quot; rel=&quot;david.storch&quot;&gt;david.storch&lt;/a&gt;: do you mean remove the matchTested statistic for all stages, or just for the FETCH stage?&lt;/p&gt;</comment>
                            <comment id="932133" author="qingyang.chen" created="Thu, 4 Jun 2015 21:09:15 +0000"  >&lt;p&gt;I&apos;ve made some changes that should fix this problem, and one of them is in fetch.cpp. My fix is essentially just taking the ++_specificStats.matchTested out of the Filter::passes block.&lt;/p&gt;

&lt;p&gt;In fetch.cpp (L210): It seems that matchTested would equal docsExamined if a filter existed and thus doesn&apos;t seem to be any added information.&lt;/p&gt;</comment>
                            <comment id="932129" author="david.storch" created="Thu, 4 Jun 2015 21:08:02 +0000"  >&lt;p&gt;I would be happy to resolve this by removing the matchTested statistic.&lt;/p&gt;</comment>
                            <comment id="932116" author="rassi@10gen.com" created="Thu, 4 Jun 2015 20:57:08 +0000"  >&lt;p&gt;I&apos;m not convinced that we should even be keeping track of matchTested for FETCH.  If the FETCH has no filter, it seems like &lt;tt&gt;matchTested&lt;/tt&gt; would always be zero; if the FETCH has a filter, it seems like it would always be equal to the value of the child&apos;s &lt;tt&gt;advanced&lt;/tt&gt; counter.  &lt;a href=&quot;https://jira.mongodb.org/secure/ViewProfile.jspa?name=david.storch&quot; class=&quot;user-hover&quot; rel=&quot;david.storch&quot;&gt;david.storch&lt;/a&gt;, is this correct, and what do you think?&lt;/p&gt;</comment>
                            <comment id="932039" author="qingyang.chen" created="Thu, 4 Jun 2015 20:22:53 +0000"  >&lt;p&gt;FETCH doesn&apos;t seem to be currently outputting matchTested in executionStats. Should I add this line as well?&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>8.0</customfieldvalue>
                        </customfieldvalues>
                    </customfield>
                                                                <customfield id="customfield_18555" key="com.onresolve.jira.groovy.groovyrunner:scripted-field">
                        <customfieldname># of Sprints</customfieldname>
                        <customfieldvalues>
                            <customfieldvalue>1.0</customfieldvalue>

                        </customfieldvalues>
                    </customfield>
                                                                                                                                                                                                                                                                                                                                                                                                                                            <customfield id="customfield_10011" key="com.atlassian.jira.plugin.system.customfieldtypes:radiobuttons">
                        <customfieldname>Backwards Compatibility</customfieldname>
                        <customfieldvalues>
                                <customfieldvalue key="10011"><![CDATA[Minor Change]]></customfieldvalue>

                        </customfieldvalues>
                    </customfield>
                                                                                                                                                                                                                                                                                                                                                                                                                                            <customfield id="customfield_10055" key="com.atlassian.jira.ext.charting:firstresponsedate">
                        <customfieldname>Date of 1st Reply</customfieldname>
                        <customfieldvalues>
                            <customfieldvalue>Thu, 4 Jun 2015 20:22:53 +0000</customfieldvalue>

                        </customfieldvalues>
                    </customfield>
                                                                <customfield id="customfield_10052" key="com.atlassian.jira.toolkit:dayslastcommented">
                        <customfieldname>Days since reply</customfieldname>
                        <customfieldvalues>
                                        8 years, 36 weeks, 2 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>
                            8 years, 36 weeks, 2 days ago
                        </customfieldvalues>
                    </customfield>
                                                                                                                                                                                                                                                                    <customfield id="customfield_10051" key="com.atlassian.jira.toolkit:participants">
                        <customfieldname>Participants</customfieldname>
                        <customfieldvalues>
                                        <customfieldvalue>david.storch@mongodb.com</customfieldvalue>
            <customfieldvalue>xgen-internal-githook</customfieldvalue>
            <customfieldvalue>rassi</customfieldvalue>
            <customfieldvalue>qingyang.chen</customfieldvalue>
    
                        </customfieldvalues>
                    </customfield>
                                                                                                                                                                                                                                        <customfield id="customfield_14254" key="com.pyxis.greenhopper.jira:gh-lexo-rank">
                        <customfieldname>Product Rank</customfieldname>
                        <customfieldvalues>
                            <customfieldvalue>1|hrl9jb:</customfieldvalue>

                        </customfieldvalues>
                    </customfield>
                                                                                                                                                                                <customfield id="customfield_12550" key="com.pyxis.greenhopper.jira:gh-lexo-rank">
                        <customfieldname>Rank</customfieldname>
                        <customfieldvalues>
                            <customfieldvalue>2|hs7m8n:</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_10557" key="com.pyxis.greenhopper.jira:gh-sprint">
                        <customfieldname>Sprint</customfieldname>
                        <customfieldvalues>
                                <customfieldvalue id="536">Quint Iteration 5</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|hrjpnz:</customfieldvalue>

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