Return-Path: Delivered-To: apmail-cassandra-commits-archive@www.apache.org Received: (qmail 17015 invoked from network); 12 Jan 2011 02:23:10 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.3) by minotaur.apache.org with SMTP; 12 Jan 2011 02:23:10 -0000 Received: (qmail 20297 invoked by uid 500); 12 Jan 2011 02:23:10 -0000 Delivered-To: apmail-cassandra-commits-archive@cassandra.apache.org Received: (qmail 20277 invoked by uid 500); 12 Jan 2011 02:23:10 -0000 Mailing-List: contact commits-help@cassandra.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: dev@cassandra.apache.org Delivered-To: mailing list commits@cassandra.apache.org Received: (qmail 20269 invoked by uid 99); 12 Jan 2011 02:23:10 -0000 Received: from nike.apache.org (HELO nike.apache.org) (192.87.106.230) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 12 Jan 2011 02:23:10 +0000 X-ASF-Spam-Status: No, hits=-2000.0 required=10.0 tests=ALL_TRUSTED X-Spam-Check-By: apache.org Received: from [140.211.11.22] (HELO thor.apache.org) (140.211.11.22) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 12 Jan 2011 02:23:08 +0000 Received: from thor (localhost [127.0.0.1]) by thor.apache.org (8.13.8+Sun/8.13.8) with ESMTP id p0C2MlJg019937 for ; Wed, 12 Jan 2011 02:22:47 GMT Message-ID: <12456358.303761294798967087.JavaMail.jira@thor> Date: Tue, 11 Jan 2011 21:22:47 -0500 (EST) From: "Chris Burroughs (JIRA)" To: commits@cassandra.apache.org Subject: [jira] Commented: (CASSANDRA-1966) Option to control how many items are read on cache load In-Reply-To: <28973927.294401294778446558.JavaMail.jira@thor> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit X-JIRA-FingerPrint: 30527f35849b9dde25b450d4833f0394 X-Virus-Checked: Checked by ClamAV on apache.org [ https://issues.apache.org/jira/browse/CASSANDRA-1966?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12980513#action_12980513 ] Chris Burroughs commented on CASSANDRA-1966: -------------------------------------------- I take this to mean that ConcurrentLinkedHashMap does not provide the ability to iterate -- in even an approximation of -- "least likely to be evicted next" order. > Option to control how many items are read on cache load > ------------------------------------------------------- > > Key: CASSANDRA-1966 > URL: https://issues.apache.org/jira/browse/CASSANDRA-1966 > Project: Cassandra > Issue Type: Improvement > Components: Core > Reporter: Chris Burroughs > > CASSANDRA-1417 added an option to save the key and/or row cache keys which is cool. However, for a row large cache it can take a long time to read all of the rows. For example I have a 400,000 item row cache, and loading that on restart takes a little under an hour. > In addition to configuring the size of the row cache, and how often it should be saved to disk, I propose an option to control how many items are loaded on startup (or alternately only saving n items out of the full row cache to begin with). -- This message is automatically generated by JIRA. - You can reply to this email to add a comment to the issue online.