<!-- 
RSS generated by JIRA (9.7.1#970001-sha1:2222b88b221c4928ef0de3161136cc90c8356a66) at Thu Feb 08 03:20:00 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-9306] Ability to temporarily forbid query optimizer from using index (&quot;invisible index&quot;)</title>
                <link>https://jira.mongodb.org/browse/SERVER-9306</link>
                <project id="10000" key="SERVER">Core Server</project>
                    <description>&lt;p&gt;It would be helpful if there was a way to disable an index before dropping. Been clearing out some unused production indexes lately, but there&apos;s always a tense moment after issuing the dropIndex command where I wait to see if it was less &quot;unused&quot; than expected.&lt;/p&gt;

&lt;p&gt;If there was a way to just disable the index (semantics would be that it keeps getting updated, just can&apos;t be used by queries), then a revert would be much faster if something goes wrong and the drop could be done with more confidence.&lt;/p&gt;</description>
                <environment></environment>
        <key id="71266">SERVER-9306</key>
            <summary>Ability to temporarily forbid query optimizer from using index (&quot;invisible index&quot;)</summary>
                <type id="2" iconUrl="https://jira.mongodb.org/secure/viewavatar?size=xsmall&amp;avatarId=14711&amp;avatarType=issuetype">New Feature</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="backlog-server-query">Backlog - Query Team</assignee>
                                    <reporter username="adamaflynn">Adam Flynn</reporter>
                        <labels>
                            <label>query_triage</label>
                            <label>storch</label>
                    </labels>
                <created>Tue, 9 Apr 2013 20:00:39 +0000</created>
                <updated>Tue, 6 Dec 2022 05:22:09 +0000</updated>
                            <resolved>Thu, 23 Apr 2020 20:38:16 +0000</resolved>
                                                    <fixVersion>4.4.0-rc3</fixVersion>
                    <fixVersion>4.7.0</fixVersion>
                                    <component>Index Maintenance</component>
                    <component>Querying</component>
                                        <votes>9</votes>
                                    <watches>34</watches>
                                                                                                                <comments>
                            <comment id="3054506" author="xgen-internal-githook" created="Fri, 24 Apr 2020 16:55:46 +0000"  >&lt;p&gt;Author:&lt;/p&gt;
{&apos;name&apos;: &apos;Zhihui Fan&apos;, &apos;email&apos;: &apos;yizhi.fzh@alibaba-inc.com&apos;, &apos;username&apos;: &apos;zhihuiFan&apos;}
&lt;p&gt;Message: &lt;a href=&quot;https://jira.mongodb.org/browse/SERVER-9306&quot; title=&quot;Ability to temporarily forbid query optimizer from using index (&amp;quot;invisible index&amp;quot;)&quot; class=&quot;issue-link&quot; data-issue-key=&quot;SERVER-9306&quot;&gt;&lt;del&gt;SERVER-9306&lt;/del&gt;&lt;/a&gt; Ability to temporarily forbid query optimizer from using index (&quot;Hidden Index&quot;) &lt;a href=&quot;https://jira.mongodb.org/browse/SERVER-47275&quot; title=&quot;Take over and complete Hidden Indexes PR&quot; class=&quot;issue-link&quot; data-issue-key=&quot;SERVER-47275&quot;&gt;&lt;del&gt;SERVER-47275&lt;/del&gt;&lt;/a&gt; Take over and complete Hidden Indexes PR&lt;/p&gt;

&lt;p&gt;Co-authored-by: Ruoxin Xu &amp;lt;ruoxin.xu@mongodb.com&amp;gt;&lt;/p&gt;

&lt;p&gt;(cherry picked from commit bad7c538e7efbc996a6089e1569681edf24e6b33)&lt;br/&gt;
Branch: v4.4&lt;br/&gt;
&lt;a href=&quot;https://github.com/mongodb/mongo/commit/340222f5e2005fcf734a65e269c52572f9b0b2cb&quot; class=&quot;external-link&quot; target=&quot;_blank&quot; rel=&quot;nofollow noopener&quot;&gt;https://github.com/mongodb/mongo/commit/340222f5e2005fcf734a65e269c52572f9b0b2cb&lt;/a&gt;&lt;/p&gt;</comment>
                            <comment id="3051294" author="xgen-internal-githook" created="Wed, 22 Apr 2020 16:47:47 +0000"  >&lt;p&gt;Author:&lt;/p&gt;
{&apos;name&apos;: &apos;Zhihui Fan&apos;, &apos;email&apos;: &apos;yizhi.fzh@alibaba-inc.com&apos;, &apos;username&apos;: &apos;zhihuiFan&apos;}
&lt;p&gt;Message: &lt;a href=&quot;https://jira.mongodb.org/browse/SERVER-9306&quot; title=&quot;Ability to temporarily forbid query optimizer from using index (&amp;quot;invisible index&amp;quot;)&quot; class=&quot;issue-link&quot; data-issue-key=&quot;SERVER-9306&quot;&gt;&lt;del&gt;SERVER-9306&lt;/del&gt;&lt;/a&gt; Ability to temporarily forbid query optimizer from using index (&quot;Hidden Index&quot;) &lt;a href=&quot;https://jira.mongodb.org/browse/SERVER-47275&quot; title=&quot;Take over and complete Hidden Indexes PR&quot; class=&quot;issue-link&quot; data-issue-key=&quot;SERVER-47275&quot;&gt;&lt;del&gt;SERVER-47275&lt;/del&gt;&lt;/a&gt; Take over and complete Hidden Indexes PR&lt;/p&gt;

&lt;p&gt;Co-authored-by: Ruoxin Xu &amp;lt;ruoxin.xu@mongodb.com&amp;gt;&lt;br/&gt;
Branch: master&lt;br/&gt;
&lt;a href=&quot;https://github.com/mongodb/mongo/commit/bad7c538e7efbc996a6089e1569681edf24e6b33&quot; class=&quot;external-link&quot; target=&quot;_blank&quot; rel=&quot;nofollow noopener&quot;&gt;https://github.com/mongodb/mongo/commit/bad7c538e7efbc996a6089e1569681edf24e6b33&lt;/a&gt;&lt;/p&gt;</comment>
                            <comment id="3002540" author="daniel.gottlieb@10gen.com" created="Thu, 26 Mar 2020 15:50:23 +0000"  >&lt;p&gt;My CR is complete with outstanding (but trivial) changes requested. Assigning back to query to follow up.&lt;/p&gt;</comment>
                            <comment id="1814265" author="ian@10gen.com" created="Fri, 23 Feb 2018 15:39:12 +0000"  >&lt;p&gt;Assigning to &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; to do an initial review of the PR for potential upgrade/downgrade complexities.&lt;/p&gt;</comment>
                            <comment id="1779968" author="zoxexivo@gmail.com" created="Sat, 20 Jan 2018 23:21:18 +0000"  >&lt;p&gt;I think, you need use &quot;Invisible index&quot; name in title&lt;/p&gt;</comment>
                            <comment id="1220550" author="adamaflynn" created="Wed, 30 Mar 2016 21:34:19 +0000"  >&lt;p&gt;Thanks Asya - looks like that&apos;ll address this use-case nicely.&lt;/p&gt;</comment>
                            <comment id="1220424" author="asya" created="Wed, 30 Mar 2016 20:19:37 +0000"  >&lt;p&gt;Please note that for this particular described use case, &lt;a href=&quot;https://docs.mongodb.org/manual/reference/operator/aggregation/indexStats/&quot; class=&quot;external-link&quot; target=&quot;_blank&quot; rel=&quot;nofollow noopener&quot;&gt;3.2 indexStats&lt;/a&gt; allows you to see the index usage. &lt;/p&gt;</comment>
                    </comments>
                <issuelinks>
                            <issuelinktype id="10420">
                    <name>Backports</name>
                                            <outwardlinks description="backported by">
                                                        </outwardlinks>
                                                        </issuelinktype>
                            <issuelinktype id="10011">
                    <name>Depends</name>
                                                                <inwardlinks description="is depended on by">
                                                        </inwardlinks>
                                    </issuelinktype>
                            <issuelinktype id="10010">
                    <name>Duplicate</name>
                                                                <inwardlinks description="is duplicated by">
                                        <issuelink>
            <issuekey id="88413">SERVER-10674</issuekey>
        </issuelink>
            <issuelink>
            <issuekey id="322932">SERVER-26589</issuekey>
        </issuelink>
                            </inwardlinks>
                                    </issuelinktype>
                            <issuelinktype id="10520">
                    <name>Problem/Incident</name>
                                            <outwardlinks description="causes">
                                        <issuelink>
            <issuekey id="1333379">SERVER-47846</issuekey>
        </issuelink>
            <issuelink>
            <issuekey id="1344721">SERVER-48047</issuekey>
        </issuelink>
                            </outwardlinks>
                                                        </issuelinktype>
                            <issuelinktype id="10012">
                    <name>Related</name>
                                            <outwardlinks description="related to">
                                        <issuelink>
            <issuekey id="1302174">SERVER-47275</issuekey>
        </issuelink>
            <issuelink>
            <issuekey id="1628502">SERVER-54646</issuekey>
        </issuelink>
                            </outwardlinks>
                                                                <inwardlinks description="is related to">
                                        <issuelink>
            <issuekey id="67516">SERVER-8871</issuekey>
        </issuelink>
            <issuelink>
            <issuekey id="13970">SERVER-44432</issuekey>
        </issuelink>
                            </inwardlinks>
                                    </issuelinktype>
                    </issuelinks>
                <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_18555" key="com.onresolve.jira.groovy.groovyrunner:scripted-field">
                        <customfieldname># of Sprints</customfieldname>
                        <customfieldvalues>
                            <customfieldvalue>4.0</customfieldvalue>

                        </customfieldvalues>
                    </customfield>
                                                                                                                                                                                                                                                                    <customfield id="customfield_12751" key="com.atlassian.jira.plugin.system.customfieldtypes:multiselect">
                        <customfieldname>Assigned Teams</customfieldname>
                        <customfieldvalues>
                                <customfieldvalue key="25143"><![CDATA[Query]]></customfieldvalue>
    
                        </customfieldvalues>
                    </customfield>
                                                                                                                                                                                <customfield id="customfield_12450" key="com.atlassian.jira.plugin.system.customfieldtypes:multicheckboxes">
                        <customfieldname>Backport Requested</customfieldname>
                        <customfieldvalues>
                                <customfieldvalue key="18953"><![CDATA[v4.4]]></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_13552" key="com.go2group.jira.plugin.crm:crm_generic_field">
                        <customfieldname>Case</customfieldname>
                        <customfieldvalues>
                            <customfieldvalue><![CDATA[[5002K00000dVZ7ZQAW, 500A000000UaSNNIA3]]]></customfieldvalue>

                        </customfieldvalues>
                    </customfield>
                                                                                                                                                                                                                                                                                                                            <customfield id="customfield_10055" key="com.atlassian.jira.ext.charting:firstresponsedate">
                        <customfieldname>Date of 1st Reply</customfieldname>
                        <customfieldvalues>
                            <customfieldvalue>Tue, 9 Apr 2013 20:16:02 +0000</customfieldvalue>

                        </customfieldvalues>
                    </customfield>
                                                                <customfield id="customfield_10052" key="com.atlassian.jira.toolkit:dayslastcommented">
                        <customfieldname>Days since reply</customfieldname>
                        <customfieldvalues>
                                        3 years, 41 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_17052" key="com.atlassian.jira.plugin.system.customfieldtypes:textarea">
                        <customfieldname>Downstream Changes Summary</customfieldname>
                        <customfieldvalues>
                            <customfieldvalue>Users can now hide any existing index using &amp;#39;collMod&amp;#39; to set the &amp;#39;hidden:true&amp;#39; parameter, and make it available again by setting &amp;#39;hidden:false&amp;#39;.&lt;br/&gt;
&lt;br/&gt;
Users can also include a &amp;#39;hidden:true&amp;#39; parameter in the&amp;#39; createIndexes&amp;#39; command to build an index but mark it as hidden immediately upon completion.&lt;br/&gt;
&lt;br/&gt;
Indexes will not be considered by the planner while hidden. Hinting a hidden index will produce an error. TTL indexes continue to delete documents while hidden.&lt;br/&gt;
&lt;br/&gt;
The state of an index is persisted in the index catalog; a hidden index will remain hidden after the mongod restarts.</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_10857" key="com.pyxis.greenhopper.jira:gh-epic-link">
                        <customfieldname>Epic Link</customfieldname>
                        <customfieldvalues>
                            <customfieldvalue>PM-1668</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>alexander.golin@mongodb.com</customfieldvalue>

                        </customfieldvalues>
                    </customfield>
                                                                <customfield id="customfield_11151" key="com.atlassian.jira.toolkit:LastCommentDate">
                        <customfieldname>Last public comment date</customfieldname>
                        <customfieldvalues>
                            3 years, 41 weeks, 5 days ago
                        </customfieldvalues>
                    </customfield>
                                                                <customfield id="customfield_16465" key="com.onresolve.jira.groovy.groovyrunner:scripted-field">
                        <customfieldname>Linked BF Score</customfieldname>
                        <customfieldvalues>
                            <customfieldvalue>88.0</customfieldvalue>

                        </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>adamaflynn</customfieldvalue>
            <customfieldvalue>asya.kamsky@mongodb.com</customfieldvalue>
            <customfieldvalue>backlog-server-query</customfieldvalue>
            <customfieldvalue>daniel.gottlieb@mongodb.com</customfieldvalue>
            <customfieldvalue>xgen-internal-githook</customfieldvalue>
            <customfieldvalue>ian@mongodb.com</customfieldvalue>
            <customfieldvalue>zoxexivo@gmail.com</customfieldvalue>
    
                        </customfieldvalues>
                    </customfield>
                                                                                                                                                                                                                                        <customfield id="customfield_14254" key="com.pyxis.greenhopper.jira:gh-lexo-rank">
                        <customfieldname>Product Rank</customfieldname>
                        <customfieldvalues>
                            <customfieldvalue>1|hrmxkv:</customfieldvalue>

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

                        </customfieldvalues>
                    </customfield>
                                                                <customfield id="customfield_10558" key="com.pyxis.greenhopper.jira:gh-global-rank">
                        <customfieldname>Rank (Obsolete)</customfieldname>
                        <customfieldvalues>
                            <customfieldvalue>7099</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="2121">Query 2018-03-12</customfieldvalue>
    <customfieldvalue id="2122">Query 2018-03-26</customfieldvalue>
    <customfieldvalue id="3631">Execution Team 2020-03-09</customfieldvalue>
    <customfieldvalue id="3632">Execution Team 2020-03-23</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="16945"><![CDATA[Drivers]]></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|hs9ze7:</customfieldvalue>

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