-
Type:
Task
-
Resolution: Fixed
-
Priority:
Major - P3
-
Affects Version/s: None
-
Component/s: None
-
None
-
Query Integration
-
Fully Compatible
-
None
-
None
-
None
-
None
-
None
-
None
-
None
Implement query shape and query stats store key for the insert command, following the same pattern as update (UpdateCmdShape + UpdateKey).
Scope
InsertCmdShape (src/mongo/db/query/query_shape/insert_cmd_shape.h/.cpp)
- insert (collection name): included as-is
- documents: shapified as placeholder ?array<?object>
- All other fields: excluded
InsertKey (src/mongo/db/query/query_stats/insert_key.h/.cpp)
- ordered: kept as-is
- maxTimeMS: abstracted
- writeConcern: kept as-is
- bypassDocumentValidation: kept as-is
- comment: abstracted
Integration (write_ops_exec.cpp)
- Call query_stats::registerWriteRequest() at the insert execution site
- Guard with featureFlagQueryStatsInsert
Bazel
- Wire new targets into build files