jainankitk opened a new issue, #14375:
URL: https://github.com/apache/lucene/issues/14375

   ### Description
   
   Based on the discussion from [this email 
thread](https://lists.apache.org/thread.html/r7957a2d9ca38af45b1c370753b3c10542fd9faaf9bf95944c5224e12%40%3Cdev.lucene.apache.org%3E),
 https://github.com/apache/lucene/pull/144 added logic for compiling timings 
for different pieces of a query or multiple queries. The profiler logic doesn't 
account for multiple slices of concurrent segment search.
   
   We recently introduced 
[ConcurrentQueryProfiler](https://github.com/opensearch-project/OpenSearch/blob/main/server/src/main/java/org/opensearch/search/profile/query/ConcurrentQueryProfiler.java)
 . It tries to merge the information across multiple slices into avg, min, max 
for each count/time metric, but the output is rather verbose (pasted at the 
end). I am wondering if this is something Lucene will benefit from? 
   
   ```
   "query":
                           [
                               {
                                   "type": "TermQuery",
                                   "description": "field1:one",
                                   "time_in_nanos": 3944209,
                                   "max_slice_time_in_nanos": 3944209,
                                   "min_slice_time_in_nanos": 3892625,
                                   "avg_slice_time_in_nanos": 3918417,
                                   "breakdown":
                                   {
                                       "max_match": 0,
                                       "set_min_competitive_score_count": 0,
                                       "match_count": 0,
                                       "avg_score_count": 4,
                                       "shallow_advance_count": 0,
                                       "next_doc": 50625,
                                       "min_build_scorer": 1327791,
                                       "score_count": 8,
                                       "compute_max_score_count": 0,
                                       "advance": 96583,
                                       "min_set_min_competitive_score": 0,
                                       "min_advance": 4042,
                                       "score": 96751,
                                       "avg_set_min_competitive_score_count": 0,
                                       "min_match_count": 0,
                                       "avg_score": 65438,
                                       "max_next_doc_count": 7,
                                       "max_compute_max_score_count": 0,
                                       "avg_shallow_advance": 0,
                                       "max_shallow_advance_count": 0,
                                       "set_min_competitive_score": 0,
                                       "min_build_scorer_count": 2,
                                       "next_doc_count": 8,
                                       "min_match": 0,
                                       "avg_next_doc": 26250,
                                       "compute_max_score": 0,
                                       "min_set_min_competitive_score_count": 0,
                                       "max_build_scorer": 1722750,
                                       "avg_match_count": 0,
                                       "avg_advance": 50125,
                                       "build_scorer_count": 6,
                                       "avg_build_scorer_count": 3,
                                       "min_next_doc_count": 1,
                                       "min_shallow_advance_count": 0,
                                       "max_score_count": 7,
                                       "avg_match": 0,
                                       "avg_compute_max_score": 0,
                                       "max_advance": 96208,
                                       "avg_shallow_advance_count": 0,
                                       "avg_set_min_competitive_score": 0,
                                       "avg_compute_max_score_count": 0,
                                       "avg_build_scorer": 1525270,
                                       "max_set_min_competitive_score_count": 0,
                                       "advance_count": 3,
                                       "max_build_scorer_count": 4,
                                       "shallow_advance": 0,
                                       "min_compute_max_score": 0,
                                       "max_match_count": 0,
                                       "create_weight_count": 1,
                                       "build_scorer": 1830250,
                                       "max_set_min_competitive_score": 0,
                                       "max_compute_max_score": 0,
                                       "min_shallow_advance": 0,
                                       "match": 0,
                                       "max_shallow_advance": 0,
                                       "avg_advance_count": 1,
                                       "min_next_doc": 1875,
                                       "max_advance_count": 2,
                                       "min_score": 34209,
                                       "max_next_doc": 50625,
                                       "create_weight": 472375,
                                       "avg_next_doc_count": 4,
                                       "max_score": 96667,
                                       "min_compute_max_score_count": 0,
                                       "min_score_count": 1,
                                       "min_advance_count": 1
                                   }
                               }
                           ]
   ```


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: issues-unsubscr...@lucene.apache.org.apache.org

For queries about this service, please contact Infrastructure at:
us...@infra.apache.org


---------------------------------------------------------------------
To unsubscribe, e-mail: issues-unsubscr...@lucene.apache.org
For additional commands, e-mail: issues-h...@lucene.apache.org

Reply via email to