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

Feature-Req: index-based constraints and field "mutators"

    • Type: Icon: New Feature New Feature
    • Resolution: Won't Fix
    • Priority: Icon: Minor - P4 Minor - P4
    • None
    • Affects Version/s: None
    • Component/s: Index Maintenance
    • None

      In addition to the much needed unique constraint, various other index-based constraints and "mutators" (for the lack of a better term) would be helpful.

      Ideas for Constraints:

      unique == field on inserted element must be unique
      gt == field on inserted element must be greater than current MAX_VALUE
      lt == field on inserted element must be smaller than current MIN_VALUE

      "Mutators" would be things like:

      auto_increment == field on inserted element auto increments to MAX_VALUE+1
      trigger == provided javascript is executed on this field of all inserted elements

      Feel free to edit this text if there's a better, established term for what I called "mutators" here.

            Assignee:
            david.storch@mongodb.com David Storch
            Reporter:
            raz Jim Jones
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

              Created:
              Updated:
              Resolved: