Return-Path: X-Original-To: apmail-cassandra-commits-archive@www.apache.org Delivered-To: apmail-cassandra-commits-archive@www.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id D3783409F for ; Tue, 21 Jun 2011 19:56:08 +0000 (UTC) Received: (qmail 58303 invoked by uid 500); 21 Jun 2011 19:56:08 -0000 Delivered-To: apmail-cassandra-commits-archive@cassandra.apache.org Received: (qmail 58281 invoked by uid 500); 21 Jun 2011 19:56:08 -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 58272 invoked by uid 99); 21 Jun 2011 19:56:08 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 21 Jun 2011 19:56:08 +0000 X-ASF-Spam-Status: No, hits=-2000.0 required=5.0 tests=ALL_TRUSTED,T_RP_MATCHES_RCVD X-Spam-Check-By: apache.org Received: from [140.211.11.116] (HELO hel.zones.apache.org) (140.211.11.116) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 21 Jun 2011 19:56:07 +0000 Received: from hel.zones.apache.org (hel.zones.apache.org [140.211.11.116]) by hel.zones.apache.org (Postfix) with ESMTP id 6DD2A426D77 for ; Tue, 21 Jun 2011 19:55:47 +0000 (UTC) Date: Tue, 21 Jun 2011 19:55:47 +0000 (UTC) From: "Chris Burroughs (JIRA)" To: commits@cassandra.apache.org Message-ID: <827120764.25851.1308686147446.JavaMail.tomcat@hel.zones.apache.org> In-Reply-To: <28973927.294401294778446558.JavaMail.jira@thor> Subject: [jira] [Issue Comment Edited] (CASSANDRA-1966) Option to control how many items are read on cache load MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit X-JIRA-FingerPrint: 30527f35849b9dde25b450d4833f0394 [ https://issues.apache.org/jira/browse/CASSANDRA-1966?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13052789#comment-13052789 ] Chris Burroughs edited comment on CASSANDRA-1966 at 6/21/11 7:54 PM: --------------------------------------------------------------------- - double --> int for thrift/avro - -1 --> max int for special value (but it's still a special value) - CLI support - Schema migration should work now, only jmx changes worked with v1. I think I got everything from http://wiki.apache.org/cassandra/ConfigurationNotes down, but admit that I'm nervous at the size of the patch. Max int is slightly confusing in jconsole, but I don't have a strong opinion between that and -1. was (Author: cburroughs): - double --> int for thrift/avro - -1 --> max int for special value (but it's still a special value) - CLI support I think I got everything from http://wiki.apache.org/cassandra/ConfigurationNotes down, but admit that I'm nervous at the size of the patch. Max int is slightly confusing in jconsole, but I don't have a strong opinion between that and -1. > 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 > Assignee: Chris Burroughs > Priority: Minor > Attachments: 1966-v1.txt, 1966-v2.txt > > > 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. For more information on JIRA, see: http://www.atlassian.com/software/jira