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 68e97af commit 0f1a5ffCopy full SHA for 0f1a5ff
session/database.rst
@@ -532,7 +532,7 @@ performance. Run this from the `MongoDB shell`_:
532
.. code-block:: javascript
533
534
use session_db
535
- db.session.ensureIndex( { "expires_at": 1 }, { expireAfterSeconds: 0 } )
+ db.session.createIndex( { "expires_at": 1 }, { expireAfterSeconds: 0 } )
536
537
Configuring the Session Field Names
538
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
0 commit comments