<!-- 
RSS generated by JIRA (9.7.1#970001-sha1:2222b88b221c4928ef0de3161136cc90c8356a66) at Thu Feb 08 06:05:36 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-66495] Aggregations should be counted as Query ops, not Command ops</title>
                <link>https://jira.mongodb.org/browse/SERVER-66495</link>
                <project id="10000" key="SERVER">Core Server</project>
                    <description>&lt;p&gt;Currently, only the official Find Command increments the &quot;Query&quot; OpCounter from db/stats/counters.h.  Any use of the aggregation pipeline command is only counted as a &quot;Command&quot;, lumped together with all other operations that aren&apos;t Query, writes, or getmores.&lt;br/&gt;
Since it would be more useful to have all commands that perform query-like operations be counted as queries, we should start counting aggregations as queries.&lt;br/&gt;
(Note that we already count get-mores issued on cursors sourced either by aggregation or by finds, without distinction.)&lt;/p&gt;</description>
                <environment></environment>
        <key id="2047605">SERVER-66495</key>
            <summary>Aggregations should be counted as Query ops, not Command ops</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="13201">Fixed</resolution>
                                        <assignee username="foteini.alvanaki@mongodb.com">Foteini Alvanaki</assignee>
                                    <reporter username="milkie@mongodb.com">Eric Milkie</reporter>
                        <labels>
                            <label>RDY</label>
                            <label>neweng</label>
                            <label>notify-analytics</label>
                    </labels>
                <created>Mon, 16 May 2022 17:15:47 +0000</created>
                <updated>Sun, 29 Oct 2023 21:38:13 +0000</updated>
                            <resolved>Tue, 25 Jul 2023 14:30:38 +0000</resolved>
                                                    <fixVersion>7.1.0-rc0</fixVersion>
                                                        <votes>0</votes>
                                    <watches>14</watches>
                                                                                                                <comments>
                            <comment id="5593301" author="JIRAUSER1274254" created="Wed, 26 Jul 2023 17:35:16 +0000"  >&lt;p&gt;&lt;a href=&quot;https://jira.mongodb.org/secure/ViewProfile.jspa?name=jonathan.balsano%40mongodb.com&quot; class=&quot;user-hover&quot; rel=&quot;jonathan.balsano@mongodb.com&quot;&gt;jonathan.balsano@mongodb.com&lt;/a&gt; that is correct. The only change is in the opCounter accounting.&#160;&lt;/p&gt;</comment>
                            <comment id="5589698" author="xgen-internal-githook" created="Tue, 25 Jul 2023 14:25:48 +0000"  >&lt;p&gt;Author: &lt;/p&gt;
{&apos;name&apos;: &apos;Foteini Alvanaki&apos;, &apos;email&apos;: &apos;foteini.alvanaki@mongodb.com&apos;, &apos;username&apos;: &apos;&apos;}
&lt;p&gt;Message: &lt;a href=&quot;https://jira.mongodb.org/browse/SERVER-66495&quot; title=&quot;Aggregations should be counted as Query ops, not Command ops&quot; class=&quot;issue-link&quot; data-issue-key=&quot;SERVER-66495&quot;&gt;&lt;del&gt;SERVER-66495&lt;/del&gt;&lt;/a&gt; Count aggregate command as query&lt;br/&gt;
Branch: master&lt;br/&gt;
&lt;a href=&quot;https://github.com/mongodb/mongo/commit/33e62d960811768d042ae806e6d018b6c4fd830e&quot; class=&quot;external-link&quot; target=&quot;_blank&quot; rel=&quot;nofollow noopener&quot;&gt;https://github.com/mongodb/mongo/commit/33e62d960811768d042ae806e6d018b6c4fd830e&lt;/a&gt;&lt;/p&gt;</comment>
                            <comment id="5544331" author="milkie" created="Wed, 5 Jul 2023 13:53:39 +0000"  >&lt;p&gt;Should we include &lt;tt&gt;count&lt;/tt&gt; and &lt;tt&gt;distinct&lt;/tt&gt; here along with &lt;tt&gt;aggregate&lt;/tt&gt;?  I think it makes sense to change all three commands to be counted as &quot;query&quot; instead of &quot;command&quot; (if they aren&apos;t already).&lt;/p&gt;</comment>
                            <comment id="4909978" author="JIRAUSER1259232" created="Tue, 18 Oct 2022 15:12:46 +0000"  >&lt;p&gt;New Hire not here till Dec. Will look then.&lt;/p&gt;</comment>
                            <comment id="4887017" author="kyle.suarez" created="Fri, 7 Oct 2022 19:30:43 +0000"  >&lt;p&gt;&lt;a href=&quot;https://jira.mongodb.org/secure/ViewProfile.jspa?name=rushan.chen%40mongodb.com&quot; class=&quot;user-hover&quot; rel=&quot;rushan.chen@mongodb.com&quot;&gt;rushan.chen@mongodb.com&lt;/a&gt;, you said this would be for a new hire, I am assigning this to you to for the meantime.&lt;/p&gt;</comment>
                            <comment id="4787945" author="JIRAUSER1259232" created="Tue, 30 Aug 2022 13:48:08 +0000"  >&lt;p&gt;Keeping this for our new hire.&lt;/p&gt;</comment>
                            <comment id="4690383" author="asya" created="Tue, 19 Jul 2022 21:05:47 +0000"  >&lt;p&gt;&amp;gt; Will an aggregation with a $out or $merge be counted as a write or a &quot;query&quot;?&lt;/p&gt;

&lt;p&gt;Currently it updates &lt;tt&gt;command&lt;/tt&gt; opcounter (proposal will change it to query) &lt;b&gt;and&lt;/b&gt; &lt;tt&gt;update&lt;/tt&gt; counter for &lt;tt&gt;$merge&lt;/tt&gt; (because that&apos;s how it&apos;s implemented), and &lt;tt&gt;insert&lt;/tt&gt; counter for &lt;tt&gt;$out&lt;/tt&gt;.  No changes proposed to write part of things.&lt;/p&gt;</comment>
                            <comment id="4689823" author="kyle.suarez" created="Tue, 19 Jul 2022 18:10:14 +0000"  >&lt;p&gt;Personally, I would think that it should be counted as both a write and a query. But I&apos;ll defer to our venerable product team: CC &lt;a href=&quot;https://jira.mongodb.org/secure/ViewProfile.jspa?name=christopher.harris%40mongodb.com&quot; class=&quot;user-hover&quot; rel=&quot;christopher.harris@mongodb.com&quot;&gt;christopher.harris@mongodb.com&lt;/a&gt;, &lt;a href=&quot;https://jira.mongodb.org/secure/ViewProfile.jspa?name=kateryna.kamenieva%40mongodb.com&quot; class=&quot;user-hover&quot; rel=&quot;kateryna.kamenieva@mongodb.com&quot;&gt;kateryna.kamenieva@mongodb.com&lt;/a&gt;, &lt;a href=&quot;https://jira.mongodb.org/secure/ViewProfile.jspa?name=joe.sack%40mongodb.com&quot; class=&quot;user-hover&quot; rel=&quot;joe.sack@mongodb.com&quot;&gt;joe.sack@mongodb.com&lt;/a&gt;&lt;/p&gt;</comment>
                            <comment id="4689485" author="kevin.arhelger" created="Tue, 19 Jul 2022 16:07:50 +0000"  >&lt;p&gt;I don&apos;t know if any current users for automated reported in technical services for these metrics. However, I did have on question.&lt;/p&gt;

&lt;p&gt;Will an aggregation with a $out or $merge be counted as a write or a &quot;query&quot;?&lt;/p&gt;</comment>
                            <comment id="4553504" author="milkie" created="Tue, 17 May 2022 15:56:40 +0000"  >&lt;p&gt;I just checked and I was incorrect about the histograms &amp;#8211; they record latencies into &quot;reads&quot;, &quot;writes&quot;, and &quot;commands&quot; buckets, and the Aggregation pipeline command is hardcoded to go into the &quot;reads&quot; bucket (even if you use it to perform writes, apparently!)&lt;/p&gt;</comment>
                            <comment id="4553213" author="kyle.suarez" created="Tue, 17 May 2022 14:58:17 +0000"  >&lt;p&gt;Marked downstream changes as &quot;needed&quot; to request comments from other teams that might be affected.&lt;/p&gt;</comment>
                            <comment id="4553103" author="milkie" created="Tue, 17 May 2022 14:41:41 +0000"  >&lt;p&gt;In the Top command stats, it indeed includes readLock and writeLock counters in addition to queries, getmore, insert, update, remove, and commands counters.&lt;br/&gt;
In the OpCounters structure, it includes all the same counters except for readLock and writeLock.  Interestingly, the Top stats are kept separately, per namespace, whereas the (duplicative) OpCounters are kept only &quot;globally&quot; and &quot;repl&quot;, and these are only used to power the respective Server Status sections.  The Top stats are also used to calculate the Latency Histograms per namespace, and the histograms do not incorporate the readLock / writeLock counters.  We are planning on exposing the histogram data soon so I want to make sure we won&apos;t have to document the charts as &quot;aggregation commands are in the commands chart and find commands are in the queries chart&quot;.&lt;br/&gt;
If we make any changes here, we should change both the Top stats and the OpCounters counters in kind.&lt;/p&gt;</comment>
                            <comment id="4552915" author="bruce.lucas@10gen.com" created="Tue, 17 May 2022 14:02:15 +0000"  >&lt;p&gt;This seems logical, but it would be a substantial change in meaning for that counter, affecting for example Atlas users and diagnostic engineers. I think we shouldn&apos;t do this lightly.&lt;/p&gt;

&lt;p&gt;Note by the way that there is an existing counter &quot;reads&quot; which I think counts both queries and aggregations equally.&lt;/p&gt;</comment>
                    </comments>
                <issuelinks>
                            <issuelinktype id="10011">
                    <name>Depends</name>
                                                                <inwardlinks description="is depended on by">
                                        <issuelink>
            <issuekey id="2048540">TOOLS-3121</issuekey>
        </issuelink>
            <issuelink>
            <issuekey id="2063651">TOOLS-3135</issuekey>
        </issuelink>
                            </inwardlinks>
                                    </issuelinktype>
                            <issuelinktype id="10320">
                    <name>Documented</name>
                                                                <inwardlinks description="is documented by">
                                        <issuelink>
            <issuekey id="2048535">DOCS-15346</issuekey>
        </issuelink>
                            </inwardlinks>
                                    </issuelinktype>
                            <issuelinktype id="10520">
                    <name>Problem/Incident</name>
                                            <outwardlinks description="causes">
                                                        </outwardlinks>
                                                        </issuelinktype>
                            <issuelinktype id="10012">
                    <name>Related</name>
                                            <outwardlinks description="related to">
                                        <issuelink>
            <issuekey id="2182370">SERVER-71281</issuekey>
        </issuelink>
            <issuelink>
            <issuekey id="2400028">SERVER-79297</issuekey>
        </issuelink>
                            </outwardlinks>
                                                                <inwardlinks description="is related to">
                                                        </inwardlinks>
                                    </issuelinktype>
                    </issuelinks>
                <attachments>
                    </attachments>
                <subtasks>
                    </subtasks>
                <customfields>
                                                <customfield id="customfield_10050" key="com.atlassian.jira.toolkit:comments">
                        <customfieldname># Replies</customfieldname>
                        <customfieldvalues>
                            <customfieldvalue>13.0</customfieldvalue>
                        </customfieldvalues>
                    </customfield>
                                                                <customfield id="customfield_18555" key="com.onresolve.jira.groovy.groovyrunner:scripted-field">
                        <customfieldname># of Sprints</customfieldname>
                        <customfieldvalues>
                            <customfieldvalue>5.0</customfieldvalue>

                        </customfieldvalues>
                    </customfield>
                                                                                                                                                                                                                                                                    <customfield id="customfield_12751" key="com.atlassian.jira.plugin.system.customfieldtypes:multiselect">
                        <customfieldname>Assigned Teams</customfieldname>
                        <customfieldvalues>
                                <customfieldvalue key="25125"><![CDATA[Query Execution]]></customfieldvalue>
    
                        </customfieldvalues>
                    </customfield>
                                                                                                                                                                                                            <customfield id="customfield_10011" key="com.atlassian.jira.plugin.system.customfieldtypes:radiobuttons">
                        <customfieldname>Backwards Compatibility</customfieldname>
                        <customfieldvalues>
                                <customfieldvalue key="10038"><![CDATA[Fully Compatible]]></customfieldvalue>

                        </customfieldvalues>
                    </customfield>
                                                                                                                                                                                                                                                                                                                                                                                                                                            <customfield id="customfield_10055" key="com.atlassian.jira.ext.charting:firstresponsedate">
                        <customfieldname>Date of 1st Reply</customfieldname>
                        <customfieldvalues>
                            <customfieldvalue>Tue, 17 May 2022 14:02:15 +0000</customfieldvalue>

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


                        </customfieldvalues>
                    </customfield>
                                                                <customfield id="customfield_15850" key="com.atlassian.jira.plugins.jira-development-integration-plugin:devsummary">
                        <customfieldname>Development</customfieldname>
                        <customfieldvalues>
                            
                        </customfieldvalues>
                    </customfield>
                                                                                            <customfield id="customfield_17052" key="com.atlassian.jira.plugin.system.customfieldtypes:textarea">
                        <customfieldname>Downstream Changes Summary</customfieldname>
                        <customfieldvalues>
                            <customfieldvalue>_If_ the query team were to make this change, it would change a longstanding meaning in the server status counters and would potentially affect how downstream teams do their tracking. If this would negatively affect a downstream team, please comment on &lt;a href=&quot;https://jira.mongodb.org/browse/SERVER-66495&quot; title=&quot;Aggregations should be counted as Query ops, not Command ops&quot; class=&quot;issue-link&quot; data-issue-key=&quot;SERVER-66495&quot;&gt;&lt;strike&gt;SERVER-66495&lt;/strike&gt;&lt;/a&gt; or reach out to the query team in #query-execution.</customfieldvalue>

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

                        </customfieldvalues>
                    </customfield>
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                    <customfield id="customfield_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>
                            28 weeks ago
                        </customfieldvalues>
                    </customfield>
                                                                                                                                                                                                                                                                    <customfield id="customfield_10051" key="com.atlassian.jira.toolkit:participants">
                        <customfieldname>Participants</customfieldname>
                        <customfieldvalues>
                                        <customfieldvalue>asya.kamsky@mongodb.com</customfieldvalue>
            <customfieldvalue>bruce.lucas@mongodb.com</customfieldvalue>
            <customfieldvalue>milkie@mongodb.com</customfieldvalue>
            <customfieldvalue>foteini.alvanaki@mongodb.com</customfieldvalue>
            <customfieldvalue>xgen-internal-githook</customfieldvalue>
            <customfieldvalue>kevin.arhelger@mongodb.com</customfieldvalue>
            <customfieldvalue>kyle.suarez@mongodb.com</customfieldvalue>
            <customfieldvalue>rushan.chen@mongodb.com</customfieldvalue>
    
                        </customfieldvalues>
                    </customfield>
                                                                                                                                                                                                                                        <customfield id="customfield_14254" key="com.pyxis.greenhopper.jira:gh-lexo-rank">
                        <customfieldname>Product Rank</customfieldname>
                        <customfieldvalues>
                            <customfieldvalue>1|i0v0xz:</customfieldvalue>

                        </customfieldvalues>
                    </customfield>
                                                                                                                                                                                <customfield id="customfield_12550" key="com.pyxis.greenhopper.jira:gh-lexo-rank">
                        <customfieldname>Rank</customfieldname>
                        <customfieldvalues>
                            <customfieldvalue>2|i0dxiw:</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_22250" key="com.atlassian.jira.plugin.system.customfieldtypes:radiobuttons">
                        <customfieldname>Special Downgrade Instructions Required</customfieldname>
                        <customfieldvalues>
                                <customfieldvalue key="23343"><![CDATA[Not Needed]]></customfieldvalue>

                        </customfieldvalues>
                    </customfield>
                                                                <customfield id="customfield_10557" key="com.pyxis.greenhopper.jira:gh-sprint">
                        <customfieldname>Sprint</customfieldname>
                        <customfieldvalues>
                                <customfieldvalue id="7229">QE 2023-05-15</customfieldvalue>
    <customfieldvalue id="7233">QE 2023-05-29</customfieldvalue>
    <customfieldvalue id="7236">QE 2023-06-12</customfieldvalue>
    <customfieldvalue id="7238">QE 2023-06-26</customfieldvalue>
    <customfieldvalue id="7243">QE 2023-08-07</customfieldvalue>

                        </customfieldvalues>
                    </customfield>
                                                                                                                                                                                                                                                                    <customfield id="customfield_17051" key="com.atlassian.jira.plugin.system.customfieldtypes:multicheckboxes">
                        <customfieldname>Teams Impacted</customfieldname>
                        <customfieldvalues>
                                <customfieldvalue key="16943"><![CDATA[Cloud]]></customfieldvalue>
    <customfieldvalue key="16944"><![CDATA[Docs]]></customfieldvalue>
    <customfieldvalue key="20960"><![CDATA[DBX: DevTools (Compass, Shell, VS Code Ext)]]></customfieldvalue>
    <customfieldvalue key="16946"><![CDATA[Triage and Release]]></customfieldvalue>
    <customfieldvalue key="20958"><![CDATA[Atlas Data Federation and Data Lake]]></customfieldvalue>
    <customfieldvalue key="20959"><![CDATA[Charts]]></customfieldvalue>
    <customfieldvalue key="20961"><![CDATA[SQL Engines (Atlas SQL + BIC)]]></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|i0un3b:</customfieldvalue>

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