[DOCS-5125] Incorrect syntax on: "manual/reference/operator/meta/maxTimeMS.txt" Created: 29/Mar/15  Updated: 30/Oct/23  Resolved: 30/Mar/15

Status: Closed
Project: Documentation
Component/s: manual
Affects Version/s: None
Fix Version/s: Server_Docs_20231030

Type: Bug Priority: Major - P3
Reporter: Jonathan Anderson Assignee: Michael Paik
Resolution: Done Votes: 0
Labels: collector-298ba4e7
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified
Environment:

Ubuntu 14.04, MongoDB 2.6.9

Location: http://docs.mongodb.org/manual/reference/operator/meta/maxTimeMS/
User-Agent: Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/41.0.2272.101 Safari/537.36
Referrer: http://docs.mongodb.org/manual/reference/operator/meta/maxScan/
Screen Resolution: 1920 x 1080
repo: docs
source: reference/operator/meta/maxTimeMS


Participants:
Days since reply: 8 years, 46 weeks, 2 days ago

 Description   

The syntax given for maxTimeMS is incorrect and results in a query with an unlikely projection.

db.collection.find( { } ,

{ $maxTimeMS: 100 }

)

should be

db.collection.find( { $query: { }, $maxTimeMS: 100 } )

Reporter: Jon Anderson
E-mail: squiggs.jonny5@gmail.com



 Comments   
Comment by Kay Kim (Inactive) [ 30/Mar/15 ]

Fixed by Jon Anderson

Comment by Githook User [ 30/Mar/15 ]

Author:

{u'username': u'NoOutlet', u'name': u'Jon Anderson', u'email': u'squiggs.jonny5@gmail.com'}

Message: DOCS-5125 Fix syntax for maxTimeMS

Description of maxTimeMS included an alternative to the
shortcut which used incorrect syntax. The incorrect command
did not limit the time for retrieving results and instead
created a inclusive projection on a field named '$maxTimeMS'
which would hopefully not be an actual field in the user
database.

Signed-off-by: kay <kay.kim@10gen.com>
Branch: master
https://github.com/mongodb/docs/commit/38957d7146875d525d8a2d2bce1c57c0ded3d4e0

Comment by Githook User [ 30/Mar/15 ]

Author:

{u'username': u'NoOutlet', u'name': u'Jon Anderson', u'email': u'squiggs.jonny5@gmail.com'}

Message: DOCS-5125 Fix syntax for maxTimeMS

Description of maxTimeMS included an alternative to the
shortcut which used incorrect syntax. The incorrect command
did not limit the time for retrieving results and instead
created a inclusive projection on a field named '$maxTimeMS'
which would hopefully not be an actual field in the user
database.

Signed-off-by: kay <kay.kim@10gen.com>
Branch: v2.6
https://github.com/mongodb/docs/commit/8a1578b13ac86ae55b3f087860bde909a9eb123c

Generated at Thu Feb 08 07:49:40 UTC 2024 using Jira 9.7.1#970001-sha1:2222b88b221c4928ef0de3161136cc90c8356a66.