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 6A3A27E98 for ; Tue, 26 Jul 2011 19:48:32 +0000 (UTC) Received: (qmail 16296 invoked by uid 500); 26 Jul 2011 19:48:32 -0000 Delivered-To: apmail-cassandra-commits-archive@cassandra.apache.org Received: (qmail 16279 invoked by uid 500); 26 Jul 2011 19:48:31 -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 16271 invoked by uid 99); 26 Jul 2011 19:48:31 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 26 Jul 2011 19:48:31 +0000 X-ASF-Spam-Status: No, hits=-2001.2 required=5.0 tests=ALL_TRUSTED,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; Tue, 26 Jul 2011 19:48:30 +0000 Received: from hel.zones.apache.org (hel.zones.apache.org [140.211.11.116]) by hel.zones.apache.org (Postfix) with ESMTP id AC9AB88A74 for ; Tue, 26 Jul 2011 19:48:09 +0000 (UTC) Date: Tue, 26 Jul 2011 19:48:09 +0000 (UTC) From: "Vijay (JIRA)" To: commits@cassandra.apache.org Message-ID: <1002962016.9112.1311709689703.JavaMail.tomcat@hel.zones.apache.org> In-Reply-To: <1131393333.8133.1310512260115.JavaMail.tomcat@hel.zones.apache.org> Subject: [jira] [Assigned] (CASSANDRA-2894) add paging to get_count MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit X-JIRA-FingerPrint: 30527f35849b9dde25b450d4833f0394 [ https://issues.apache.org/jira/browse/CASSANDRA-2894?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ] Vijay reassigned CASSANDRA-2894: -------------------------------- Assignee: (was: Vijay) Moving myself out of the Assignee list... > add paging to get_count > ----------------------- > > Key: CASSANDRA-2894 > URL: https://issues.apache.org/jira/browse/CASSANDRA-2894 > Project: Cassandra > Issue Type: Improvement > Components: API > Reporter: Jonathan Ellis > Priority: Minor > Labels: lhf > Fix For: 1.0 > > Attachments: CASSANDRA-2894.patch > > > It is non-intuitive that get_count materializes the entire slice-to-count on the coordinator node (to perform read repair and > CL.ONE consistency). Even experienced users have been known to cause memory problems by requesting large counts. > The user cannot page the count himself, because you need a start and stop column to do that, and get_count only returns an integer. > So the best fix is for us to do the paging under the hood, in CassandraServer. Add a limit to the slicepredicate they specify, and page through it. > We could add a global setting for count_slice_size, and document that counts of more columns than that will have higher latency (because they make multiple calls through StorageProxy for the pages). -- This message is automatically generated by JIRA. For more information on JIRA, see: http://www.atlassian.com/software/jira