activemq-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Hiram Chirino" <>
Subject Re: performance of message selectors
Date Wed, 02 Aug 2006 17:41:40 GMT
Unfortunately.. right now, I don't think we can do anything to improve
your use case.  If you feel like doing some hacking on ActiveMQ, you
could potentially implement a solution where some selector expressions
are optimized by maintaining indexes.


On 8/2/06, Jamie McCrindle <> wrote:
> hi all,
> first off, i realise that my usage pattern cuts against the grain but
> here's the scenario nonetheless:
> i have a queue of messages with an "id" message property (not to
> confused with JMSMessageID) and i regularly need to pull a particular
> message (with a particular "id") off of that queue. i do that by
> creating a message consumer that has a selector something like "id =
> '" + someid + "'".
> performance is quite poor as the queue gets larger.
> in the future, i'll put those messages into a table with an index
> against id but for now i was wondering if there is any tuning i can
> apply to get it to go faster. i've read
> and only setting the prefetch size to 1 seems applicable.
> cheers,
> j.
> ps. anyone else using message selectors like this?



View raw message