Skip to content

Commit 55700ef

Browse files
authored
DOCSP-48256 disableJavaScriptJIT deprecation (#11745)
1 parent cf2b0c9 commit 55700ef

File tree

1 file changed

+2
-25
lines changed

1 file changed

+2
-25
lines changed

source/reference/parameters.txt

Lines changed: 2 additions & 25 deletions
Original file line numberDiff line numberDiff line change
@@ -1563,32 +1563,9 @@ General Parameters
15631563

15641564
.. parameter:: disableJavaScriptJIT
15651565

1566-
|mongod-only|
1567-
1568-
The MongoDB JavaScript engine uses SpiderMonkey, which implements
1569-
Just-in-Time (JIT) compilation for improved performance when running scripts.
1570-
1571-
.. include:: /includes/fact-runtime-startup-parameter
1572-
1573-
To enable the JIT, set :parameter:`disableJavaScriptJIT` to ``false``, as in
1574-
the following example:
1575-
1576-
.. code-block:: javascript
1577-
1578-
db.adminCommand( { setParameter: 1, disableJavaScriptJIT: false } )
1579-
1580-
.. note::
1581-
1582-
:query:`$where` will reuse existing JavaScript interpreter
1583-
contexts, so changes to :parameter:`disableJavaScriptJIT` may not
1584-
take effect immediately for these operations.
1585-
1586-
Alternately, you may enable the JIT at startup time by starting the
1587-
:binary:`~bin.mongod` instance with the following option:
1588-
1589-
.. code-block:: bash
1566+
.. important::
15901567

1591-
mongod --setParameter disableJavaScriptJIT=false
1568+
Starting in MongoDB 8.0, this parameter has no effect.
15921569

15931570
.. parameter:: indexBuildMinAvailableDiskSpaceMB
15941571

0 commit comments

Comments
 (0)