<!-- 
RSS generated by JIRA (9.7.1#970001-sha1:2222b88b221c4928ef0de3161136cc90c8356a66) at Thu Feb 08 02:58:41 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-2006] Flag unused indexes on the database server</title>
                <link>https://jira.mongodb.org/browse/SERVER-2006</link>
                <project id="10000" key="SERVER">Core Server</project>
                    <description>&lt;p&gt;As we develop apps and have indexes, over a period of time the usage of the app will change and some of the indexes will not get used. If the server can tell us what indexes are being used and which are not being used then it would be great, so that we can removed UNUSED indexes thus saving on Index Updates during insert/update/delete and also more of the used indexes can be fit in RAM.&lt;/p&gt;

&lt;p&gt;Oracle has this feature.&lt;/p&gt;</description>
                <environment></environment>
        <key id="13508">SERVER-2006</key>
            <summary>Flag unused indexes on the database server</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="3">Duplicate</resolution>
                                        <assignee username="-1">Unassigned</assignee>
                                    <reporter username="psadalag">Pramodkumar Sadalage</reporter>
                        <labels>
                    </labels>
                <created>Tue, 26 Oct 2010 14:43:06 +0000</created>
                <updated>Thu, 21 Mar 2013 21:21:03 +0000</updated>
                            <resolved>Tue, 15 Jan 2013 18:26:45 +0000</resolved>
                                                                    <component>Index Maintenance</component>
                                        <votes>27</votes>
                                    <watches>19</watches>
                                                                                                                <comments>
                            <comment id="240610" author="eliot" created="Tue, 15 Jan 2013 18:26:45 +0000"  >&lt;p&gt;&lt;a href=&quot;https://jira.mongodb.org/browse/SERVER-44432&quot; title=&quot;Per index access stats&quot; class=&quot;issue-link&quot; data-issue-key=&quot;SERVER-44432&quot;&gt;&lt;del&gt;SERVER-2227&lt;/del&gt;&lt;/a&gt; will allow this to happen plus more&lt;/p&gt;</comment>
                            <comment id="186844" author="zaidmasud" created="Mon, 12 Nov 2012 18:59:42 +0000"  >&lt;p&gt;Would suggest that this feature is configurable like profiling. In fact, if it were a new profiling option that would be ideal as we could turn it on for a representative period of time to analyze index usage, and turn it back off when we are done.&lt;/p&gt;</comment>
                            <comment id="173393" author="zaidmasud" created="Wed, 10 Oct 2012 16:47:51 +0000"  >&lt;p&gt;Agree this would be a pretty useful feature, doesn&apos;t sound like it should be too hard to implement with the quality of the 10gen team &lt;img class=&quot;emoticon&quot; src=&quot;https://jira.mongodb.org/images/icons/emoticons/smile.png&quot; height=&quot;16&quot; width=&quot;16&quot; align=&quot;absmiddle&quot; alt=&quot;&quot; border=&quot;0&quot;/&gt;&lt;/p&gt;</comment>
                            <comment id="172651" author="tdemille" created="Mon, 8 Oct 2012 20:16:03 +0000"  >&lt;p&gt;Any progress on this?  Still can&apos;t tune my DB effectively.  I know there are 3rd party tools like dex but don&apos;t work as well as should and this feature seems like it would be a BIG bang for the development buck, that is... not a ton of work but a huge feature for people with complicated ad-hoc query needs.&lt;/p&gt;</comment>
                            <comment id="122619" author="tdemille" created="Thu, 24 May 2012 10:49:46 +0000"  >&lt;p&gt;I don&apos;t feel like anyone over there realizes how critical this is to performance tuning.  Also it seems pretty darn simple, just increment an integer in a collection in the admin side each time an index is used and write a function that parses that table for us and lets us see, by collection, index usage, over a time period.  then we can determine... hey I have 22 indexes on that collection but I can drop 8 of them.  Without this, performance tuning is a guessing game.  &lt;/p&gt;</comment>
                            <comment id="122534" author="eliot" created="Thu, 24 May 2012 04:24:14 +0000"  >&lt;p&gt;Just because it hasn&apos;t been done in 2 years doesn&apos;t mean it won&apos;t be done.&lt;br/&gt;
We look at all open tickets when picking for a release.&lt;/p&gt;</comment>
                            <comment id="122524" author="crnlmcn" created="Thu, 24 May 2012 02:55:41 +0000"  >&lt;p&gt;hopeless +1, created 2 years the issue, still open &amp;amp; unplanned, is there miracle?&lt;/p&gt;</comment>
                            <comment id="111923" author="tdemille" created="Fri, 20 Apr 2012 12:27:23 +0000"  >&lt;p&gt;Still feel like this is CRUCIAL to any professional performance tuning.  How do I know which of my indexes are never hit?  We have ad-hoc queries with hundreds of variables, initiated by end user, no way we can test ahead of time.  Just like Sql Server&apos;s DMV stats, MongoDB would really benefit from having usage stats so we can combine / drop indexes as needed, in order to keep our write times low.&lt;/p&gt;</comment>
                            <comment id="111911" author="ronny@claro.co.il" created="Fri, 20 Apr 2012 11:17:56 +0000"  >&lt;p&gt;Any plans on this for the near future? +1 &lt;/p&gt;</comment>
                            <comment id="101148" author="roysmith" created="Wed, 21 Mar 2012 21:19:36 +0000"  >&lt;p&gt;+1 on this.  The kinds of queries we do change over time.  We discover missing indexes pretty quickly, but rarely if ever notice if we no longer need an existing one.  Having unused indexes is a wasted of resources.&lt;/p&gt;</comment>
                            <comment id="49588" author="tdemille" created="Fri, 19 Aug 2011 19:44:34 +0000"  >&lt;p&gt;any plans for this, this is crucial for anyone doing any serious DB tuning.  We are using MongoDB for add-hoc searching of real estate MLS data,  there are hundreds of add-hoc criteria that can be searched on, thus we need quite a few indexes.  At the same time, we don&apos;t want to over-index and create issues, so knowing which indexes are being used, how often, and by what is crucial.  The ad-hoc nature of the queries makes it very difficult to accurately predict or model or test all cases up front, thus we need to let MongoDB run for a while and then see how well the indexes are doing. &lt;/p&gt;</comment>
                            <comment id="37898" author="tdemille" created="Thu, 16 Jun 2011 17:50:30 +0000"  >&lt;p&gt;I created this by mistake on another ticket, totally agree.. As an easy first step, just showing usage stats would be uber informative... as a second step, showing needed indexes would be fantastic..&lt;/p&gt;</comment>
                            <comment id="19676" author="scotthernandez" created="Wed, 27 Oct 2010 01:19:12 +0000"  >&lt;p&gt;I&apos;d go even farther and ask for index stats. That way we can know which indexes are used and how. Then it will be easy to find the least used indexes. Resetting these stats will allow you to find unused indexes in some period of time.&lt;/p&gt;</comment>
                            <comment id="19660" author="kgorman" created="Tue, 26 Oct 2010 17:25:10 +0000"  >&lt;p&gt;Great feature idea.  Agreed it will be needed over time.&lt;/p&gt;</comment>
                    </comments>
                <issuelinks>
                            <issuelinktype id="10011">
                    <name>Depends</name>
                                                                <inwardlinks description="is depended on by">
                                                        </inwardlinks>
                                    </issuelinktype>
                            <issuelinktype id="10010">
                    <name>Duplicate</name>
                                            <outwardlinks description="duplicates">
                                        <issuelink>
            <issuekey id="13970">SERVER-44432</issuekey>
        </issuelink>
                            </outwardlinks>
                                                                <inwardlinks description="is duplicated by">
                                        <issuelink>
            <issuekey id="18355">SERVER-3271</issuekey>
        </issuelink>
                            </inwardlinks>
                                    </issuelinktype>
                            <issuelinktype id="10012">
                    <name>Related</name>
                                                                <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>14.0</customfieldvalue>
                        </customfieldvalues>
                    </customfield>
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                <customfield id="customfield_10055" key="com.atlassian.jira.ext.charting:firstresponsedate">
                        <customfieldname>Date of 1st Reply</customfieldname>
                        <customfieldvalues>
                            <customfieldvalue>Tue, 26 Oct 2010 17:25:10 +0000</customfieldvalue>

                        </customfieldvalues>
                    </customfield>
                                                                <customfield id="customfield_10052" key="com.atlassian.jira.toolkit:dayslastcommented">
                        <customfieldname>Days since reply</customfieldname>
                        <customfieldvalues>
                                        11 years, 5 weeks, 1 day 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>ian@mongodb.com</customfieldvalue>

                        </customfieldvalues>
                    </customfield>
                                                                <customfield id="customfield_11151" key="com.atlassian.jira.toolkit:LastCommentDate">
                        <customfieldname>Last public comment date</customfieldname>
                        <customfieldvalues>
                            11 years, 5 weeks, 1 day ago
                        </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>eliot</customfieldvalue>
            <customfieldvalue>crnlmcn</customfieldvalue>
            <customfieldvalue>kgorman</customfieldvalue>
            <customfieldvalue>psadalag</customfieldvalue>
            <customfieldvalue>ronny@claro.co.il</customfieldvalue>
            <customfieldvalue>roysmith</customfieldvalue>
            <customfieldvalue>scotthernandez</customfieldvalue>
            <customfieldvalue>tdemille</customfieldvalue>
            <customfieldvalue>zaidmasud</customfieldvalue>
    
                        </customfieldvalues>
                    </customfield>
                                                                                                                                                                                                                                        <customfield id="customfield_14254" key="com.pyxis.greenhopper.jira:gh-lexo-rank">
                        <customfieldname>Product Rank</customfieldname>
                        <customfieldvalues>
                            <customfieldvalue>1|hrpchj:</customfieldvalue>

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

                        </customfieldvalues>
                    </customfield>
                                                                <customfield id="customfield_10558" key="com.pyxis.greenhopper.jira:gh-global-rank">
                        <customfieldname>Rank (Obsolete)</customfieldname>
                        <customfieldvalues>
                            <customfieldvalue>11936</customfieldvalue>
                        </customfieldvalues>
                    </customfield>
                                                                                            <customfield id="customfield_23361" key="com.onresolve.jira.groovy.groovyrunner:scripted-field">
                        <customfieldname>Requested By</customfieldname>
                        <customfieldvalues>
                                

                        </customfieldvalues>
                    </customfield>
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                <customfield id="customfield_10053" key="com.atlassian.jira.ext.charting:timeinstatus">
                        <customfieldname>Time In Status</customfieldname>
                        <customfieldvalues>
                            
                        </customfieldvalues>
                    </customfield>
                                                                                                                                                                                                                                                                                                                                                                                                                                                                        <customfield id="customfield_22870" key="com.onresolve.jira.groovy.groovyrunner:scripted-field">
                        <customfieldname>Triagers</customfieldname>
                        <customfieldvalues>
                                

                        </customfieldvalues>
                    </customfield>
                                                                                                                                                                                                                                                                                                                                                                                    <customfield id="customfield_14350" key="com.pyxis.greenhopper.jira:gh-lexo-rank">
                        <customfieldname>serverRank</customfieldname>
                        <customfieldvalues>
                            <customfieldvalue>1|ht04fr:</customfieldvalue>

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