Return-Path: Delivered-To: apmail-incubator-cassandra-user-archive@minotaur.apache.org Received: (qmail 68181 invoked from network); 17 Feb 2010 05:23:00 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.3) by minotaur.apache.org with SMTP; 17 Feb 2010 05:23:00 -0000 Received: (qmail 82026 invoked by uid 500); 17 Feb 2010 05:22:59 -0000 Delivered-To: apmail-incubator-cassandra-user-archive@incubator.apache.org Received: (qmail 81987 invoked by uid 500); 17 Feb 2010 05:22:59 -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 81978 invoked by uid 99); 17 Feb 2010 05:22:59 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 17 Feb 2010 05:22:59 +0000 X-ASF-Spam-Status: No, hits=-0.0 required=10.0 tests=SPF_PASS X-Spam-Check-By: apache.org Received-SPF: pass (athena.apache.org: domain of jbellis@gmail.com designates 74.125.78.147 as permitted sender) Received: from [74.125.78.147] (HELO ey-out-1920.google.com) (74.125.78.147) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 17 Feb 2010 05:22:52 +0000 Received: by ey-out-1920.google.com with SMTP id 4so1070763eyg.4 for ; Tue, 16 Feb 2010 21:22:31 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:mime-version:received:in-reply-to:references :from:date:message-id:subject:to:content-type :content-transfer-encoding; bh=Ug5GYj4gpOJjosEnVpHtyyXGTtY7ZKypvGJ6YflWDsk=; b=FS5HAQNnsyeaa3BkPwol19R/agqIp09uNhrdeAE+l86j0RzfL0es5OWyX2NHG0Yct3 78syxzlCUUbUyR1QMYYFJt84oeOKrJ3UPa9moO6O2e0nHaqHKX0kSNBqWYy+/dh0/tIj tptUlsFTBsiKc05mZWJLn8jOo5ojPKUbTyH70= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=mime-version:in-reply-to:references:from:date:message-id:subject:to :content-type:content-transfer-encoding; b=g6L6VTeTgcBnKjUBu0ccKyhkdtvzDC7/3INXA2hhuvOeGRjX4J1FU0wh3Whs3rbsz8 30xyTDfjR950g8TAy2svZaQU45igtNv4V7pBH0ZfxfRn3JdgyCqv9uBQisPDrGRlPHyW bg2lq5/tI8z24c5h9noRchk5cZt0NGC+CctBU= MIME-Version: 1.0 Received: by 10.216.85.14 with SMTP id t14mr4348514wee.222.1266384151147; Tue, 16 Feb 2010 21:22:31 -0800 (PST) In-Reply-To: References: From: Jonathan Ellis Date: Tue, 16 Feb 2010 23:22:11 -0600 Message-ID: Subject: Re: Testing row cache feature in trunk: write should put record in cache To: cassandra-user@incubator.apache.org Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable ... 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.) >> >> >