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 CADB5D342 for ; Sat, 4 Aug 2012 16:24:22 +0000 (UTC) Received: (qmail 73483 invoked by uid 500); 4 Aug 2012 16:24:20 -0000 Delivered-To: apmail-cassandra-user-archive@cassandra.apache.org Received: (qmail 73453 invoked by uid 500); 4 Aug 2012 16:24:20 -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 73445 invoked by uid 99); 4 Aug 2012 16:24:20 -0000 Received: from nike.apache.org (HELO nike.apache.org) (192.87.106.230) by apache.org (qpsmtpd/0.29) with ESMTP; Sat, 04 Aug 2012 16:24:20 +0000 X-ASF-Spam-Status: No, hits=0.7 required=5.0 tests=FSL_RCVD_USER,RCVD_IN_DNSWL_NONE,SPF_NEUTRAL X-Spam-Check-By: apache.org Received-SPF: neutral (nike.apache.org: local policy) Received: from [72.35.23.45] (HELO smtp-out2.electric.net) (72.35.23.45) by apache.org (qpsmtpd/0.29) with ESMTP; Sat, 04 Aug 2012 16:24:13 +0000 Received: from [10.86.10.83] (helo=fuseout2c) by cernan.electric.net with esmtps (TLSv1:AES256-SHA:256) (Exim 4.77) (envelope-from ) id 1Sxh8p-0000wJ-TB for user@cassandra.apache.org; Sat, 04 Aug 2012 09:23:51 -0700 Received: from mailanyone.net by fuseout2c with esmtpsa (TLSv1:CAMELLIA256-SHA:256) (MailAnyone extSMTP dbrosius@baybroadband.net) id 1Sxh8o-0006ug-Ce for user@cassandra.apache.org; Sat, 04 Aug 2012 09:23:51 -0700 Message-ID: <501D4C92.4060605@mebigfatguy.com> Date: Sat, 04 Aug 2012 12:23:46 -0400 From: Dave Brosius User-Agent: Mozilla/5.0 (X11; Linux i686; rv:12.0) Gecko/20120430 Thunderbird/12.0.1 MIME-Version: 1.0 To: user@cassandra.apache.org Subject: Re: Secondary index impact on write performance References: In-Reply-To: Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit There is a second (system managed) column family for each secondary index, so any write to a field that is indexed causes two writes, one to the main column family, and another to the index column family, where in this index column family the key is the value of the secondary column, and the value is the key of the original row. On 08/04/2012 11:40 AM, David McNelis wrote: > Morning, > > Was reading up on secondary indexes and on the Datastax post about > them, it mentions the additional management overhead, and also that if > you alter an existing column family, that data will be updated in the > background. But how do secondary indexes affect write performance? > > If the answer is "it doesn't", then how do brand new records get > located by a subsequent indexed query? > > If someone has a link to a post with some of this info, that would be > awesome. > > David