$sysdate for inserts/updates

XMLWordPrintableJSON

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

      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
            Reporter:
            Christoph Preissner
            Votes:
            4 Vote for this issue
            Watchers:
            10 Start watching this issue

              Created:
              Updated:
              Resolved: