[SERVER-23259] Report planSummary in per-operation diagnostic log message and profiler for all relevant ops/commands Created: 21/Mar/16 Updated: 13/Oct/18 Resolved: 02/May/16 |
|
| Status: | Closed |
| Project: | Core Server |
| Component/s: | Diagnostics, Querying |
| Affects Version/s: | 3.3.3 |
| Fix Version/s: | 3.3.6 |
| Type: | Improvement | Priority: | Major - P3 |
| Reporter: | James Wahlin | Assignee: | James Wahlin |
| Resolution: | Done | Votes: | 0 |
| Labels: | None | ||
| Remaining Estimate: | Not Specified | ||
| Time Spent: | Not Specified | ||
| Original Estimate: | Not Specified | ||
| Attachments: |
|
||||||||||||||||||||||||||||||||
| Issue Links: |
|
||||||||||||||||||||||||||||||||
| Backwards Compatibility: | Minor Change | ||||||||||||||||||||||||||||||||
| Backport Requested: |
v3.2
|
||||||||||||||||||||||||||||||||
| Sprint: | Query 14 (05/13/16) | ||||||||||||||||||||||||||||||||
| Participants: | |||||||||||||||||||||||||||||||||
| Linked BF Score: | 0 | ||||||||||||||||||||||||||||||||
| Description |
|
Ops/commands that are missing this information:
Additional notes:
|
| Comments |
| Comment by James Wahlin [ 02/May/16 ] |
|
No documentation changes needed as planSummary is already documented for currentOp: https://docs.mongodb.org/manual/reference/method/db.currentOp/#currentOp.planSummary |
| Comment by James Wahlin [ 02/May/16 ] |
|
Attaching flame graph that shows perf output at commit 66c992d under the following process:
As per this chart, cost for a fast operation (in-memory find with exact index match) is roughly 1.5%. It will be less for more expensive operations. We are not going to make performance improvements under this ticket but will review overall performance at the end of the 3.3 development cycle. If we were to optimize planSummary generation it could be done via:
|
| Comment by James Wahlin [ 26/Apr/16 ] |
|
Changes committed for this ticket. Work remaining is to profile and address any significant regressions if found. |
| Comment by Githook User [ 26/Apr/16 ] |
|
Author: {u'username': u'jameswahlin', u'name': u'James Wahlin', u'email': u'james.wahlin@10gen.com'}Message: |