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

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

    • Type: Icon: Improvement Improvement
    • Resolution: Fixed
    • Priority: Icon: Major - P3 Major - P3
    • 8.0.0-rc0
    • Affects Version/s: None
    • Component/s: None
    • Query Integration
    • Fully Compatible

      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 

            Assignee:
            vamsy.annabattula@mongodb.com Vamsy Annabattula (Inactive)
            Reporter:
            oren.ovadia@mongodb.com Oren Ovadia
            Votes:
            0 Vote for this issue
            Watchers:
            5 Start watching this issue

              Created:
              Updated:
              Resolved: