[SERVER-75360] Include $search result count (total hits) in slow query log Created: 27/Mar/23  Updated: 29/Oct/23  Resolved: 10/Apr/23

Status: Closed
Project: Core Server
Component/s: None
Affects Version/s: None
Fix Version/s: 7.0.0-rc0, 6.0.6, 5.0.18

Type: Improvement Priority: Major - P3
Reporter: Alexander Lukyanchikov Assignee: Ted Tuckman
Resolution: Fixed Votes: 0
Labels: None
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified

Issue Links:
Backports
Related
Assigned Teams:
Query Integration
Backwards Compatibility: Fully Compatible
Backport Requested:
v6.0, v5.0
Participants:

 Description   

Today, slow query logs which involve $search queries already include additional search-related information, but we could also benefit from having the returned count from searchMeta:

https://www.mongodb.com/docs/atlas/atlas-search/counting/



 Comments   
Comment by Githook User [ 26/Apr/23 ]

Author:

{'name': 'Ted Tuckman', 'email': 'ted.tuckman@mongodb.com', 'username': 'TedTuckman'}

Message: SERVER-75360 Add number of results from mongot to slow query log line
Branch: v5.0
https://github.com/mongodb/mongo/commit/4bf00530b1c72412f4e76a415af10968e5fa2040

Comment by Githook User [ 19/Apr/23 ]

Author:

{'name': 'Ted Tuckman', 'email': 'ted.tuckman@mongodb.com', 'username': 'TedTuckman'}

Message: SERVER-75360 Add number of results from mongot to slow query log line
Branch: v6.0
https://github.com/mongodb/mongo/commit/26bcd69ff23370a5a31497d8dbc2ae0f65925105

Comment by Githook User [ 10/Apr/23 ]

Author:

{'name': 'Ted Tuckman', 'email': 'ted.tuckman@mongodb.com', 'username': 'TedTuckman'}

Message: SERVER-75360 Add number of results from mongot to slow query log line
Branch: master
https://github.com/mongodb/mongo/commit/65470b718d3aa183ede71411dc4f2b0fe24a97e3

Generated at Thu Feb 08 06:29:59 UTC 2024 using Jira 9.7.1#970001-sha1:2222b88b221c4928ef0de3161136cc90c8356a66.