-
Type: Task
-
Resolution: Won't Fix
-
Priority: 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.