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

Add BsonTemplateEvaluator type macros

    • Type: Icon: Task Task
    • Resolution: Won't Fix
    • Priority: Icon: Minor - P4 Minor - P4
    • None
    • Affects Version/s: None
    • Component/s: Performance
    • Server Tooling & Methods

      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.

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

              Created:
              Updated:
              Resolved: