Return-Path: X-Original-To: apmail-cassandra-user-archive@www.apache.org Delivered-To: apmail-cassandra-user-archive@www.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id 65BA57547 for ; Sun, 18 Sep 2011 21:56:26 +0000 (UTC) Received: (qmail 8070 invoked by uid 500); 18 Sep 2011 21:56:24 -0000 Delivered-To: apmail-cassandra-user-archive@cassandra.apache.org Received: (qmail 8035 invoked by uid 500); 18 Sep 2011 21:56:24 -0000 Mailing-List: contact user-help@cassandra.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: user@cassandra.apache.org Delivered-To: mailing list user@cassandra.apache.org Received: (qmail 8027 invoked by uid 99); 18 Sep 2011 21:56:24 -0000 Received: from nike.apache.org (HELO nike.apache.org) (192.87.106.230) by apache.org (qpsmtpd/0.29) with ESMTP; Sun, 18 Sep 2011 21:56:24 +0000 X-ASF-Spam-Status: No, hits=1.5 required=5.0 tests=FREEMAIL_FROM,HTML_MESSAGE,RCVD_IN_DNSWL_LOW,SPF_PASS,T_TO_NO_BRKTS_FREEMAIL X-Spam-Check-By: apache.org Received-SPF: pass (nike.apache.org: domain of jakers@gmail.com designates 209.85.210.48 as permitted sender) Received: from [209.85.210.48] (HELO mail-pz0-f48.google.com) (209.85.210.48) by apache.org (qpsmtpd/0.29) with ESMTP; Sun, 18 Sep 2011 21:56:18 +0000 Received: by pzk6 with SMTP id 6so8660359pzk.7 for ; Sun, 18 Sep 2011 14:55:56 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=mime-version:in-reply-to:references:from:date:message-id:subject:to :content-type; bh=fbp0/Bhs7rMhRp8brVVvfPZFFVzW2Z4Yfw3gTirZjUI=; b=Se7dPA2BmvY1x2JN76mby6CYXoy1i3mFRO5XPKo9jb8H9KVrhIeFzovIGQ6i68v8ev rn1PhaBRi7iMq2S6EAR4H69iRSMXyGbFhT5qxr7NR6lKgfTEAsWkzM61m9fxncOI4nrO qs66W+tm03Y4GrNa2KsY9Rf/b5Y6W1fODkQKo= Received: by 10.68.35.4 with SMTP id d4mr1764365pbj.499.1316382955092; Sun, 18 Sep 2011 14:55:55 -0700 (PDT) MIME-Version: 1.0 Received: by 10.142.49.3 with HTTP; Sun, 18 Sep 2011 14:55:35 -0700 (PDT) In-Reply-To: References: From: Jake Luciani Date: Sun, 18 Sep 2011 16:55:35 -0500 Message-ID: Subject: Re: Possibility of going OOM using get_count To: user@cassandra.apache.org Content-Type: multipart/alternative; boundary=bcaec520e5296d3a6404ad3e4a6c X-Virus-Checked: Checked by ClamAV on apache.org --bcaec520e5296d3a6404ad3e4a6c Content-Type: text/plain; charset=ISO-8859-1 This is fixed in 1.0 https://issues.apache.org/jira/browse/CASSANDRA-2894 On Sun, Sep 18, 2011 at 2:16 PM, Tharindu Mathew wrote: > Hi everyone, > > I noticed this line in the API docs, > > The method is not O(1). It takes all the columns from disk to calculate the > answer. The only benefit of the method is that you do not need to pull all > the columns over Thrift interface to count them. > Does this mean if a row has a large number of columns calling this method > might make it go OOM? > > Thanks in advance. > > -- > Regards, > > Tharindu > > blog: http://mackiemathew.com/ > > -- http://twitter.com/tjake --bcaec520e5296d3a6404ad3e4a6c Content-Type: text/html; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable This is fixed in 1.0
https://issues.apache.org/jira/browse/CASSANDRA-2894


On Sun, Sep 18, 2011 at 2:16 PM, = Tharindu Mathew <mccloud35@gmail.com> wrote:
Hi everyone,

I noticed t= his line in the API docs,

The method is not O(1). It takes all the columns from disk to calculate the= answer. The only benefit of the method is that you do not need to pull all= the columns over Thrift interface to count them.

Does this mean if a row has a large number of columns calling t= his method might make it go OOM?

Thanks in advance= .

--
Regards,

Tharin= du





--
http://twitter.com/tjake
--bcaec520e5296d3a6404ad3e4a6c--