[ 
https://issues.apache.org/jira/browse/ARTEMIS-1088?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=15952211#comment-15952211
 ] 

clebert suconic commented on ARTEMIS-1088:
------------------------------------------

A lot of paths (especially on AMQP) will perform a queueQuery, which will then 
call queue.getCounter(), then queue.getConsumerCount().

to then waste these to measures.. as it is only interested if the queue Exists 
or not.


getConsumerCount and getMessagecounters are expensive to be calculated 
properties, requiring a sync on the Queue.


we need to remove that by adding some boolean to the call such as (needs 
counters) or add a new method. Somethng that won't do such calculations and 
waste then.

> Waste of queue.getCounter and getConsumers
> ------------------------------------------
>
>                 Key: ARTEMIS-1088
>                 URL: https://issues.apache.org/jira/browse/ARTEMIS-1088
>             Project: ActiveMQ Artemis
>          Issue Type: Bug
>    Affects Versions: 2.0.0
>            Reporter: clebert suconic
>             Fix For: 2.next
>
>




--
This message was sent by Atlassian JIRA
(v6.3.15#6346)

Reply via email to