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 A3D339D3B for ; Fri, 4 May 2012 01:08:12 +0000 (UTC) Received: (qmail 40279 invoked by uid 500); 4 May 2012 01:08:10 -0000 Delivered-To: apmail-cassandra-user-archive@cassandra.apache.org Received: (qmail 40254 invoked by uid 500); 4 May 2012 01:08:10 -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 40245 invoked by uid 500); 4 May 2012 01:08:10 -0000 Delivered-To: apmail-incubator-cassandra-user@incubator.apache.org Received: (qmail 40242 invoked by uid 99); 4 May 2012 01:08:10 -0000 Received: from nike.apache.org (HELO nike.apache.org) (192.87.106.230) by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 04 May 2012 01:08:10 +0000 X-ASF-Spam-Status: No, hits=2.0 required=5.0 tests=SPF_NEUTRAL,URI_HEX X-Spam-Check-By: apache.org Received-SPF: neutral (nike.apache.org: 216.139.236.26 is neither permitted nor denied by domain of codevally@gmail.com) Received: from [216.139.236.26] (HELO sam.nabble.com) (216.139.236.26) by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 04 May 2012 01:08:03 +0000 Received: from jim.nabble.com ([192.168.236.80]) by sam.nabble.com with esmtp (Exim 4.72) (envelope-from ) id 1SQ6zm-0001vI-LJ for cassandra-user@incubator.apache.org; Thu, 03 May 2012 18:07:42 -0700 Date: Thu, 3 May 2012 18:07:42 -0700 (PDT) From: Roshan To: cassandra-user@incubator.apache.org Message-ID: <1336093662631-7525626.post@n2.nabble.com> Subject: Misleading CQL behaviour regarding LIMIT clause MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit Hi I have created a CF and it has around 10 million rows. But If I try to select statement with the LIMIT 100, it returns 79 records. Don't know why this behavior? *Statement I used:* SELECT * FROM ActivityLog WHERE userid = '%s' AND created >= '%s' AND created <= '%s' LIMIT 100 *CF Structure* create column family ActivityLog with comparator = UTF8Type and column_metadata = [ {column_name : userid, validation_class : BytesType, index_name : userid_idx, index_type : KEYS}, {column_name : workspace, validation_class : BytesType, index_name : workspace_idx, index_type : KEYS}, {column_name : module, validation_class : BytesType, index_name : module_idx, index_type : KEYS}, {column_name : action, validation_class : BytesType, index_name : action_idx, index_type : KEYS}, {column_name : status, validation_class : BytesType, index_name : status_idx, index_type : KEYS}, {column_name : created, validation_class : BytesType, index_name : created_idx, index_type : KEYS}, {column_name : description, validation_class : BytesType}, {column_name : logdetail, validation_class : BytesType}] and keys_cached = 200000 and rows_cached = 0 and row_cache_save_period = 0 and key_cache_save_period = 3600 and gc_grace = 3600 and memtable_throughput = 255 and memtable_operations = 0.29 and compression_options={sstable_compression:SnappyCompressor, chunk_length_kb:64}; Any help is appreciated. Thanks. -- View this message in context: http://cassandra-user-incubator-apache-org.3065146.n2.nabble.com/Misleading-CQL-behaviour-regarding-LIMIT-clause-tp7525626.html Sent from the cassandra-user@incubator.apache.org mailing list archive at Nabble.com.