<!-- 
RSS generated by JIRA (9.7.1#970001-sha1:2222b88b221c4928ef0de3161136cc90c8356a66) at Thu Feb 08 02:57:39 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-1650] Server Side Timestamps</title>
                <link>https://jira.mongodb.org/browse/SERVER-1650</link>
                <project id="10000" key="SERVER">Core Server</project>
                    <description>&lt;p&gt;Currently the only way to set a timestamp when doing an update is to pass a date value from the client. It would be nice to have server side timestamps allowing you to do something similar to this:&lt;/p&gt;

&lt;p&gt;db.data.update(&lt;/p&gt;
{ _id : uuid }
&lt;p&gt;, { &apos;$set&apos; : &lt;/p&gt;
{ foo : &apos;bar&apos;, tsModified : &apos;$now&apos; }
&lt;p&gt; }) &lt;/p&gt;</description>
                <environment></environment>
        <key id="12861">SERVER-1650</key>
            <summary>Server Side Timestamps</summary>
                <type id="2" iconUrl="https://jira.mongodb.org/secure/viewavatar?size=xsmall&amp;avatarId=14711&amp;avatarType=issuetype">New Feature</type>
                                            <priority id="4" iconUrl="https://jira.mongodb.org/images/icons/priorities/minor.svg">Minor - P4</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="scotthernandez">Scott Hernandez</assignee>
                                    <reporter username="twhitton">Travis Whitton</reporter>
                        <labels>
                    </labels>
                <created>Sat, 21 Aug 2010 19:50:21 +0000</created>
                <updated>Fri, 7 Mar 2014 00:03:16 +0000</updated>
                            <resolved>Mon, 7 Oct 2013 15:18:17 +0000</resolved>
                                                                    <component>Write Ops</component>
                                        <votes>25</votes>
                                    <watches>21</watches>
                                                                                                                <comments>
                            <comment id="436585" author="scotthernandez" created="Mon, 7 Oct 2013 15:18:17 +0000"  >&lt;p&gt;This has been implemented in &lt;a href=&quot;https://jira.mongodb.org/browse/SERVER-10911&quot; title=&quot;Add $currentDate update modifier&quot; class=&quot;issue-link&quot; data-issue-key=&quot;SERVER-10911&quot;&gt;&lt;del&gt;SERVER-10911&lt;/del&gt;&lt;/a&gt; ($currentDate mod). If there are ideas or feature requests please open new issues with specific needs and link them.&lt;/p&gt;</comment>
                            <comment id="408201" author="tpneumat" created="Wed, 21 Aug 2013 15:20:22 +0000"  >&lt;p&gt;Hello.  Anyone watching this feature, please checkout the request for &apos;Support Timestamp(0,0) server replace for update (mods)&apos; and vote for it if you think it would help in your case. &lt;/p&gt;

&lt;p&gt;&lt;a href=&quot;https://jira.mongodb.org/browse/SERVER-10123&quot; class=&quot;external-link&quot; rel=&quot;nofollow&quot;&gt;https://jira.mongodb.org/browse/SERVER-10123&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;Thanks!&lt;/p&gt;

&lt;p&gt;Jeremy&lt;/p&gt;</comment>
                            <comment id="317113" author="tpneumat" created="Fri, 19 Apr 2013 16:56:04 +0000"  >&lt;p&gt;NOTE:  My ticket 9039 was closed but wanted to point out that the author of this ticket is asking for something different that myself and probably Joe Waller.  The concept of a &apos;server side timestamp&apos; may not the same as a server side MongoTimestamp (ts + increment). The ts + increment is what we need more control over for polling. Just a timestamp alone without the increment will not help.&lt;/p&gt;</comment>
                            <comment id="218124" author="ashitanojoe" created="Tue, 18 Dec 2012 10:09:47 +0000"  >&lt;p&gt;This is a pretty big issue for me as well. My application periodically polls a collection for changes and reindexes the modified documents in a full text search server. This has been unreliable using client side generated timestamps as the query for retrieving documents for reindexing ofter occurs between the time a timestamp is created and when it is updated in the collection by another client. Server side timestamps would be a good solution for this.&lt;/p&gt;</comment>
                            <comment id="156300" author="tpneumat" created="Fri, 24 Aug 2012 00:26:19 +0000"  >&lt;p&gt;Bump on this issue.  More flexibility on the MongoTimestamp (server-side) would be super helpful feature for us.  My points 1 and 2 above still apply.  Thanks&lt;/p&gt;</comment>
                            <comment id="107636" author="tpneumat" created="Sat, 7 Apr 2012 23:15:58 +0000"  >&lt;p&gt;YEAH!  Thanks Eliot.&lt;/p&gt;</comment>
                            <comment id="107279" author="tpneumat" created="Fri, 6 Apr 2012 12:24:47 +0000"  >&lt;p&gt;Feeling all alone here, but I see there are 16 votes for this.  Nevermind the microseconds.. just need better support for what you already have.  Suggestion is to simply make the following possible:&lt;/p&gt;

&lt;p&gt;1) Inserting the 0-valued timestamp should continue to work as is, but we should be able to do this for more than 1 field.  Even if you only supported 2 fields that would be FANTASTIC!  For example, if I put 0-valued timestamps in first 2 fields, I want them both marked with the same timestamp.  If you are wondering why I need this, it provides capacity to mark a &apos;created&apos; time as well as a &apos;updated&apos; time.  In case of insertion, they should be the same.  Having both means that doing polling queries for any records &apos;updated&apos; or &apos;inserted&apos; since XYZ can be done with a single query on &apos;updated&apos; gte &lt;span class=&quot;error&quot;&gt;&amp;#91;timestamp_inc&amp;#93;&lt;/span&gt;.  As is, I have to do 2 queries, merge the results, and sort &amp;amp; limit with code, which takes all the fun out of it :}&lt;/p&gt;

&lt;p&gt;2) Make it possible to do a $set on a document with the 0-valued timestamp to update field with server timestamp_inc.&lt;/p&gt;

&lt;p&gt;Thanks Again!&lt;/p&gt;

&lt;p&gt;Jeremy&lt;/p&gt;</comment>
                            <comment id="50911" author="tpneumat" created="Fri, 26 Aug 2011 15:32:57 +0000"  >&lt;p&gt;We get around this by using the null Timestamp insert trick as explained here &lt;a href=&quot;http://groups.google.com/group/mongodb-user/browse_thread/thread/e2fb8c6a993ddca1/4352163c3264d370?lnk=gst&amp;amp;q=timestamp#4352163c3264d370&quot; class=&quot;external-link&quot; target=&quot;_blank&quot; rel=&quot;nofollow noopener&quot;&gt;http://groups.google.com/group/mongodb-user/browse_thread/thread/e2fb8c6a993ddca1/4352163c3264d370?lnk=gst&amp;amp;q=timestamp#4352163c3264d370&lt;/a&gt;  &lt;/p&gt;

&lt;p&gt;However, it really would be nice to not have to upsert an entire record just to $set the ts with a new serverside generated timestamp.&lt;/p&gt;</comment>
                            <comment id="21182" author="tpneumat" created="Wed, 8 Dec 2010 18:55:10 +0000"  >&lt;p&gt;--first comment was confusing.. removed&lt;/p&gt;</comment>
                    </comments>
                <issuelinks>
                            <issuelinktype id="10011">
                    <name>Depends</name>
                                            <outwardlinks description="depends on">
                                        <issuelink>
            <issuekey id="43910">SERVER-6399</issuekey>
        </issuelink>
                            </outwardlinks>
                                                                <inwardlinks description="is depended on by">
                                                        </inwardlinks>
                                    </issuelinktype>
                            <issuelinktype id="10010">
                    <name>Duplicate</name>
                                            <outwardlinks description="duplicates">
                                        <issuelink>
            <issuekey id="91556">SERVER-10911</issuekey>
        </issuelink>
                            </outwardlinks>
                                                                <inwardlinks description="is duplicated by">
                                        <issuelink>
            <issuekey id="69164">SERVER-9039</issuekey>
        </issuelink>
            <issuelink>
            <issuekey id="85371">SERVER-10481</issuekey>
        </issuelink>
                            </inwardlinks>
                                    </issuelinktype>
                            <issuelinktype id="10012">
                    <name>Related</name>
                                                                <inwardlinks description="is related to">
                                        <issuelink>
            <issuekey id="69164">SERVER-9039</issuekey>
        </issuelink>
            <issuelink>
            <issuekey id="81540">SERVER-10123</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>9.0</customfieldvalue>
                        </customfieldvalues>
                    </customfield>
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                <customfield id="customfield_10055" key="com.atlassian.jira.ext.charting:firstresponsedate">
                        <customfieldname>Date of 1st Reply</customfieldname>
                        <customfieldvalues>
                            <customfieldvalue>Wed, 8 Dec 2010 18:55:10 +0000</customfieldvalue>

                        </customfieldvalues>
                    </customfield>
                                                                <customfield id="customfield_10052" key="com.atlassian.jira.toolkit:dayslastcommented">
                        <customfieldname>Days since reply</customfieldname>
                        <customfieldvalues>
                                        10 years, 19 weeks, 2 days 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-6399'>SERVER-6399</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_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>
                            10 years, 19 weeks, 2 days 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>tpneumat</customfieldvalue>
            <customfieldvalue>ashitanojoe</customfieldvalue>
            <customfieldvalue>scotthernandez</customfieldvalue>
            <customfieldvalue>twhitton</customfieldvalue>
    
                        </customfieldvalues>
                    </customfield>
                                                                                                                                                                                                                                        <customfield id="customfield_14254" key="com.pyxis.greenhopper.jira:gh-lexo-rank">
                        <customfieldname>Product Rank</customfieldname>
                        <customfieldvalues>
                            <customfieldvalue>1|hrm7f3:</customfieldvalue>

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

                        </customfieldvalues>
                    </customfield>
                                                                <customfield id="customfield_10558" key="com.pyxis.greenhopper.jira:gh-global-rank">
                        <customfieldname>Rank (Obsolete)</customfieldname>
                        <customfieldvalues>
                            <customfieldvalue>16135</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|hrinlr:</customfieldvalue>

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