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

Add BsonTemplateEvaluator type macros

    XMLWordPrintable

    Details

    • Type: Task
    • Status: Closed
    • Priority: Minor - P4
    • Resolution: Won't Fix
    • Affects Version/s: None
    • Fix Version/s: None
    • Component/s: Performance

      Description

      Currently in BsonTemplateEvaluator there's no method to run a mongo-perf 'op' with a specific type (i.e. NumberInt). Adding a #NUMBER_INT macro to the BsonTemplateEvaluator code would allow something like the following:

      op: "update",
      multi: true,
      query: {},
      update: {
         $inc: {a: { "#NUMBER_INT": 1 } }
      }
      

      If we add #NUMBER_INT, we should also add #NUMBER_LONG, #NUMBER_DOUBLE, and #NUMBER_DECIMAL.

      Although doubles are inserted automatically, in order to ensure performance between types has the same behavior, a #NUMBER_DOUBLE macro should be added.

        Attachments

          Activity

            People

            Assignee:
            backlog-server-stm Backlog - Server Tooling and Methods (STM)
            Reporter:
            raymond.jacobson Raymond Jacobson
            Participants:
            Votes:
            0 Vote for this issue
            Watchers:
            4 Start watching this issue

              Dates

              Created:
              Updated:
              Resolved: