[SERVER-13499] Yield policy for batch-inserts should be the same as for batch-updates/deletes Created: 06/Apr/14 Updated: 11/Jul/16 Resolved: 16/Apr/14 |
|
| Status: | Closed |
| Project: | Core Server |
| Component/s: | Write Ops |
| Affects Version/s: | 2.6.0-rc3 |
| Fix Version/s: | 2.6.1, 2.7.0 |
| Type: | Bug | Priority: | Major - P3 |
| Reporter: | Alvin Richards (Inactive) | Assignee: | Eric Milkie |
| Resolution: | Done | Votes: | 0 |
| Labels: | 26qa | ||
| Remaining Estimate: | Not Specified | ||
| Time Spent: | Not Specified | ||
| Original Estimate: | Not Specified | ||
| Issue Links: |
|
||||
| Operating System: | ALL | ||||
| Backport Completed: | |||||
| Participants: | |||||
| Description |
| Comments |
| Comment by Githook User [ 09/Apr/14 ] |
|
Author: {u'username': u'milkie', u'name': u'Eric Milkie', u'email': u'milkie@10gen.com'}Message: (cherry picked from commit 68d42de9a958688acbf659dfb651fb699e9d7394) Conflicts: |
| Comment by Githook User [ 09/Apr/14 ] |
|
Author: {u'username': u'milkie', u'name': u'Eric Milkie', u'email': u'milkie@10gen.com'}Message: |
| Comment by Eric Milkie [ 07/Apr/14 ] |
|
This will be easy to fix; I'll just make it use the same elapsedTracker that the runner yield policy uses. It waits for 127 hits or 10ms to pass before calling suggestYieldMicros(), which is a terribly inefficient function, particularly if you have lots of outstanding connections (even if they are idle). |