Return-Path: Delivered-To: apmail-incubator-cassandra-user-archive@minotaur.apache.org Received: (qmail 44351 invoked from network); 8 Mar 2010 19:26:04 -0000 Received: from unknown (HELO mail.apache.org) (140.211.11.3) by 140.211.11.9 with SMTP; 8 Mar 2010 19:26:04 -0000 Received: (qmail 58649 invoked by uid 500); 8 Mar 2010 19:25:39 -0000 Delivered-To: apmail-incubator-cassandra-user-archive@incubator.apache.org Received: (qmail 58626 invoked by uid 500); 8 Mar 2010 19:25:39 -0000 Mailing-List: contact cassandra-user-help@incubator.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: cassandra-user@incubator.apache.org Delivered-To: mailing list cassandra-user@incubator.apache.org Received: (qmail 58616 invoked by uid 99); 8 Mar 2010 19:25:39 -0000 Received: from nike.apache.org (HELO nike.apache.org) (192.87.106.230) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 08 Mar 2010 19:25:39 +0000 X-ASF-Spam-Status: No, hits=-0.0 required=10.0 tests=SPF_PASS X-Spam-Check-By: apache.org Received-SPF: pass (nike.apache.org: local policy) Received: from [207.5.72.163] (HELO EXHUB016-1.exch016.msoutlookonline.net) (207.5.72.163) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 08 Mar 2010 19:25:30 +0000 Received: from EXVMBX016-3.exch016.msoutlookonline.net ([207.5.72.173]) by EXHUB016-1.exch016.msoutlookonline.net ([207.5.72.163]) with mapi; Mon, 8 Mar 2010 11:25:09 -0800 From: Daniel Kluesing To: "cassandra-user@incubator.apache.org" Date: Mon, 8 Mar 2010 11:25:08 -0800 Subject: RE: Testing row cache feature in trunk: write should put record in cache Thread-Topic: Testing row cache feature in trunk: write should put record in cache Thread-Index: AcqvkUeqVuYI83mqSWm8w0M90Tu7mAPYz9iQ Message-ID: <33FDEB0CE2F65F41A4CF8769247BB3668DC377AA2E@EXVMBX016-3.exch016.msoutlookonline.net> References: In-Reply-To: Accept-Language: en-US Content-Language: en-US X-MS-Has-Attach: X-MS-TNEF-Correlator: acceptlanguage: en-US Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: quoted-printable MIME-Version: 1.0 X-Virus-Checked: Checked by ClamAV on apache.org This is interesting for the use cases I'm looking at Cassandra for, so if t= hat offer still stands I'll take you up on it. I took a crack at it in http= s://issues.apache.org/jira/browse/CASSANDRA-860 - also in large part to get= my feet wet with the code.=20 -----Original Message----- From: Jonathan Ellis [mailto:jbellis@gmail.com]=20 Sent: Tuesday, February 16, 2010 9:22 PM To: cassandra-user@incubator.apache.org Subject: Re: Testing row cache feature in trunk: write should put record in= cache ... tell you what, if you write the option-processing part in DatabaseDescriptor I will do the actual cache part. :) On Tue, Feb 16, 2010 at 11:07 PM, Jonathan Ellis wrote: > https://issues.apache.org/jira/secure/CreateIssue!default.jspa, but > this is pretty low priority for me. > > On Tue, Feb 16, 2010 at 8:37 PM, Weijun Li wrote: >> Just tried to make quick change to enable it but it didn't work out :-( >> >> =A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0 ColumnFamily cachedRow =3D cf= s.getRawCachedRow(mutation.key()); >> >> =A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0 // What I modified >> =A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0 if( cachedRow =3D=3D null = ) { >> =A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0 =A0=A0=A0 cfs.cacheRow(mut= ation.key()); >> =A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0 =A0=A0=A0 cachedRow =3D cf= s.getRawCachedRow(mutation.key()); >> =A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0 } >> >> =A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0 if (cachedRow !=3D null) >> =A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0 =A0=A0=A0 cachedRow.addAll= (columnFamily); >> >> How can I open a ticket for you to make the change (enable row cache wri= te >> through with an option)? >> >> Thanks, >> -Weijun >> >> On Tue, Feb 16, 2010 at 5:20 PM, Jonathan Ellis wrot= e: >>> >>> On Tue, Feb 16, 2010 at 7:17 PM, Jonathan Ellis wro= te: >>> > On Tue, Feb 16, 2010 at 7:11 PM, Weijun Li wrote= : >>> >> Just started to play with the row cache feature in trunk: it seems t= o >>> >> be >>> >> working fine so far except that for RowsCached parameter you need to >>> >> specify >>> >> number of rows rather than a percentage (e.g., "20%" doesn't work). >>> > >>> > 20% works, but it's 20% of the rows at server startup. =A0So on a fre= sh >>> > start that is zero. >>> > >>> > Maybe we should just get rid of the % feature... >>> >>> (Actually, it shouldn't be hard to update this on flush, if you want >>> to open a ticket.) >> >> >