Return-Path: X-Original-To: apmail-cassandra-commits-archive@www.apache.org Delivered-To: apmail-cassandra-commits-archive@www.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id 4DC3196BD for ; Fri, 27 Jan 2012 14:36:39 +0000 (UTC) Received: (qmail 64041 invoked by uid 500); 27 Jan 2012 14:36:39 -0000 Delivered-To: apmail-cassandra-commits-archive@cassandra.apache.org Received: (qmail 63875 invoked by uid 500); 27 Jan 2012 14:36:38 -0000 Mailing-List: contact commits-help@cassandra.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: dev@cassandra.apache.org Delivered-To: mailing list commits@cassandra.apache.org Received: (qmail 63862 invoked by uid 99); 27 Jan 2012 14:36:38 -0000 Received: from nike.apache.org (HELO nike.apache.org) (192.87.106.230) by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 27 Jan 2012 14:36:38 +0000 X-ASF-Spam-Status: No, hits=-2000.0 required=5.0 tests=ALL_TRUSTED,T_RP_MATCHES_RCVD X-Spam-Check-By: apache.org Received: from [140.211.11.116] (HELO hel.zones.apache.org) (140.211.11.116) by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 27 Jan 2012 14:36:36 +0000 Received: from hel.zones.apache.org (hel.zones.apache.org [140.211.11.116]) by hel.zones.apache.org (Postfix) with ESMTP id 3516B167EB8 for ; Fri, 27 Jan 2012 14:36:15 +0000 (UTC) Date: Fri, 27 Jan 2012 14:36:15 +0000 (UTC) From: "Sylvain Lebresne (Created) (JIRA)" To: commits@cassandra.apache.org Message-ID: <1685841153.47.1327674975219.JavaMail.tomcat@hel.zones.apache.org> Subject: [jira] [Created] (CASSANDRA-3798) get_count paging often asks for a page uselessly MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit X-JIRA-FingerPrint: 30527f35849b9dde25b450d4833f0394 X-Virus-Checked: Checked by ClamAV on apache.org get_count paging often asks for a page uselessly ------------------------------------------------ Key: CASSANDRA-3798 URL: https://issues.apache.org/jira/browse/CASSANDRA-3798 Project: Cassandra Issue Type: Improvement Affects Versions: 1.0.0 Reporter: Sylvain Lebresne Assignee: Sylvain Lebresne Priority: Minor Fix For: 1.1 Current get_count paging stopping condition is: {noformat} if ((requestedCount == 0) || ((columns.size() == 1) && (lastName.equals(predicate.slice_range.start)))) { break; } {noformat} On a "count how many columns this row has" query (arguably the main reason why you'd use get_count), requestedCount will never be 0, and so we'll stop whenever a page has only returned the last column of the preceding page. While this isn't wrong, we could stop as soon as a page returns less element than requested and avoid querying that last 1 column page. -- This message is automatically generated by JIRA. If you think it was sent incorrectly, please contact your JIRA administrators: https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa For more information on JIRA, see: http://www.atlassian.com/software/jira