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 13B1F11DEF for ; Sun, 11 May 2014 08:03:34 +0000 (UTC) Received: (qmail 10576 invoked by uid 500); 10 May 2014 23:27:15 -0000 Delivered-To: apmail-cassandra-user-archive@cassandra.apache.org Received: (qmail 52549 invoked by uid 500); 10 May 2014 23:15:24 -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 63936 invoked by uid 99); 10 May 2014 23:00:44 -0000 Received: from Unknown (HELO nike.apache.org) (192.87.106.230) by apache.org (qpsmtpd/0.29) with ESMTP; Sat, 10 May 2014 23:00:44 +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 chris.burroughs@gmail.com designates 209.85.216.179 as permitted sender) Received: from [209.85.216.179] (HELO mail-qc0-f179.google.com) (209.85.216.179) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 07 May 2014 18:28:46 +0000 Received: by mail-qc0-f179.google.com with SMTP id x3so1539978qcv.24 for ; Wed, 07 May 2014 11:28:22 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=message-id:date:from:user-agent:mime-version:to:subject:references :in-reply-to:content-type:content-transfer-encoding; bh=RLQpIs84qVuAejt54VED3FK49xUsCKnPeFRf8TOAgoQ=; b=B+Mlz6vdYrpxeMqIUu+gn5MWt5OMfU3ATV+ywFGGzUjymP8l3eFGwCwvKlRPTD+rGM sWNLwRpllQgmk+e/OBfC7XSZLIyRcUIoaKjDMjhF9P2eakY5ngd5Pc8Mi30nps54a3/R dcP+ch2xka3JzrETV2MtoCOTEq1rQcAokK9gB3TveWGAGA4mvI1uyl4+7n1Kgy/AF3Ul /q8zHb0N4NIJGiR/aGlSlfXbfjziHC+b12u2/LtKzraf8TlDk5mBlKbnr0QZBHDkbyD1 YyS1DAknwtkruOrVxkwK0FNHD86WlD0tbF+fYjGkGmZjkKVypQQ/+u03jWD+XGMmrJ7M 9fUw== X-Received: by 10.229.220.197 with SMTP id hz5mr62857352qcb.9.1399487302621; Wed, 07 May 2014 11:28:22 -0700 (PDT) Received: from [192.168.1.142] (208-58-66-240.c3-0.161-ubr1.lnh-161.md.cable.rcn.com. [208.58.66.240]) by mx.google.com with ESMTPSA id r4sm3613031qad.49.2014.05.07.11.28.21 for (version=TLSv1 cipher=ECDHE-RSA-RC4-SHA bits=128/128); Wed, 07 May 2014 11:28:22 -0700 (PDT) Message-ID: <536A7B45.3020406@gmail.com> Date: Wed, 07 May 2014 14:28:21 -0400 From: Chris Burroughs User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:24.0) Gecko/20100101 Icedove/24.0 MIME-Version: 1.0 To: user@cassandra.apache.org Subject: Re: row caching for frequently updated column References: <2031092353962670652@unknownmsgid> In-Reply-To: Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit X-Virus-Checked: Checked by ClamAV on apache.org You are close. On 04/30/2014 12:41 AM, Jimmy Lin wrote: > thanks all for the pointers. > > let' me see if I can put the sequences of event together .... > > 1.2 > people mis-understand/mis-use row cache, that cassandra cached the entire > row of data even if you are only looking for small subset of the row data. > e.g > select single_column from a_wide_row_table > will result in entire row cached even if you are only interested in one > single column of a row. > Yep! > 2.0 > and because of potential misuse of heap memory, Cassandra 2.0 remove heap > cache, and only support off-heap cache, which has a side effect that write > will invalidate the row cache(my original question) > "off-heap" is a common but misleading name for the SerializingCacheProvider. It still stores several objects on heap per cached item and has to deser on read. > 2.1 > the coming 2.1 Cassandra will offer true cache by query, so the cached data > will be much more efficient even for wide rows(it cached what it needs). > > do I get it right? > for the new 2.1 row caching, is it still true that a write or update to the > row will still invalidate the cached row ? > I don't think "true cache by query" is an accurate description of CASSANDRA-5357. I think it's more like a "head of the row" cache.