<!-- 
RSS generated by JIRA (9.7.1#970001-sha1:2222b88b221c4928ef0de3161136cc90c8356a66) at Thu Feb 08 05:08:38 UTC 2024

It is possible to restrict the fields that are returned in this document by specifying the 'field' parameter in your request.
For example, to request only the issue key and summary append 'field=key&field=summary' to the URL of your request.
-->
<rss version="0.92" >
<channel>
    <title>MongoDB Jira</title>
    <link>https://jira.mongodb.org</link>
    <description>This file is an XML representation of an issue</description>
    <language>en-us</language>    <build-info>
        <version>9.7.1</version>
        <build-number>970001</build-number>
        <build-date>13-04-2023</build-date>
    </build-info>


<item>
            <title>[SERVER-45386] MongoDB TTL Monitor Batch Formation</title>
                <link>https://jira.mongodb.org/browse/SERVER-45386</link>
                <project id="10000" key="SERVER">Core Server</project>
                    <description>&lt;p&gt;Hi ,&lt;/p&gt;

&lt;p&gt;When there is a heavy collection say with 50 crore of documents ,&lt;/p&gt;

&lt;p&gt;field - created_at with date value on which TTL with expiration 1 year is applied&lt;/p&gt;

&lt;p&gt;Index is created 100%&lt;/p&gt;

&lt;p&gt;How does the mongodb TTL thread that runs every 60 seconds prepare which set of documents to delete?&lt;/p&gt;

&lt;p&gt;Does it scan complete collection every minute?&lt;/p&gt;

&lt;p&gt;&#160;&lt;/p&gt;</description>
                <environment></environment>
        <key id="1078044">SERVER-45386</key>
            <summary>MongoDB TTL Monitor Batch Formation</summary>
                <type id="6" iconUrl="https://jira.mongodb.org/secure/viewavatar?size=xsmall&amp;avatarId=14720&amp;avatarType=issuetype">Question</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="-1">Unassigned</assignee>
                                    <reporter username="pratiksha.gupta38@gmail.com">Pratiksha Aggarwal</reporter>
                        <labels>
                    </labels>
                <created>Tue, 7 Jan 2020 05:57:07 +0000</created>
                <updated>Fri, 7 Apr 2023 17:15:28 +0000</updated>
                            <resolved>Tue, 7 Jan 2020 14:35:24 +0000</resolved>
                                    <version>4.0.14</version>
                                                    <component>Index Maintenance</component>
                    <component>TTL</component>
                                        <votes>0</votes>
                                    <watches>5</watches>
                                                                                                                <comments>
                            <comment id="2712539" author="pratiksha.gupta38@gmail.com" created="Wed, 8 Jan 2020 18:27:01 +0000"  >&lt;p&gt;Hi Carl,&lt;/p&gt;

&lt;p&gt;The information and the document link shared by you does not fulfil the&lt;br/&gt;
answer to my question. I know that the TTL thread runs every 60 secs but&lt;br/&gt;
when there are 50 crore docuemnts it is not possible to completely scan&lt;br/&gt;
them at once withn 60 secs. So, what process or algorithm is used in that&lt;br/&gt;
case. Also, if it could be scanned by any means then where are they stored&lt;br/&gt;
to be deleted  in cache or queued somewhere??&lt;/p&gt;

&lt;p&gt;All this is nowhere mentioned in the documentation and mongodb community or&lt;br/&gt;
google groups are not enought to get this answered .&lt;/p&gt;

&lt;p&gt;That is why we come to this platform to seek for help. I wonder that I&lt;br/&gt;
should have created it as a Bug &quot;Mising Documentation&quot; then it might be&lt;br/&gt;
answered instead of closing&lt;/p&gt;


&lt;p&gt;On Tue, Jan 7, 2020 at 10:01 PM Carl Champain (Jira) &amp;lt;jira@mongodb.org&amp;gt;&lt;/p&gt;
</comment>
                            <comment id="2711229" author="pratiksha.gupta38@gmail.com" created="Wed, 8 Jan 2020 04:34:46 +0000"  >&lt;h4&gt;&lt;a name=&quot;CarlChampainhttps%3A%2F%2Fjira.mongodb.org%2Fsecure%2FViewProfile.jspa%3Fname%3Dcarl.champain&quot;&gt;&lt;/a&gt;&lt;a href=&quot;https://jira.mongodb.org/secure/ViewProfile.jspa?name=carl.champain&quot; class=&quot;external-link&quot; rel=&quot;nofollow&quot;&gt;Carl Champain&lt;/a&gt;&lt;/h4&gt;

&lt;p&gt;The information and the document link shared by you does not fulfil the answer to my question. I know that the TTL thread runs every 60 secs but when there are 50 crore docuemnts it is not possible to completely scan them at once withn 60 secs. So, what process or algorithm is used in that case. Also, if it could be scanned by any means then where are they stored to be deleted&#160; in cache or queued somewhere??&lt;/p&gt;

&lt;p&gt;All this is nowhere mentioned in the documentation and mongodb community or google groups are not enought to get this answered .&lt;/p&gt;

&lt;p&gt;That is why we come to this platform to seek for help. I wonder that I should have created it as a Bug &quot;Mising Documentation&quot; then it might be answered instead of closing &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="2709441" author="carl.champain" created="Tue, 7 Jan 2020 14:35:15 +0000"  >&lt;p&gt;Hi&#160;&lt;a href=&quot;https://jira.mongodb.org/secure/ViewProfile.jspa?name=pragupta&quot; class=&quot;user-hover&quot; rel=&quot;pragupta&quot;&gt;pragupta&lt;/a&gt;,&lt;/p&gt;

&lt;p&gt;Our &lt;a href=&quot;https://docs.mongodb.com/manual/core/index-ttl/#expiration-of-data&quot; class=&quot;external-link&quot; target=&quot;_blank&quot; rel=&quot;nofollow noopener&quot;&gt;doc&lt;/a&gt; says:&lt;/p&gt;
&lt;blockquote&gt;&lt;p&gt;TTL indexes expire documents after the specified number of seconds has passed since the indexed field value; i.e. the expiration threshold is the indexed field value plus the specified number of seconds.&lt;/p&gt;&lt;/blockquote&gt;
&lt;p&gt;The SERVER project is for bugs and feature suggestions for the MongoDB server. As this ticket does not appear to be a bug, I will now close it. I encourage you to ask our community by posting on the &lt;a href=&quot;https://groups.google.com/group/mongodb-user&quot; class=&quot;external-link&quot; target=&quot;_blank&quot; rel=&quot;nofollow noopener&quot;&gt;mongodb-user group&lt;/a&gt; or on &lt;a href=&quot;https://stackoverflow.com/questions/tagged/mongodb&quot; class=&quot;external-link&quot; target=&quot;_blank&quot; rel=&quot;nofollow noopener&quot;&gt;Stack Overflow with the &lt;tt&gt;mongodb&lt;/tt&gt; tag&lt;/a&gt;.&lt;/p&gt;

&lt;p&gt;Kind regards,&lt;br/&gt;
 Carl&lt;/p&gt;</comment>
                    </comments>
                    <attachments>
                    </attachments>
                <subtasks>
                    </subtasks>
                <customfields>
                                                <customfield id="customfield_10050" key="com.atlassian.jira.toolkit:comments">
                        <customfieldname># Replies</customfieldname>
                        <customfieldvalues>
                            <customfieldvalue>3.0</customfieldvalue>
                        </customfieldvalues>
                    </customfield>
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                <customfield id="customfield_10055" key="com.atlassian.jira.ext.charting:firstresponsedate">
                        <customfieldname>Date of 1st Reply</customfieldname>
                        <customfieldvalues>
                            <customfieldvalue>Tue, 7 Jan 2020 14:35:15 +0000</customfieldvalue>

                        </customfieldvalues>
                    </customfield>
                                                                <customfield id="customfield_10052" key="com.atlassian.jira.toolkit:dayslastcommented">
                        <customfieldname>Days since reply</customfieldname>
                        <customfieldvalues>
                                        4 years, 5 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_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>
                            4 years, 5 weeks ago
                        </customfieldvalues>
                    </customfield>
                                                                                                                                                                                                                                                                    <customfield id="customfield_10051" key="com.atlassian.jira.toolkit:participants">
                        <customfieldname>Participants</customfieldname>
                        <customfieldvalues>
                                        <customfieldvalue>carl.champain@mongodb.com</customfieldvalue>
            <customfieldvalue>pratiksha.gupta38@gmail.com</customfieldvalue>
    
                        </customfieldvalues>
                    </customfield>
                                                                                                                                                                                                                                        <customfield id="customfield_14254" key="com.pyxis.greenhopper.jira:gh-lexo-rank">
                        <customfieldname>Product Rank</customfieldname>
                        <customfieldvalues>
                            <customfieldvalue>1|hwf67b:</customfieldvalue>

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

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

                        </customfieldvalues>
                    </customfield>
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                <customfield id="customfield_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|hwesgn:</customfieldvalue>

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