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

Add BsonTemplateEvaluator type macros

    XMLWordPrintableJSON

Details

    • Icon: Task Task
    • Resolution: Won't Fix
    • Icon: Minor - P4 Minor - P4
    • None
    • None
    • Performance
    • Server Tooling & Methods

    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

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

            Dates

              Created:
              Updated:
              Resolved: