<!-- 
RSS generated by JIRA (9.7.1#970001-sha1:2222b88b221c4928ef0de3161136cc90c8356a66) at Thu Feb 08 03:19:10 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-9039] Enhancement of Server Side Created MongoTimestamp (0 filled)</title>
                <link>https://jira.mongodb.org/browse/SERVER-9039</link>
                <project id="10000" key="SERVER">Core Server</project>
                    <description>&lt;p&gt;MongoDB has built in an incredible &apos;feature&apos; that, if enhanced just a little bit, would take things to the next level for us.  It seems the MongoTimestamp that is created server-side by sending with 0-value seems to be thought of only as an &apos;internal&apos; feature used for Replication/Oplog.  But for us, this has become the staple of our entire API platform.  It really is one of the best things about Mongod...being able to insert this unique timestamp_inc is extremely powerful for anyone trying build a system that supports polling of inserted/updated records (get what is new/changed since XYZ).&lt;/p&gt;

&lt;p&gt;However...the limitation of having it only work on 1 field, and also only work during entire &apos;update&apos; is tough to overcome.&lt;/p&gt;

&lt;p&gt;Here is what I would like to see as an enhancement:&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_inc. If you are wondering why I need this, it provides capacity to mark a unique &apos;creation&apos; timestamp_increment as well as a &apos;updated&apos; timestamp_increment.  In case of insertion, they should be the same.  During an update, we restamp the &apos;updated&apos; field.  &lt;/p&gt;

&lt;p&gt;Having both means that doing polling queries for any records &apos;updated&apos; or &apos;created&apos; since &lt;span class=&quot;error&quot;&gt;&amp;#91;timestamp_inc&amp;#93;&lt;/span&gt; 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 it is now, we have to do 2 queries, merge the results, and sort &amp;amp; limit with code, which takes all the fun out of it :}.  The other option we have tried is to insert the record, then immediately retrive it, and update it again saving the &apos;updated&apos; timestamp_inc with the value in &apos;created&apos;---also a really miserable thing to have to be doing.&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;These 2 items, i&apos;ve been wanting since 2010--- see other ticket.  &lt;a href=&quot;https://jira.mongodb.org/browse/SERVER-1650&quot; class=&quot;external-link&quot; rel=&quot;nofollow&quot;&gt;https://jira.mongodb.org/browse/SERVER-1650&lt;/a&gt;  I made this new ticket because I think the other one isn&apos;t quite clear enough.&lt;/p&gt;</description>
                <environment></environment>
        <key id="69164">SERVER-9039</key>
            <summary>Enhancement of Server Side Created MongoTimestamp (0 filled)</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="tpneumat">Jeremy</reporter>
                        <labels>
                            <label>timestamp</label>
                    </labels>
                <created>Wed, 20 Mar 2013 21:07:27 +0000</created>
                <updated>Fri, 19 Apr 2013 16:53:08 +0000</updated>
                            <resolved>Mon, 1 Apr 2013 06:05:01 +0000</resolved>
                                                                    <component>Querying</component>
                                        <votes>0</votes>
                                    <watches>4</watches>
                                                                                                                <comments>
                            <comment id="317111" author="tpneumat" created="Fri, 19 Apr 2013 16:53:08 +0000"  >&lt;p&gt;It covers it because my comments are included in that ticket, but the concept of a &apos;server side timestamp&apos; for some may not the same as a server side MongoTimestamp (ts + increment).  The ts + increment is what I need more control over.  Just a timestamp alone without the increment will not help.&lt;/p&gt;</comment>
                            <comment id="303033" author="eliot" created="Mon, 1 Apr 2013 06:05:01 +0000"  >&lt;p&gt;I think &lt;a href=&quot;https://jira.mongodb.org/browse/SERVER-1650&quot; title=&quot;Server Side Timestamps&quot; class=&quot;issue-link&quot; data-issue-key=&quot;SERVER-1650&quot;&gt;&lt;del&gt;SERVER-1650&lt;/del&gt;&lt;/a&gt; covers this.&lt;br/&gt;
Please comment if you think not, or add a comment there.&lt;/p&gt;</comment>
                    </comments>
                <issuelinks>
                            <issuelinktype id="10010">
                    <name>Duplicate</name>
                                            <outwardlinks description="duplicates">
                                        <issuelink>
            <issuekey id="12861">SERVER-1650</issuekey>
        </issuelink>
                            </outwardlinks>
                                                        </issuelinktype>
                            <issuelinktype id="10012">
                    <name>Related</name>
                                            <outwardlinks description="related to">
                                        <issuelink>
            <issuekey id="12861">SERVER-1650</issuekey>
        </issuelink>
                            </outwardlinks>
                                                        </issuelinktype>
                    </issuelinks>
                <attachments>
                    </attachments>
                <subtasks>
                    </subtasks>
                <customfields>
                                                <customfield id="customfield_10050" key="com.atlassian.jira.toolkit:comments">
                        <customfieldname># Replies</customfieldname>
                        <customfieldvalues>
                            <customfieldvalue>2.0</customfieldvalue>
                        </customfieldvalues>
                    </customfield>
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                <customfield id="customfield_10055" key="com.atlassian.jira.ext.charting:firstresponsedate">
                        <customfieldname>Date of 1st Reply</customfieldname>
                        <customfieldvalues>
                            <customfieldvalue>Mon, 1 Apr 2013 06:05:01 +0000</customfieldvalue>

                        </customfieldvalues>
                    </customfield>
                                                                <customfield id="customfield_10052" key="com.atlassian.jira.toolkit:dayslastcommented">
                        <customfieldname>Days since reply</customfieldname>
                        <customfieldvalues>
                                        10 years, 43 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_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, 43 weeks, 5 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>eliot</customfieldvalue>
            <customfieldvalue>tpneumat</customfieldvalue>
    
                        </customfieldvalues>
                    </customfield>
                                                                                                                                                                                                                                        <customfield id="customfield_14254" key="com.pyxis.greenhopper.jira:gh-lexo-rank">
                        <customfieldname>Product Rank</customfieldname>
                        <customfieldvalues>
                            <customfieldvalue>1|hrn0tz:</customfieldvalue>

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

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

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