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

Add BsonTemplateEvaluator type macros

    XMLWordPrintable

    Details

      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

            • Votes:
              0 Vote for this issue
              Watchers:
              4 Start watching this issue

              Dates

              • Created:
                Updated: