<!-- 
RSS generated by JIRA (9.7.1#970001-sha1:2222b88b221c4928ef0de3161136cc90c8356a66) at Thu Feb 08 06:17:43 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-70984] Decouple the concepts &quot;in-place updates&quot; and &quot;index updates&quot;</title>
                <link>https://jira.mongodb.org/browse/SERVER-70984</link>
                <project id="10000" key="SERVER">Core Server</project>
                    <description>&lt;p&gt;The current code has this odd &lt;a href=&quot;https://github.com/mongodb/mongo/blob/1ac82c418b0ff6fc21734962e7e355677fea9634/src/mongo/db/update/update_driver.cpp#L276-L279&quot; class=&quot;external-link&quot; target=&quot;_blank&quot; rel=&quot;nofollow noopener&quot;&gt;logic&lt;/a&gt; to disable &quot;in-place updates&quot; if any of the indexes are being updated as part of the update operation. After &lt;a href=&quot;https://jira.mongodb.org/browse/SERVER-65364&quot; title=&quot;Update logic should pass info about which fields changed to index layer&quot; class=&quot;issue-link&quot; data-issue-key=&quot;SERVER-65364&quot;&gt;&lt;del&gt;SERVER-65364&lt;/del&gt;&lt;/a&gt;, we will no longer need to compute this global &lt;tt&gt;indexesAffected&lt;/tt&gt; flag. This &quot;in-place updates&quot; is the only place where the &lt;tt&gt;indexesAffected&lt;/tt&gt; flag will be used. &lt;/p&gt;

&lt;p&gt;After a bunch of discussions, we&apos;ve realized that the &quot;in-place updates&quot; is a concept of MMAPv1 storage engine, which had true in-place updates, where the old object and new object pointed to the same memory. So if the update affected secondary indexes those would still need to be updated because the index key isn&apos;t referring the same memory as oldObj / newObj. It should be safe to remove all logic that has in-place updates and index updates coupling.&lt;/p&gt;

&lt;p&gt;As a consequence of removing the above mentioned code block, we&apos;ll be able to do a nice cleanup of the computation logic of &lt;tt&gt;indexesAffected&lt;/tt&gt; flag.&lt;/p&gt;</description>
                <environment></environment>
        <key id="2171267">SERVER-70984</key>
            <summary>Decouple the concepts &quot;in-place updates&quot; and &quot;index updates&quot;</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="irina.yatsenko@mongodb.com">Irina Yatsenko</assignee>
                                    <reporter username="arun.banala@mongodb.com">Arun Banala</reporter>
                        <labels>
                    </labels>
                <created>Tue, 1 Nov 2022 00:07:13 +0000</created>
                <updated>Sun, 29 Oct 2023 21:31:13 +0000</updated>
                            <resolved>Wed, 26 Apr 2023 16:55:20 +0000</resolved>
                                                    <fixVersion>6.3.0-rc0</fixVersion>
                    <fixVersion>7.0.0-rc3</fixVersion>
                                                        <votes>0</votes>
                                    <watches>9</watches>
                                                                                                                <comments>
                            <comment id="5462539" author="xgen-internal-githook" created="Tue, 30 May 2023 23:19:25 +0000"  >&lt;p&gt;Author: &lt;/p&gt;
{&apos;name&apos;: &apos;Irina Yatsenko&apos;, &apos;email&apos;: &apos;irina.yatsenko@mongodb.com&apos;, &apos;username&apos;: &apos;IrinaYatsenko&apos;}
&lt;p&gt;Message: &lt;a href=&quot;https://jira.mongodb.org/browse/SERVER-70984&quot; title=&quot;Decouple the concepts &amp;quot;in-place updates&amp;quot; and &amp;quot;index updates&amp;quot;&quot; class=&quot;issue-link&quot; data-issue-key=&quot;SERVER-70984&quot;&gt;&lt;del&gt;SERVER-70984&lt;/del&gt;&lt;/a&gt; Remove now unused &apos;indexesAffected&apos; flag from various structs in update&lt;br/&gt;
Branch: v7.0&lt;br/&gt;
&lt;a href=&quot;https://github.com/mongodb/mongo/commit/6805bd38a7f7fb5ab7cc17827d88b2be800487fd&quot; class=&quot;external-link&quot; target=&quot;_blank&quot; rel=&quot;nofollow noopener&quot;&gt;https://github.com/mongodb/mongo/commit/6805bd38a7f7fb5ab7cc17827d88b2be800487fd&lt;/a&gt;&lt;/p&gt;</comment>
                            <comment id="5462538" author="xgen-internal-githook" created="Tue, 30 May 2023 23:19:23 +0000"  >&lt;p&gt;Author: &lt;/p&gt;
{&apos;name&apos;: &apos;Irina Yatsenko&apos;, &apos;email&apos;: &apos;irina.yatsenko@mongodb.com&apos;, &apos;username&apos;: &apos;IrinaYatsenko&apos;}
&lt;p&gt;Message: &lt;a href=&quot;https://jira.mongodb.org/browse/SERVER-70984&quot; title=&quot;Decouple the concepts &amp;quot;in-place updates&amp;quot; and &amp;quot;index updates&amp;quot;&quot; class=&quot;issue-link&quot; data-issue-key=&quot;SERVER-70984&quot;&gt;&lt;del&gt;SERVER-70984&lt;/del&gt;&lt;/a&gt; Remove _affectIndices in UpdateDriver in favor of reporting index impact from updateDocument&lt;br/&gt;
Branch: v7.0&lt;br/&gt;
&lt;a href=&quot;https://github.com/mongodb/mongo/commit/d2a58c685686eb757ffd55783e0ac36125e12a33&quot; class=&quot;external-link&quot; target=&quot;_blank&quot; rel=&quot;nofollow noopener&quot;&gt;https://github.com/mongodb/mongo/commit/d2a58c685686eb757ffd55783e0ac36125e12a33&lt;/a&gt;&lt;/p&gt;</comment>
                            <comment id="5377841" author="xgen-internal-githook" created="Wed, 26 Apr 2023 15:21:47 +0000"  >&lt;p&gt;Author: &lt;/p&gt;
{&apos;name&apos;: &apos;Irina Yatsenko&apos;, &apos;email&apos;: &apos;irina.yatsenko@mongodb.com&apos;, &apos;username&apos;: &apos;IrinaYatsenko&apos;}
&lt;p&gt;Message: &lt;a href=&quot;https://jira.mongodb.org/browse/SERVER-70984&quot; title=&quot;Decouple the concepts &amp;quot;in-place updates&amp;quot; and &amp;quot;index updates&amp;quot;&quot; class=&quot;issue-link&quot; data-issue-key=&quot;SERVER-70984&quot;&gt;&lt;del&gt;SERVER-70984&lt;/del&gt;&lt;/a&gt; Remove now unused &apos;indexesAffected&apos; flag from various structs in update&lt;br/&gt;
Branch: master&lt;br/&gt;
&lt;a href=&quot;https://github.com/mongodb/mongo/commit/1d616ae7969f19a082521718e8224454e9ce737b&quot; class=&quot;external-link&quot; target=&quot;_blank&quot; rel=&quot;nofollow noopener&quot;&gt;https://github.com/mongodb/mongo/commit/1d616ae7969f19a082521718e8224454e9ce737b&lt;/a&gt;&lt;/p&gt;</comment>
                            <comment id="5367083" author="xgen-internal-githook" created="Fri, 21 Apr 2023 19:15:36 +0000"  >&lt;p&gt;Author: &lt;/p&gt;
{&apos;name&apos;: &apos;Irina Yatsenko&apos;, &apos;email&apos;: &apos;irina.yatsenko@mongodb.com&apos;, &apos;username&apos;: &apos;IrinaYatsenko&apos;}
&lt;p&gt;Message: &lt;a href=&quot;https://jira.mongodb.org/browse/SERVER-70984&quot; title=&quot;Decouple the concepts &amp;quot;in-place updates&amp;quot; and &amp;quot;index updates&amp;quot;&quot; class=&quot;issue-link&quot; data-issue-key=&quot;SERVER-70984&quot;&gt;&lt;del&gt;SERVER-70984&lt;/del&gt;&lt;/a&gt; Remove _affectIndices in UpdateDriver in favor of reporting index impact from updateDocument&lt;br/&gt;
Branch: master&lt;br/&gt;
&lt;a href=&quot;https://github.com/mongodb/mongo/commit/e187a5f91a8bf18fefbae4d7b3003bfe8ee89a6c&quot; class=&quot;external-link&quot; target=&quot;_blank&quot; rel=&quot;nofollow noopener&quot;&gt;https://github.com/mongodb/mongo/commit/e187a5f91a8bf18fefbae4d7b3003bfe8ee89a6c&lt;/a&gt;&lt;/p&gt;</comment>
                            <comment id="5354192" author="JIRAUSER1259274" created="Mon, 17 Apr 2023 23:02:20 +0000"  >&lt;p&gt;I&apos;m not sure about the linked BF. I wouldn&apos;t expect asking about whether indexes might be affected twice to drive the latency up that much. On the other hand, there was churn in the area so it&apos;s conceivable that the changes above or the remaining work for this ticket would improve perf. I&apos;m looking at it right now.&lt;/p&gt;</comment>
                            <comment id="5353768" author="JIRAUSER1265798" created="Mon, 17 Apr 2023 19:55:42 +0000"  >&lt;p&gt;&lt;a href=&quot;https://jira.mongodb.org/secure/ViewProfile.jspa?name=irina.yatsenko%40mongodb.com&quot; class=&quot;user-hover&quot; rel=&quot;irina.yatsenko@mongodb.com&quot;&gt;irina.yatsenko@mongodb.com&lt;/a&gt; I see. I found this ticket because it is linked to a hot BF BF-27578, do those PRs solve the BF or we still need more steps?&lt;/p&gt;</comment>
                            <comment id="5353440" author="JIRAUSER1259274" created="Mon, 17 Apr 2023 18:11:00 +0000"  >&lt;p&gt;The linked PRs are merged but they represent partial steps towards the ultimate goal of the ticket.&lt;/p&gt;</comment>
                            <comment id="5353420" author="JIRAUSER1265798" created="Mon, 17 Apr 2023 18:05:35 +0000"  >&lt;p&gt;&lt;a href=&quot;https://jira.mongodb.org/secure/ViewProfile.jspa?name=irina.yatsenko%40mongodb.com&quot; class=&quot;user-hover&quot; rel=&quot;irina.yatsenko@mongodb.com&quot;&gt;irina.yatsenko@mongodb.com&lt;/a&gt; The linked PRs are all merged, can we close this ticket?&lt;/p&gt;</comment>
                            <comment id="5180712" author="xgen-internal-githook" created="Wed, 8 Feb 2023 22:55:56 +0000"  >&lt;p&gt;Author: &lt;/p&gt;
{&apos;name&apos;: &apos;Irina Yatsenko&apos;, &apos;email&apos;: &apos;irina.yatsenko@mongodb.com&apos;, &apos;username&apos;: &apos;IrinaYatsenko&apos;}
&lt;p&gt;Message: &lt;a href=&quot;https://jira.mongodb.org/browse/SERVER-70984&quot; title=&quot;Decouple the concepts &amp;quot;in-place updates&amp;quot; and &amp;quot;index updates&amp;quot;&quot; class=&quot;issue-link&quot; data-issue-key=&quot;SERVER-70984&quot;&gt;&lt;del&gt;SERVER-70984&lt;/del&gt;&lt;/a&gt; Remove dead code for returning RecordId from UpdateDocument&lt;br/&gt;
Branch: master&lt;br/&gt;
&lt;a href=&quot;https://github.com/mongodb/mongo/commit/f24843f504a422fb1c5dfcca796a5ad63ca4a242&quot; class=&quot;external-link&quot; target=&quot;_blank&quot; rel=&quot;nofollow noopener&quot;&gt;https://github.com/mongodb/mongo/commit/f24843f504a422fb1c5dfcca796a5ad63ca4a242&lt;/a&gt;&lt;/p&gt;</comment>
                            <comment id="5161279" author="xgen-internal-githook" created="Thu, 2 Feb 2023 05:19:00 +0000"  >&lt;p&gt;Author: &lt;/p&gt;
{&apos;name&apos;: &apos;Irina Yatsenko&apos;, &apos;email&apos;: &apos;irina.yatsenko@mongodb.com&apos;, &apos;username&apos;: &apos;IrinaYatsenko&apos;}
&lt;p&gt;Message: &lt;a href=&quot;https://jira.mongodb.org/browse/SERVER-70984&quot; title=&quot;Decouple the concepts &amp;quot;in-place updates&amp;quot; and &amp;quot;index updates&amp;quot;&quot; class=&quot;issue-link&quot; data-issue-key=&quot;SERVER-70984&quot;&gt;&lt;del&gt;SERVER-70984&lt;/del&gt;&lt;/a&gt; Do not block inplace doc updates just because of indexes&lt;br/&gt;
Branch: master&lt;br/&gt;
&lt;a href=&quot;https://github.com/mongodb/mongo/commit/f235cce813e703afe90c07e83643840657a9450d&quot; class=&quot;external-link&quot; target=&quot;_blank&quot; rel=&quot;nofollow noopener&quot;&gt;https://github.com/mongodb/mongo/commit/f235cce813e703afe90c07e83643840657a9450d&lt;/a&gt;&lt;/p&gt;</comment>
                    </comments>
                <issuelinks>
                            <issuelinktype id="10420">
                    <name>Backports</name>
                                            <outwardlinks description="backported by">
                                                        </outwardlinks>
                                                        </issuelinktype>
                            <issuelinktype id="10011">
                    <name>Depends</name>
                                            <outwardlinks description="depends on">
                                        <issuelink>
            <issuekey id="2020191">SERVER-65364</issuekey>
        </issuelink>
                            </outwardlinks>
                                                        </issuelinktype>
                            <issuelinktype id="10010">
                    <name>Duplicate</name>
                                                                <inwardlinks description="is duplicated by">
                                        <issuelink>
            <issuekey id="2267600">SERVER-74136</issuekey>
        </issuelink>
                            </inwardlinks>
                                    </issuelinktype>
                            <issuelinktype id="10012">
                    <name>Related</name>
                                            <outwardlinks description="related to">
                                        <issuelink>
            <issuekey id="2320490">SERVER-76390</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>10.0</customfieldvalue>
                        </customfieldvalues>
                    </customfield>
                                                                <customfield id="customfield_18555" key="com.onresolve.jira.groovy.groovyrunner:scripted-field">
                        <customfieldname># of Sprints</customfieldname>
                        <customfieldvalues>
                            <customfieldvalue>7.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_12450" key="com.atlassian.jira.plugin.system.customfieldtypes:multicheckboxes">
                        <customfieldname>Backport Requested</customfieldname>
                        <customfieldvalues>
                                <customfieldvalue key="25578"><![CDATA[v7.0]]></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>Fri, 27 Jan 2023 16:15:55 +0000</customfieldvalue>

                        </customfieldvalues>
                    </customfield>
                                                                <customfield id="customfield_10052" key="com.atlassian.jira.toolkit:dayslastcommented">
                        <customfieldname>Days since reply</customfieldname>
                        <customfieldvalues>
                                        36 weeks, 1 day 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-65364'>SERVER-65364</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_17050" key="com.atlassian.jira.plugin.system.customfieldtypes:radiobuttons">
                        <customfieldname>Downstream Team Attention</customfieldname>
                        <customfieldvalues>
                                <customfieldvalue key="16941"><![CDATA[Not Needed]]></customfieldvalue>

                        </customfieldvalues>
                    </customfield>
                                                                                                                        <customfield id="customfield_10857" key="com.pyxis.greenhopper.jira:gh-epic-link">
                        <customfieldname>Epic Link</customfieldname>
                        <customfieldvalues>
                            <customfieldvalue>PM-3063</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>
                            36 weeks, 1 day ago
                        </customfieldvalues>
                    </customfield>
                                                                                                                                                                                                                                                                    <customfield id="customfield_10051" key="com.atlassian.jira.toolkit:participants">
                        <customfieldname>Participants</customfieldname>
                        <customfieldvalues>
                                        <customfieldvalue>arun.banala@mongodb.com</customfieldvalue>
            <customfieldvalue>xgen-internal-githook</customfieldvalue>
            <customfieldvalue>irina.yatsenko@mongodb.com</customfieldvalue>
            <customfieldvalue>zixuan.zhuang@mongodb.com</customfieldvalue>
    
                        </customfieldvalues>
                    </customfield>
                                                                                                                                                                                                                                        <customfield id="customfield_14254" key="com.pyxis.greenhopper.jira:gh-lexo-rank">
                        <customfieldname>Product Rank</customfieldname>
                        <customfieldvalues>
                            <customfieldvalue>1|i1g5jz:</customfieldvalue>

                        </customfieldvalues>
                    </customfield>
                                                                                                                                                                                <customfield id="customfield_12550" key="com.pyxis.greenhopper.jira:gh-lexo-rank">
                        <customfieldname>Rank</customfieldname>
                        <customfieldvalues>
                            <customfieldvalue>2|i0ysi0:</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="5930">QE 2023-02-06</customfieldvalue>
    <customfieldvalue id="5932">QE 2023-02-20</customfieldvalue>
    <customfieldvalue id="6990">QE 2023-03-06</customfieldvalue>
    <customfieldvalue id="6992">QE 2023-03-20</customfieldvalue>
    <customfieldvalue id="6994">QE 2023-04-03</customfieldvalue>
    <customfieldvalue id="6996">QE 2023-04-17</customfieldvalue>
    <customfieldvalue id="6998">QE 2023-05-01</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|i1frpb:</customfieldvalue>

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