You are viewing a plain text version of this content. The canonical link for it is here.
Posted to notifications@couchdb.apache.org by GitBox <gi...@apache.org> on 2020/01/05 20:05:20 UTC

[GitHub] [couchdb] willholley commented on issue #1913: Add Metric to count unindexed mango queries

willholley commented on issue #1913: Add Metric to count unindexed mango queries
URL: https://github.com/apache/couchdb/issues/1913#issuecomment-570942768
 
 
   @janl if that's the requirement, I think it would be a better signal to highlight queries with a high ratio between docs examined and results returned, implying the index isn't narrowing the result set enough. We actually have a warning in (Fauxton)[https://github.com/apache/couchdb-fauxton/blob/4ae5bfb2d9ac571543da646b07e14a3e9623a510/app/addons/documents/mango/components/ExecutionStats.js#L44] when this ratio is 10:1 but it should really be a server-generated warning instead, with a corresponding metric. 
   
   Similarly, we [already capture](https://github.com/apache/couchdb/blob/5ef18802cb82169843bd32edee838d4302d0dd97/src/mango/src/mango_execution_stats.erl#L85) the number of docs examined and number of results returned for each query so could add metrics for those. I can look at it this week if there's agreement it would be useful.

----------------------------------------------------------------
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.
 
For queries about this service, please contact Infrastructure at:
users@infra.apache.org


With regards,
Apache Git Services