nYields in explain

145 views
Skip to first unread message

Vbabiy

unread,
May 4, 2011, 2:01:08 PM5/4/11
to mongod...@googlegroups.com
I know what nYields is, but I am trying to find out more information about what would cause a query to timesplit and cause a nyield? 

Greg Studer

unread,
May 4, 2011, 4:20:05 PM5/4/11
to mongod...@googlegroups.com
It's a bit complex, yields are triggered by a certain number of
documents being traversed or a certain number of ms elapsing (like 10),
and then actual yield time (could be zero) depends on the other cursors
open.

On Wed, 2011-05-04 at 11:01 -0700, Vbabiy wrote:
> I know what nYields is, but I am trying to find out more information
> about what would cause a query to timesplit and cause a nyield?
>

> --
> You received this message because you are subscribed to the Google
> Groups "mongodb-user" group.
> To post to this group, send email to mongod...@googlegroups.com.
> To unsubscribe from this group, send email to mongodb-user
> +unsub...@googlegroups.com.
> For more options, visit this group at
> http://groups.google.com/group/mongodb-user?hl=en.


Vitaly Babiy

unread,
May 4, 2011, 9:04:22 PM5/4/11
to mongod...@googlegroups.com
Does it take all cursor in to algorithm or is it only the cursors that
are working in the same collection? Also is are there any
recommendation to get around this?

Vitaly Babiy

http://howsthe.com
http://twitter.com/howsthedotcom
http://twitter.com/vitaly_babiy

> To unsubscribe from this group, send email to mongodb-user...@googlegroups.com.

Greg Studer

unread,
May 4, 2011, 11:25:11 PM5/4/11
to mongod...@googlegroups.com
It takes into account all waiting clients for the db... but I wouldn't
depend on this behavior in the future -

https://jira.mongodb.org/browse/SERVER-2563

I'm not sure what you mean by "get around this," are you running into a
problem of some kind?

Reply all
Reply to author
Forward
0 new messages