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 EA515E783 for ; Tue, 19 Mar 2013 07:41:23 +0000 (UTC) Received: (qmail 52985 invoked by uid 500); 19 Mar 2013 07:41:21 -0000 Delivered-To: apmail-cassandra-user-archive@cassandra.apache.org Received: (qmail 52894 invoked by uid 500); 19 Mar 2013 07:41: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 52578 invoked by uid 99); 19 Mar 2013 07:41:20 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 19 Mar 2013 07:41:20 +0000 X-ASF-Spam-Status: No, hits=-0.0 required=5.0 tests=RCVD_IN_DNSWL_NONE,SPF_PASS X-Spam-Check-By: apache.org Received-SPF: pass (athena.apache.org: local policy) Received: from [208.113.200.5] (HELO homiemail-a57.g.dreamhost.com) (208.113.200.5) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 19 Mar 2013 07:41:15 +0000 Received: from homiemail-a57.g.dreamhost.com (localhost [127.0.0.1]) by homiemail-a57.g.dreamhost.com (Postfix) with ESMTP id 84C66208063 for ; Tue, 19 Mar 2013 00:40:50 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha1; c=relaxed; d=thelastpickle.com; h= content-type:mime-version:subject:from:in-reply-to:date :content-transfer-encoding:message-id:references:to; s= thelastpickle.com; bh=fv7hwjDF1eQ+yG1lUOKzKFJYWKg=; b=bcVmvedulO yO6Min3T+K80zHyoau7+SlsEsWlaXAGDR57Zon32Iox6zYJeH65oJ8DjJd1gKhaS 8sRNQj6r6mwMDeFKt3Q7ZzgTRmZPSJd6MHyvEqEFeMBnWa56IplLVlAsurfPLubj OYUcfpV51OfJxOrMdOshsIy9yn+dbWjZ8= Received: from [172.16.1.8] (unknown [203.86.207.101]) (using TLSv1 with cipher AES128-SHA (128/128 bits)) (No client certificate requested) (Authenticated sender: aaron@thelastpickle.com) by homiemail-a57.g.dreamhost.com (Postfix) with ESMTPSA id 2A94120801D for ; Tue, 19 Mar 2013 00:40:50 -0700 (PDT) Content-Type: text/plain; charset=windows-1252 Mime-Version: 1.0 (Mac OS X Mail 6.2 \(1499\)) Subject: Re: Unable to fetch large amount of rows From: aaron morton In-Reply-To: <1C124BA2870F4EA1825B51273DE285FB@pune.wibhu.com> Date: Tue, 19 Mar 2013 20:40:53 +1300 Content-Transfer-Encoding: quoted-printable Message-Id: <2A7C7E4C-1D9C-464B-BCD8-75EF3C3B32D4@thelastpickle.com> References: <1C124BA2870F4EA1825B51273DE285FB@pune.wibhu.com> To: user@cassandra.apache.org X-Mailer: Apple Mail (2.1499) X-Virus-Checked: Checked by ClamAV on apache.org > I have 1000 timestamps, and for each timestamp, I have 500K different = MACAddress. So you are trying to read about 2 million columns ?=20 500K MACAddresses each with 3 other columns?=20 > When I run the following query, I get RPC Timeout exceptions: What is the exception?=20 Is it a client side socket timeout or a server side TimedOutException ? If my understanding is correct then try reading fewer columns and/or = check the server side for logs. It sounds like you are trying to read = too much though.=20 Cheers ----------------- Aaron Morton Freelance Cassandra Consultant New Zealand @aaronmorton http://www.thelastpickle.com On 19/03/2013, at 3:51 AM, Pushkar Prasad = wrote: > Hi, > =20 > I have following schema: > =20 > TimeStamp > MACAddress > Data Transfer > Data Rate > LocationID > =20 > PKEY is (TimeStamp, MACAddress). That means partitioning is on = TimeStamp, and data is ordered by MACAddress, and stored together = physically (let me know if my understanding is wrong). I have 1000 = timestamps, and for each timestamp, I have 500K different MACAddress. > =20 > When I run the following query, I get RPC Timeout exceptions: > =20 > =20 > Select * from db_table where Timestamp=3D=92=85..=92 > =20 > =46rom my understanding, this should give all the rows with just one = disk seek, as all the records for a particular timeStamp. This should be = very quick, however, clearly, that doesn=92t seem to be the case. Is = there something I am missing here? Your help would be greatly = appreciated. > =20 > Thanks > PP