<!-- 
RSS generated by JIRA (9.7.1#970001-sha1:2222b88b221c4928ef0de3161136cc90c8356a66) at Thu Feb 08 08:52:44 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>[JAVA-637] Create TTL Collection</title>
                <link>https://jira.mongodb.org/browse/JAVA-637</link>
                <project id="10006" key="JAVA">Java Driver</project>
                    <description>&lt;p&gt;Hi,&lt;/p&gt;

&lt;p&gt;I am looking for being able to define the TTL collection using the java driver, is this supported? if so could you point me in the right direction?&lt;/p&gt;</description>
                <environment>Windows 7, 64 bit</environment>
        <key id="49232">JAVA-637</key>
            <summary>Create TTL Collection</summary>
                <type id="3" iconUrl="https://jira.mongodb.org/secure/viewavatar?size=xsmall&amp;avatarId=14718&amp;avatarType=issuetype">Task</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="narayavc">Vineeth Narayanan</reporter>
                        <labels>
                    </labels>
                <created>Mon, 3 Sep 2012 16:51:32 +0000</created>
                <updated>Wed, 11 Sep 2019 19:12:24 +0000</updated>
                            <resolved>Mon, 3 Sep 2012 18:57:39 +0000</resolved>
                                                                    <component>API</component>
                                        <votes>0</votes>
                                    <watches>3</watches>
                                                                                                                <comments>
                            <comment id="160838" author="scotthernandez" created="Wed, 5 Sep 2012 20:51:10 +0000"  >&lt;p&gt;This is currently not supported, but you can vote for the feature here: &lt;a href=&quot;https://jira.mongodb.org/browse/SERVER-6700&quot; title=&quot;Allow updates to expireAfterSeconds field for TTL indexes&quot; class=&quot;issue-link&quot; data-issue-key=&quot;SERVER-6700&quot;&gt;&lt;del&gt;SERVER-6700&lt;/del&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;For now you must remove and add the index back.&lt;/p&gt;

&lt;p&gt;Please ask these kinds of questions on the list/group: &lt;a href=&quot;http://groups.google.com/group/mongodb-user/&quot; class=&quot;external-link&quot; target=&quot;_blank&quot; rel=&quot;nofollow noopener&quot;&gt;http://groups.google.com/group/mongodb-user/&lt;/a&gt;&lt;/p&gt;</comment>
                            <comment id="160825" author="narayavc" created="Wed, 5 Sep 2012 20:40:51 +0000"  >&lt;p&gt;Thanks Jeff.&lt;/p&gt;

&lt;p&gt;Could you also let me know what the behaviour should be if I change the &quot;expireAfterSeconds&quot; value between runs? should the value get updated on the existing collection? Is there a way to check the value of the &quot;expireAfterSeconds&quot; via the mongo shell?&lt;/p&gt;</comment>
                            <comment id="159952" author="jeff.yemin" created="Mon, 3 Sep 2012 18:57:39 +0000"  >&lt;p&gt;Closing this, but let me know if you have further questions.&lt;/p&gt;</comment>
                            <comment id="159942" author="jeff.yemin" created="Mon, 3 Sep 2012 17:00:53 +0000"  >&lt;p&gt;Following the docs at &lt;a href=&quot;http://docs.mongodb.org/manual/tutorial/expire-data/&quot; class=&quot;external-link&quot; target=&quot;_blank&quot; rel=&quot;nofollow noopener&quot;&gt;http://docs.mongodb.org/manual/tutorial/expire-data/&lt;/a&gt;, you can use this method in the DBCollection class: DBCollection#ensureIndex(final DBObject keys , final DBObject optionsIN).  Something like:&lt;/p&gt;

&lt;p/&gt;
&lt;div id=&quot;syntaxplugin&quot; class=&quot;syntaxplugin&quot; style=&quot;border: 1px dashed #bbb; border-radius: 5px !important; overflow: auto; max-height: 30em;&quot;&gt;
&lt;table cellspacing=&quot;0&quot; cellpadding=&quot;0&quot; border=&quot;0&quot; width=&quot;100%&quot; style=&quot;font-size: 1em; line-height: 1.4em !important; font-weight: normal; font-style: normal; color: black;&quot;&gt;
		&lt;tbody &gt;
				&lt;tr id=&quot;syntaxplugin_code_and_gutter&quot;&gt;
						&lt;td  style=&quot; line-height: 1.4em !important; padding: 0em; vertical-align: top;&quot;&gt;
					&lt;pre style=&quot;font-size: 1em; margin: 0 10px;  margin-top: 10px;   margin-bottom: 10px;  width: auto; padding: 0;&quot;&gt;&lt;span style=&quot;color: black; font-family: &apos;Consolas&apos;, &apos;Bitstream Vera Sans Mono&apos;, &apos;Courier New&apos;, Courier, monospace !important;&quot;&gt;myTTLCollection.ensureIndex(new BasicDBObject(&quot;someField&quot;, 1), new BasicDBObject(&quot;expireAfterSeconds&quot;, 3600));&lt;/span&gt;&lt;/pre&gt;
			&lt;/td&gt;
		&lt;/tr&gt;
			&lt;/tbody&gt;
&lt;/table&gt;
&lt;/div&gt;
&lt;p/&gt;</comment>
                    </comments>
                    <attachments>
                    </attachments>
                <subtasks>
                    </subtasks>
                <customfields>
                                                                                                                                                                                                                                                                                                                                                                    <customfield id="customfield_15850" key="com.atlassian.jira.plugins.jira-development-integration-plugin:devsummary">
                        <customfieldname>Development</customfieldname>
                        <customfieldvalues>
                            
                        </customfieldvalues>
                    </customfield>
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                    <customfield id="customfield_12550" key="com.pyxis.greenhopper.jira:gh-lexo-rank">
                        <customfieldname>Rank</customfieldname>
                        <customfieldvalues>
                            <customfieldvalue>2|hrgief:</customfieldvalue>

                        </customfieldvalues>
                    </customfield>
                                                                <customfield id="customfield_10558" key="com.pyxis.greenhopper.jira:gh-global-rank">
                        <customfieldname>Rank (Obsolete)</customfieldname>
                        <customfieldvalues>
                            <customfieldvalue>9919</customfieldvalue>
                        </customfieldvalues>
                    </customfield>
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                            </customfields>
    </item>
</channel>
</rss>