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 4A83B65B9 for ; Mon, 20 Jun 2011 21:13:42 +0000 (UTC) Received: (qmail 21681 invoked by uid 500); 20 Jun 2011 21:13:40 -0000 Delivered-To: apmail-cassandra-user-archive@cassandra.apache.org Received: (qmail 21658 invoked by uid 500); 20 Jun 2011 21:13:40 -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 21650 invoked by uid 99); 20 Jun 2011 21:13:39 -0000 Received: from nike.apache.org (HELO nike.apache.org) (192.87.106.230) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 20 Jun 2011 21:13:39 +0000 X-ASF-Spam-Status: No, hits=1.5 required=5.0 tests=FREEMAIL_ENVFROM_END_DIGIT,FREEMAIL_FROM,RCVD_IN_DNSWL_LOW,RFC_ABUSE_POST,SPF_PASS,T_TO_NO_BRKTS_FREEMAIL X-Spam-Check-By: apache.org Received-SPF: pass (nike.apache.org: domain of kosciak1@gmail.com designates 209.85.220.172 as permitted sender) Received: from [209.85.220.172] (HELO mail-vx0-f172.google.com) (209.85.220.172) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 20 Jun 2011 21:13:32 +0000 Received: by vxi40 with SMTP id 40so1235537vxi.31 for ; Mon, 20 Jun 2011 14:13:11 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:mime-version:from:date:message-id:subject:to :content-type; bh=t7kq2ICYevpQTACimLpgYyndE04cbCXUFmzcgtu7NZI=; b=x9WwqFIKeZsJvDizjrmLNO+s9DMvD0EyT+w7k+y7oKJl8YkoJS6woqgc27Zx+6dYbR Cf5OadtrSZjTHX87Edyy48BBklRjFTZvGoD/to03mf7C89oNqxU0lCtnjKr0bQDrMLwP 2KSCs8nyghDhICKpKChdiZjvhxYPCCtB76dT0= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=mime-version:from:date:message-id:subject:to:content-type; b=U5bvLxKLExp8DjLoSRss3IyvbRVQr5D0CQDYdR9mnzDy/puRivHlRjDNHU/MCiF5I3 IcMyieXY9CazTrvb5TfMh2Y2SqEUuGJ9DMqd3tIjqKz5kgiH8UsJZOPq+4Ez6Y50wZuL OGjAq5EKl8E2x6pMAb6VYRl/VP7rDcIZqLmSw= Received: by 10.220.86.8 with SMTP id q8mr2059004vcl.174.1308604389756; Mon, 20 Jun 2011 14:13:09 -0700 (PDT) MIME-Version: 1.0 Received: by 10.220.180.67 with HTTP; Mon, 20 Jun 2011 14:04:52 -0700 (PDT) From: Wojciech Pietrzok Date: Mon, 20 Jun 2011 23:04:52 +0200 Message-ID: Subject: Secondary indexes performance To: user@cassandra.apache.org Content-Type: text/plain; charset=ISO-8859-1 X-Virus-Checked: Checked by ClamAV on apache.org Hello, I've noticed that queries using secondary indexes seems to be getting rather slow. Right now I've got an Column Family with 4 indexed columns (plus 5-6 non indexed columns, column values are small), and around 1,5-2 millions of rows. I'm using pycassa client and query using get_indexed_slices method that returns over 10k rows (in batches of 1024 rows) can take up to 30 seconds. Is it normal? Seems too long for me. Maybe there's a way to tune Cassandra config for better secondary indexes performance? Using Cassandra 0.7.6 -- KosciaK