$mul for update

XMLWordPrintableJSON

    • Type: New Feature
    • Resolution: Done
    • Priority: Minor - P4
    • 2.5.2
    • Affects Version/s: None
    • Component/s: Write Ops
    • None
    • None
    • 3
    • None
    • None
    • None
    • None
    • None
    • None
    • None

      This is useful for age out applications.

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

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

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

              Assignee:
              Andrew Morrow (Inactive)
              Reporter:
              Mathias Stearn
              Votes:
              4 Vote for this issue
              Watchers:
              11 Start watching this issue

                Created:
                Updated:
                Resolved: