-
Type:
Task
-
Resolution: Duplicate
-
Priority:
Major - P3
-
None
-
Affects Version/s: 2.0.7, 2.2.0
-
Component/s: Querying
-
None
-
None
-
None
-
None
-
None
-
None
-
None
-
None
Queries using dotted notation can create a query key in system.profile which includes a dot (illegal according to: http://www.mongodb.org/display/DOCS/Legal+Key+Names).
Example set up:
db.setProfilingLevel(2);
db.books.insert({protagonist: "Guy Montog", antecedents:
[{title: "The Fireman"}, {title: "Bright Phoenix"}]});
db.books.find({"antecedents.title": "The Fireman"})
Entry in profile collection for the query:
{
"ts" : ISODate("2012-10-14T01:34:07.057Z"),
"op" : "query",
"ns" : "dotted.books",
"query" : {
"antecedents.title" : "The Fireman"
},
"nscanned" : 2,
"nreturned" : 2,
"responseLength" : 286,
"millis" : 0,
"client" : "127.0.0.1",
"user" : ""
}
This makes it difficult to find profile entries for dotted queries.
- duplicates
-
SERVER-6768 MongoDB Profiler creates illegal documents
-
- Closed
-