-
Type:
Improvement
-
Resolution: Unresolved
-
Priority:
Major - P3
-
None
-
Affects Version/s: None
-
Component/s: None
-
Query Integration
-
None
-
None
-
None
-
None
-
None
-
None
-
None
To avoid recording queries with encrypted fields, we check
`getEncryptionInformation()` before registering a request in query stats:
- find: https://github.com/mongodb/mongo/blob/63ddb00dff570d5d9519c5f3750624c4b660b4f8/src/mongo/db/commands/query_cmd/find_cmd.cpp#L219-L231
- aggregate: https://github.com/mongodb/mongo/blob/63ddb00dff570d5d9519c5f3750624c4b660b4f8/src/mongo/db/commands/query_cmd/run_aggregate.cpp#L975-L996
But in the registerRequest(), we also check `isFLE2StateCollection`
We should investigate if the check on getEncryptionInformation() is still necessary. If not, we can remove the checks in find/agg/update commands.