Uploaded image for project: 'Core Server'
  1. Core Server
  2. SERVER-2064

$sysdate for inserts/updates

    • Type: Icon: New Feature New Feature
    • Resolution: Duplicate
    • Priority: Icon: Minor - P4 Minor - P4
    • None
    • Affects Version/s: None
    • Component/s: Usability
    • None
    • Environment:
      all

      I would like to ask for the following feature:

      on inserts/updates I would like to have a "placeholder" like "$sysdate" as argument, telling the database engine to replace the "$sysdate-placeholder" by the current database UTC before putting it in the internal mongodb queue.

      e.g.: db.coll.insert(

      {"tx":"test string","timestamp":$sysdate}

      )

      The advantage would be that one can be sure that sorting by the timestamp of the document field results in the 100% sortorder of insertion; if I insert data from different machines, I have no guarantee about the insertion sortorder in the internal queue of MongoDB for persisting ( depending on the application delay for "getting the data and pushing it to mongodb" ).

      Thank you for taking this into consideration,ยด

            Assignee:
            Unassigned Unassigned
            Reporter:
            chr1st0ph Christoph Preissner
            Votes:
            4 Vote for this issue
            Watchers:
            10 Start watching this issue

              Created:
              Updated:
              Resolved: