MongoDB FindAndModify Sorting MongoDB FindAndModify Sorting mongodb mongodb

MongoDB FindAndModify Sorting


For those interested -- I had to create a separate index ending with the key that the set is to be sorted by.


That warning is thrown when an operation that wants to yield (such as long updates, removes, etc.) cannot do so because it cannot release the lock it's holding for whatever reason.

Do you have the field you're sorting on indexed? If not adding an index for that will probably remove the warnings.