Return-Path: X-Original-To: apmail-activemq-users-archive@www.apache.org Delivered-To: apmail-activemq-users-archive@www.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id A6217EAC5 for ; Mon, 25 Feb 2013 12:22:03 +0000 (UTC) Received: (qmail 68711 invoked by uid 500); 25 Feb 2013 12:22:03 -0000 Delivered-To: apmail-activemq-users-archive@activemq.apache.org Received: (qmail 68507 invoked by uid 500); 25 Feb 2013 12:22:02 -0000 Mailing-List: contact users-help@activemq.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: users@activemq.apache.org Delivered-To: mailing list users@activemq.apache.org Received: (qmail 68483 invoked by uid 99); 25 Feb 2013 12:22:01 -0000 Received: from nike.apache.org (HELO nike.apache.org) (192.87.106.230) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 25 Feb 2013 12:22:01 +0000 X-ASF-Spam-Status: No, hits=2.5 required=5.0 tests=FREEMAIL_REPLY,HTML_MESSAGE,RCVD_IN_DNSWL_LOW,SPF_PASS X-Spam-Check-By: apache.org Received-SPF: pass (nike.apache.org: domain of gary.tully@gmail.com designates 209.85.210.178 as permitted sender) Received: from [209.85.210.178] (HELO mail-ia0-f178.google.com) (209.85.210.178) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 25 Feb 2013 12:21:54 +0000 Received: by mail-ia0-f178.google.com with SMTP id y26so2332869iab.23 for ; Mon, 25 Feb 2013 04:21:33 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:x-received:in-reply-to:references:date:message-id :subject:from:to:content-type; bh=HVbqLCzrQmLy8AneIPiUUVfmygAtBq54L9Gt9JXXaEM=; b=DlbfAIIlg32ZQYynuGRgyumwrJUnmP8bAchRxMxlq1LCsahNL9ZjVfnw3Uf0fbtmI8 T1uniCEz3SBlh7+VyT3QJm8825REGoBug63NVbeB2FsY/0Y/NjUHvRb4e4vwU8Viwdi5 jFHExg0dYXuSulWqipN1qFXQJCCv5r6MrD2usOkwKUbbCLaDRG53dcB0clX4h6bhwLWq DbiuQ0/p3PuyLTxcTtolWvt+/WWL9wYuTJ1Y5Ug8SCuqPZbpUIq1Gv8vllOKjk8gfjBj ndkGe0YEN+oV2Gib1ttZ9FAhSc5mKGctBoOKE98f0ZqSSWM2DY7i7v+N/Bt1OrwDqON4 OmwQ== MIME-Version: 1.0 X-Received: by 10.50.191.228 with SMTP id hb4mr3239714igc.37.1361794893196; Mon, 25 Feb 2013 04:21:33 -0800 (PST) Received: by 10.64.23.198 with HTTP; Mon, 25 Feb 2013 04:21:33 -0800 (PST) In-Reply-To: <1360765228697-4663327.post@n4.nabble.com> References: <1351602826261-4658449.post@n4.nabble.com> <1360765228697-4663327.post@n4.nabble.com> Date: Mon, 25 Feb 2013 12:21:33 +0000 Message-ID: Subject: Re: Reorder of messages From: Gary Tully To: "users@activemq.apache.org" Content-Type: multipart/alternative; boundary=bcaec5396512ddb78a04d68b9411 X-Virus-Checked: Checked by ClamAV on apache.org --bcaec5396512ddb78a04d68b9411 Content-Type: text/plain; charset=ISO-8859-1 On 13 February 2013 14:20, dannygallagher2@gmail.com < dannygallagher2@gmail.com> wrote: > .. > One question about priority messages: > When a message is consumed by priority, isn't that really the same as using > a selector? > ActiveMQ must be looking at everything in the queue, just like a selector > would. Correct? > The difference between priority and selectors is that the index is in priority order, there is a view of all messages from the index. In kahaDb we effectively keep 3 indices. (low, med, hi) selectos need to be run on the entire message so the message needs to be in memory, hence the pageSize and limitations. For the jdbc store, the DB does the work on the messages table (we index with priority and message id), thus the full 0-9 range of priority is easily supported. -- http://redhat.com http://blog.garytully.com --bcaec5396512ddb78a04d68b9411--