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

Include arbitrary mongot metadata in slow query log for $search and $vectorSearch

    XMLWordPrintableJSON

Details

    • Icon: Improvement Improvement
    • Resolution: Unresolved
    • Icon: Major - P3 Major - P3
    • None
    • None
    • None
    • Query Integration

    Description

      When `mongot` cursor metadata contains a `slowQueryLog` field, this information should be integrated into the slow query log `mongot` section. This data would be unstructured (likely just a bson document) so that the search team can add to it without requiring the query team team to write explicit processing code that needs to be backported to other versions.

      On the search side the first planned use is to pass back `metadata.count.lowerBound` and `metadata.count.total` information about doc matches as this strongly correlated with high latency – it is similar to mongod's `examined`.

       

      CC: trevor.mcculloch@mongodb.com , ted.tuckman@mongodb.com 

      Attachments

        Activity

          People

            vamsy.annabattula@mongodb.com Vamsy Annabattula
            oren.ovadia@mongodb.com Oren Ovadia
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

            Dates

              Created:
              Updated: