About query plan implementation

36 views
Skip to first unread message

杨江华

unread,
Mar 7, 2017, 9:32:54 PM3/7/17
to mongodb-dev
How to achieve concurrency pick the best plan?

 // Work the plans, stopping when a plan hits EOF or returns some
    // fixed number of results.
    for (size_t ix = 0; ix < numWorks; ++ix) {
        bool moreToDo = workAllPlans(numResults, yieldPolicy);
        if (!moreToDo) {
            break;
        }
    }  

  Is workAllPlans start a new routine ? Looking forward to your reply.

 

杨江华

unread,
Mar 9, 2017, 10:37:30 PM3/9/17
to mongodb-dev
anyone can help?

在 2017年3月8日星期三 UTC+8上午10:32:54,杨江华写道:
Reply all
Reply to author
Forward
0 new messages