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 1B6BBE0E7 for ; Fri, 1 Feb 2013 11:05:06 +0000 (UTC) Received: (qmail 54794 invoked by uid 500); 1 Feb 2013 11:05:03 -0000 Delivered-To: apmail-cassandra-user-archive@cassandra.apache.org Received: (qmail 54760 invoked by uid 500); 1 Feb 2013 11:05:03 -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 54749 invoked by uid 99); 1 Feb 2013 11:05:03 -0000 Received: from nike.apache.org (HELO nike.apache.org) (192.87.106.230) by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 01 Feb 2013 11:05:03 +0000 X-ASF-Spam-Status: No, hits=-0.7 required=5.0 tests=RCVD_IN_DNSWL_LOW,SPF_PASS X-Spam-Check-By: apache.org Received-SPF: pass (nike.apache.org: domain of guillermo.barbero@spotbros.com designates 209.85.212.182 as permitted sender) Received: from [209.85.212.182] (HELO mail-wi0-f182.google.com) (209.85.212.182) by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 01 Feb 2013 11:04:56 +0000 Received: by mail-wi0-f182.google.com with SMTP id hn14so429199wib.15 for ; Fri, 01 Feb 2013 03:04:36 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=spotbros.com; s=google; h=x-received:mime-version:in-reply-to:references:from:date:message-id :subject:to:content-type; bh=3qao9kV1Dy5yK+ZnRWnZUETOetVtAfmn66GLmxUBos8=; b=Nrz6zaAs0FHpkZ6TT1AlinzO1WhraocWlIEiEmTiw7i8Zzr3ohv6gNbKL9kZk6olz9 xOANL8O1xA9IyWgjrx6PRpde1mJg7YSluFriRqiMg4Xcn4wlFvo57F5PYZF0OPR7VFQ6 +suUTXUd+kz5uH87MG6ysW02EcShVmhzKlsqo= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=20120113; h=x-received:mime-version:in-reply-to:references:from:date:message-id :subject:to:content-type:x-gm-message-state; bh=3qao9kV1Dy5yK+ZnRWnZUETOetVtAfmn66GLmxUBos8=; b=CiXP3a7B2rvml4QBBihgIW4f2Aybyn8boyYL5fO0RJ3/stcmF7SmCIqQ1njLwahZ8M qXWQ8ShvaiJhNSnJ57bGvjxBusQJY8I7j0I7J+6DRYbZpuNaoVoqkXY6BSuF4EViMeF0 8AOxfzTqmpaMjaL0YOkaU+pl0Xg2lEX9AcmQpMXVY264+AqzTxD6p5BTNKo0QCOrWfYz EH3/MhG3qB6tKpdKtbhJmUpTbAf9UBF3pjEUmfNvusSRn6Rz10z4E1J/O6WvXdtm10GF 17JVsPfkYd8pvIFPs2j7GLPbrTw3NG0WEYsOP9kzZ7C2gZDSc94NKxX7XAYvLYtchSKx hECQ== X-Received: by 10.180.99.227 with SMTP id et3mr2100440wib.6.1359716676291; Fri, 01 Feb 2013 03:04:36 -0800 (PST) MIME-Version: 1.0 Received: by 10.216.118.6 with HTTP; Fri, 1 Feb 2013 03:04:15 -0800 (PST) In-Reply-To: References: From: Guillermo Barbero Date: Fri, 1 Feb 2013 12:04:15 +0100 Message-ID: Subject: Re: too many warnings of Heap is full To: user@cassandra.apache.org Content-Type: text/plain; charset=ISO-8859-1 X-Gm-Message-State: ALoCoQn3+bBfiK5SNkeJXS0P78f+8OaFQ+CcLYXZUYgPZxTwfNop/QaKNNgdva3VWYCQze1U6ClI X-Virus-Checked: Checked by ClamAV on apache.org > What is the cardinality like on these indexes? Can you provide the > schema creation for these two column families? This is the schema of the CFs: create column family CF_users with comparator = UTF8Type and column_metadata = [ {column_name: userSBCode, validation_class: UTF8Type, index_type: KEYS}, {column_name: userEmail, validation_class: UTF8Type, index_type: KEYS}, {column_name: userName, validation_class: UTF8Type}, {column_name: userLastName, validation_class: UTF8Type}, {column_name: userOwnPhoneKey, validation_class: UTF8Type, index_type: KEYS}, {column_name: userOwnPhone, validation_class: UTF8Type, index_type: KEYS}, {column_name: userPasswordMD5, validation_class: UTF8Type}, {column_name: userDOB, validation_class: UTF8Type}, {column_name: userGender, validation_class: UTF8Type}, {column_name: userProfilePicMD5, validation_class: UTF8Type}, {column_name: userAbout, validation_class: UTF8Type}, {column_name: userLastSession, validation_class: UTF8Type} {column_name: userMasterKey, validation_class: UTF8Type} ]; create column family CF_SBMessages with comparator = UTF8Type and column_metadata = [ {column_name: SBMessageId, validation_class: UTF8Type, index_type: KEYS}, {column_name: fromSBCode, validation_class: UTF8Type, index_type: KEYS}, {column_name: SBMessageDate, validation_class: UTF8Type, index_type: KEYS}, {column_name: SBMessageType, validation_class: UTF8Type}, {column_name: SBMessageText, validation_class: UTF8Type}, {column_name: SBMessageAttachments, validation_class: UTF8Type}, ]; I've read about the importance of keeping the cardinality of the secondary indexes low (great article at http://pkghosh.wordpress.com/2011/03/02/cassandra-secondary-index-patterns/), and I'm afraid that we did completely the opposite (we did consider the secondary indexes as alternate indexes). I guess here is some work to do to create other CFs to store these secondary indexes. Anyway, I still don't understand why did appear these peaks (by the way, last night there wasn't any)