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

$mul for update

    XMLWordPrintableJSON

Details

    • Icon: New Feature New Feature
    • Resolution: Done
    • Icon: Minor - P4 Minor - P4
    • 2.5.2
    • None
    • Write Ops
    • None

    Description

      This is useful for age out applications.

      When tagged:
      db.tags.update({_id:foo}, {$inc:1})

      Hourly:
      db.tags.update({}, {$multiply:0.99})

      Attachments

        1. mongodb-multiply.patch
          3 kB
        2. mongodb-multiply-git.patch
          3 kB

        Activity

          People

            andrew.morrow@mongodb.com Andrew Morrow (Inactive)
            mathias@mongodb.com Mathias Stearn
            Votes:
            4 Vote for this issue
            Watchers:
            11 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: