File tree Expand file tree Collapse file tree 3 files changed +21
-18
lines changed Expand file tree Collapse file tree 3 files changed +21
-18
lines changed Original file line number Diff line number Diff line change @@ -1360,18 +1360,19 @@ General Parameters
1360
1360
1361
1361
|mongod-only|
1362
1362
1363
- Specify whether **all** queries must use indexes. If ``1``, MongoDB
1364
- will not execute queries that require a collection scan and will return an
1365
- error.
1363
+ Prevents running some collection scans when an index could be used, whether
1364
+ present or not. If ``true``, MongoDB will not execute queries that require
1365
+ a collection scan and will return an error. Exclusions include queries
1366
+ without filters and queries against capped collections, such as the oplog.
1366
1367
1367
- Consider the following example which sets :parameter:`notablescan` to ``1 ``
1368
+ Consider the following example which sets :parameter:`notablescan` to ``true ``
1368
1369
or true:
1369
1370
1370
1371
.. code-block:: javascript
1371
1372
1372
- db.adminCommand( { setParameter: 1, notablescan: 1 } )
1373
+ db.adminCommand( { setParameter: 1, notablescan: true } )
1373
1374
1374
- Setting :parameter:`notablescan` to ``1 `` can be useful for testing
1375
+ Setting :parameter:`notablescan` to ``true `` can be useful for testing
1375
1376
application queries, for example, to identify queries that scan an
1376
1377
entire collection and cannot use an index.
1377
1378
Original file line number Diff line number Diff line change @@ -1218,18 +1218,19 @@ General Parameters
1218
1218
1219
1219
|mongod-only|
1220
1220
1221
- Specify whether **all** queries must use indexes. If ``1``, MongoDB
1222
- will not execute queries that require a collection scan and will return an
1223
- error.
1221
+ Prevents running some collection scans when an index could be used, whether
1222
+ present or not. If ``true``, MongoDB will not execute queries that require
1223
+ a collection scan and will return an error. Exclusions include queries
1224
+ without filters and queries against capped collections, such as the oplog.
1224
1225
1225
- Consider the following example which sets :parameter:`notablescan` to ``1 ``
1226
+ Consider the following example which sets :parameter:`notablescan` to ``true ``
1226
1227
or true:
1227
1228
1228
1229
.. code-block:: javascript
1229
1230
1230
- db.adminCommand( { setParameter: 1, notablescan: 1 } )
1231
+ db.adminCommand( { setParameter: 1, notablescan: true } )
1231
1232
1232
- Setting :parameter:`notablescan` to ``1 `` can be useful for testing
1233
+ Setting :parameter:`notablescan` to ``true `` can be useful for testing
1233
1234
application queries, for example, to identify queries that scan an
1234
1235
entire collection and cannot use an index.
1235
1236
Original file line number Diff line number Diff line change @@ -1311,18 +1311,19 @@ General Parameters
1311
1311
1312
1312
|mongod-only|
1313
1313
1314
- Specify whether **all** queries must use indexes. If ``1``, MongoDB
1315
- will not execute queries that require a collection scan and will return an
1316
- error.
1314
+ Prevents running some collection scans when an index could be used, whether
1315
+ present or not. If ``true``, MongoDB will not execute queries that require
1316
+ a collection scan and will return an error. Exclusions include queries
1317
+ without filters and queries against capped collections, such as the oplog.
1317
1318
1318
- Consider the following example which sets :parameter:`notablescan` to ``1 ``
1319
+ Consider the following example which sets :parameter:`notablescan` to ``true ``
1319
1320
or true:
1320
1321
1321
1322
.. code-block:: javascript
1322
1323
1323
- db.adminCommand( { setParameter: 1, notablescan: 1 } )
1324
+ db.adminCommand( { setParameter: 1, notablescan: true } )
1324
1325
1325
- Setting :parameter:`notablescan` to ``1 `` can be useful for testing
1326
+ Setting :parameter:`notablescan` to ``true `` can be useful for testing
1326
1327
application queries, for example, to identify queries that scan an
1327
1328
entire collection and cannot use an index.
1328
1329
You can’t perform that action at this time.
0 commit comments