Uploaded image for project: 'Core Server'
  1. Core Server
  2. SERVER-59714

Include number of calls to mongot in slow query log

    • Type: Icon: Improvement Improvement
    • Resolution: Fixed
    • Priority: Icon: Major - P3 Major - P3
    • 5.2.0
    • Affects Version/s: None
    • Component/s: None
    • Labels:
      None
    • Fully Compatible
    • QO 2021-10-18

      Slow query log for $search queries and getMores includes this section today:

      “mongot”: {
      “cursorid”: 22318,
      “timeWaitingMillis”: 36365
      } 

      I suggest we include the number of getMores calls to mongot performed. For long running queries with a blocking stage such as $group and $sort, this will be very useful for debugging purposes. 

      This will be incredibly important if we ever pushdown $limit to mongot, and when mongot will be returning variable batch sizes.

       

            Assignee:
            ted.tuckman@mongodb.com Ted Tuckman
            Reporter:
            oren.ovadia@mongodb.com Oren Ovadia
            Votes:
            0 Vote for this issue
            Watchers:
            5 Start watching this issue

              Created:
              Updated:
              Resolved: