File tree Expand file tree Collapse file tree 1 file changed +7
-6
lines changed
content/manual/upcoming/source/reference Expand file tree Collapse file tree 1 file changed +7
-6
lines changed Original file line number Diff line number Diff line change @@ -1379,18 +1379,19 @@ General Parameters
1379
1379
1380
1380
|mongod-only|
1381
1381
1382
- Specify whether **all** queries must use indexes. If ``1``, MongoDB
1383
- will not execute queries that require a collection scan and will return an
1384
- error.
1382
+ Prevents running some collection scans when an index could be used, whether
1383
+ present or not. If ``true``, MongoDB will not execute queries that require
1384
+ a collection scan and will return an error. Exclusions include queries
1385
+ without filters and queries against capped collections, such as the oplog.
1385
1386
1386
- Consider the following example which sets :parameter:`notablescan` to ``1 ``
1387
+ Consider the following example which sets :parameter:`notablescan` to ``true ``
1387
1388
or true:
1388
1389
1389
1390
.. code-block:: javascript
1390
1391
1391
- db.adminCommand( { setParameter: 1, notablescan: 1 } )
1392
+ db.adminCommand( { setParameter: 1, notablescan: true } )
1392
1393
1393
- Setting :parameter:`notablescan` to ``1 `` can be useful for testing
1394
+ Setting :parameter:`notablescan` to ``true `` can be useful for testing
1394
1395
application queries, for example, to identify queries that scan an
1395
1396
entire collection and cannot use an index.
1396
1397
You can’t perform that action at this time.
0 commit comments