ODBC Driver for MongoDB

Build 25.0.9434

NoCursorTimeout

The server typically terminates idle cursors after 30 minutes of inactivity to prevent excessive memory usage. Set this option to true to avoid automatic timeouts and keep your cursors active.

Data Type

bool

Default Value

false

Remarks

By default, the MongoDB server automatically closes idle cursors associated with the session after 30 minutes of inactivity to free up resources. The session refreshes with each new document batch request. If processing takes longer than 30 minutes, the session can expire and close. When NoCursorTimeout is set to true, the cursor can not time out due to inactivity. It remains open until it is explicitly closed by the application or the cursor has exhausted all results.

This property is useful in controlling whether a cursor automatically times out after a period of inactivity.

Copyright (c) 2025 CData Software, Inc. - All rights reserved.
Build 25.0.9434