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.
2 parents 96f2733 + dad83ee commit 9d142d4Copy full SHA for 9d142d4
session/database.rst
@@ -549,7 +549,7 @@ performance. Run this from the `MongoDB shell`_:
549
.. code-block:: javascript
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