Return-Path: Delivered-To: apmail-cassandra-user-archive@www.apache.org Received: (qmail 1249 invoked from network); 5 Dec 2010 16:55:39 -0000 Received: from unknown (HELO mail.apache.org) (140.211.11.3) by 140.211.11.9 with SMTP; 5 Dec 2010 16:55:39 -0000 Received: (qmail 38590 invoked by uid 500); 5 Dec 2010 16:55:37 -0000 Delivered-To: apmail-cassandra-user-archive@cassandra.apache.org Received: (qmail 38531 invoked by uid 500); 5 Dec 2010 16:55:36 -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 38523 invoked by uid 99); 5 Dec 2010 16:55:36 -0000 Received: from nike.apache.org (HELO nike.apache.org) (192.87.106.230) by apache.org (qpsmtpd/0.29) with ESMTP; Sun, 05 Dec 2010 16:55:36 +0000 X-ASF-Spam-Status: No, hits=1.5 required=10.0 tests=FREEMAIL_FROM,HTML_MESSAGE,RCVD_IN_DNSWL_LOW,SPF_PASS,T_TO_NO_BRKTS_FREEMAIL X-Spam-Check-By: apache.org Received-SPF: pass (nike.apache.org: domain of driftx@gmail.com designates 209.85.214.44 as permitted sender) Received: from [209.85.214.44] (HELO mail-bw0-f44.google.com) (209.85.214.44) by apache.org (qpsmtpd/0.29) with ESMTP; Sun, 05 Dec 2010 16:55:28 +0000 Received: by bwz12 with SMTP id 12so10780709bwz.31 for ; Sun, 05 Dec 2010 08:55:08 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:received:mime-version:received:in-reply-to :references:from:date:message-id:subject:to:content-type; bh=xr7qZpenXC9/q6Zs8EyD4tpALnsPOk79cFVvoaZ3Fgo=; b=Mhrk6FyTaI/6ix4X2m3T9sE+49iiMDT7bk/02PYUVtEekfcQ3+Dms8kqQKPwdUpEmb ETskTpjfmacbxRc4OvmMKG7at7Q2Zf7PkDKtbR/ezbU1vMRfLMvetZGqTPCGUDyShaZ1 Gd1P4ZVWjIDeYyF/PrNpH4YU4u51wRNsQT4DA= 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; b=Ja6W1KOgcyTbz2tfh3zGmFd62LYbZ0RiPsIIuLuASgw8RR5qz+tZ0A0aRPW92a3CTG geso5e2Enz8XS3oHQ99N5OGphabzWwHLc9QiWjJzKez92Fosj43d8cVlXG07K65dKDcu I/X8CUGXGyg2v+tidKu4KQUlRzx2jLTGgq9es= Received: by 10.204.118.4 with SMTP id t4mr4638077bkq.157.1291568108391; Sun, 05 Dec 2010 08:55:08 -0800 (PST) MIME-Version: 1.0 Received: by 10.204.23.11 with HTTP; Sun, 5 Dec 2010 08:54:48 -0800 (PST) In-Reply-To: <1d69693.3aba.12cb6bd599b.Coremail.sei_wjx@126.com> References: <1d69693.3aba.12cb6bd599b.Coremail.sei_wjx@126.com> From: Brandon Williams Date: Sun, 5 Dec 2010 10:54:48 -0600 Message-ID: Subject: Re: index file and KeysCached To: user@cassandra.apache.org Content-Type: multipart/alternative; boundary=001636c598554dce940496aca2f7 X-Virus-Checked: Checked by ClamAV on apache.org --001636c598554dce940496aca2f7 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: quoted-printable 2010/12/5 =E9=AD=8F=E9=87=91=E4=BB=99 > for each sstable, there is an index file, which is loaded in memory to > locate a particular key's offset efficiently. > Index files are not held in memory. > and for each CF, KeysCached can be set to cache keys' location. > could you pls tell me the difference between the two? > KeysCached are held in memory. > I'm wondering whether it's necessary to set "KeysCached" for a CF or not. > Not necessary, but advantageous. -Brandon --001636c598554dce940496aca2f7 Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: quoted-printable
2010/12/5 =E9=AD=8F=E9=87=91=E4=BB=99 <sei_wjx@126.com>
for each sstable, there is an index file, which is loaded in memory to loca= te a particular key's offset efficiently.

Index files are not held in memory.
=C2=A0
and for each CF, KeysCached can be set to cache keys' location.
coul= d you pls tell me the difference between the two?

=
KeysCached are held in memory.
=C2=A0
I'm wondering whether it's necessary to set "KeysCached" = for a CF or not.

Not necessary, but adv= antageous.=C2=A0

-Brandon
--001636c598554dce940496aca2f7--