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 CF1AC9D55 for ; Wed, 19 Oct 2011 03:04:23 +0000 (UTC) Received: (qmail 85784 invoked by uid 500); 19 Oct 2011 03:04:21 -0000 Delivered-To: apmail-cassandra-user-archive@cassandra.apache.org Received: (qmail 85758 invoked by uid 500); 19 Oct 2011 03:04:21 -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 85750 invoked by uid 99); 19 Oct 2011 03:04:19 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 19 Oct 2011 03:04:19 +0000 X-ASF-Spam-Status: No, hits=1.5 required=5.0 tests=HTML_MESSAGE,RCVD_IN_DNSWL_LOW,SPF_PASS X-Spam-Check-By: apache.org Received-SPF: pass (athena.apache.org: domain of tyler@datastax.com designates 209.85.214.44 as permitted sender) Received: from [209.85.214.44] (HELO mail-bw0-f44.google.com) (209.85.214.44) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 19 Oct 2011 03:04:12 +0000 Received: by bkas6 with SMTP id s6so1790656bka.31 for ; Tue, 18 Oct 2011 20:03:50 -0700 (PDT) MIME-Version: 1.0 Received: by 10.223.63.130 with SMTP id b2mr8396682fai.35.1318993430006; Tue, 18 Oct 2011 20:03:50 -0700 (PDT) Received: by 10.152.1.195 with HTTP; Tue, 18 Oct 2011 20:03:49 -0700 (PDT) X-Originating-IP: [70.124.83.21] In-Reply-To: References: Date: Tue, 18 Oct 2011 22:03:49 -0500 Message-ID: Subject: Re: Column Family row keys From: Tyler Hobbs To: user@cassandra.apache.org Content-Type: multipart/alternative; boundary=0015173fe8d8db4d0a04af9e1650 --0015173fe8d8db4d0a04af9e1650 Content-Type: text/plain; charset=ISO-8859-1 On Tue, Oct 18, 2011 at 4:30 PM, Jonathan Ellis wrote: > On Tue, Oct 18, 2011 at 4:10 PM, Tyler Hobbs wrote: > > * You'll get range ghosts > > (http://wiki.apache.org/cassandra/FAQ#range_ghosts) with column_count=0. > > You can avoid them if you set column_count=1. > > What heuristic do you use for skipping empty rows? > In get_range(), if key_slice.columns is empty and column_count != 0, skip the row. It also has the effect (both good and bad) of skipping rows when column_count > 0 and there's a normal column slice, but the slice is empty. --0015173fe8d8db4d0a04af9e1650 Content-Type: text/html; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable
On Tue, Oct 18, 2011 at 4:30 PM, Jonathan Ellis = <jbellis@gmail.co= m> wrote:
On Tue, Oct 18, 2011 at 4:10 PM, Tyler Hobbs <tyler@datastax.com> wrote:
> =A0 * You'll get range ghosts
> (http://wiki.apache.org/cassandra/FAQ#range_ghosts) with col= umn_count=3D0.
> You can avoid them if you set column_count=3D1.

What heuristic do you use for skipping empty rows?

In get_range(), if key_slice.columns is empty and column_count !=3D = 0,=20 skip the row.=A0 It also has the effect (both good and bad) of skipping=20 rows when column_count > 0 and there's a normal column slice, but th= e slice is empty.
--0015173fe8d8db4d0a04af9e1650--