[ https://issues.apache.org/jira/browse/OAK-7904?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=16752084#comment-16752084 ]
Thomas Mueller commented on OAK-7904: ------------------------------------- http://svn.apache.org/r1852102 (trunk) * For Lucene indexes, the index definition path is used: QUERY_DURATION_/oak:index/nodetypeLucene. * For property indexes, just the name: QUERY_DURATION_nodeType. * For traversing: QUERY_DURATION_traverse is used. * The methods execute() and next() are measured. * To avoid performance issues, sampling is used for fast operations (<= 1 ms). By default, every 256th operation is accounted for, with the time multiplied by 256. (Sampling rate can be changed using the system property "oak.query.timerSampleRate"). * Each slow operations (> 1 ms) is accounted for. * The feature can be disabled by setting the system property "oak.query.timerDisabled". > Exporting query duration per index metrics with Sling Metrics / DropWizard > -------------------------------------------------------------------------- > > Key: OAK-7904 > URL: https://issues.apache.org/jira/browse/OAK-7904 > Project: Jackrabbit Oak > Issue Type: Task > Components: indexing, query > Reporter: Paul Chibulcuteanu > Assignee: Paul Chibulcuteanu > Priority: Major > Fix For: 1.9.10, 1.12 > > Attachments: OAK-7904.0.patch, OAK-7904.1.patch > > > Purpose of this task is to evaluate & create metric which calculates the > average duration of query for each index. > This metric can be later used to evaluate which index(s) need to be optimised. -- This message was sent by Atlassian JIRA (v7.6.3#76005)