We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 3190775 commit 1d95258Copy full SHA for 1d95258
components/lock.rst
@@ -768,7 +768,7 @@ Such an index can be created manually:
768
769
.. code-block:: javascript
770
771
- db.lock.ensureIndex(
+ db.lock.createIndex(
772
{ "expires_at": 1 },
773
{ "expireAfterSeconds": 0 }
774
)
session/database.rst
@@ -549,7 +549,7 @@ performance. Run this from the `MongoDB shell`_:
549
550
551
use session_db
552
- db.session.ensureIndex( { "expires_at": 1 }, { expireAfterSeconds: 0 } )
+ db.session.createIndex( { "expires_at": 1 }, { expireAfterSeconds: 0 } )
553
554
Configuring the Session Field Names
555
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
0 commit comments