pinned cursor

128 views
Skip to first unread message

fp...@popsugar.com

unread,
Feb 13, 2016, 12:36:52 AM2/13/16
to mongodb-user
Hi, not sure if this is the right place to post
but what is a pinned cursor?
what behaviour can produce a pinned cursor?
Thanks!

Stephen Steneker

unread,
Feb 15, 2016, 4:02:27 PM2/15/16
to mongodb-user

Hi,

A pinned cursor is an internal implementation detail; the pinned flag denotes an open cursor that is actively in use and should not be deleted. Cursors are generally pinned for a short period of time. For example, a find or getMore operation will pin a cursor to prevent it from being deleted while fetching a next batch of results, and unpin the cursor when results are returned.

Do you have a specific question or concern on pinned cursors for your deployment, or are you just curious what this metric indicates?

Regards,
Stephen

Reply all
Reply to author
Forward
0 new messages