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 4A6DFDC84 for ; Tue, 21 Aug 2012 23:48:40 +0000 (UTC) Received: (qmail 78201 invoked by uid 500); 21 Aug 2012 23:48:39 -0000 Delivered-To: apmail-cassandra-commits-archive@cassandra.apache.org Received: (qmail 78167 invoked by uid 500); 21 Aug 2012 23:48:39 -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 77990 invoked by uid 99); 21 Aug 2012 23:48:39 -0000 Received: from arcas.apache.org (HELO arcas) (140.211.11.28) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 21 Aug 2012 23:48:38 +0000 Received: from arcas.apache.org (localhost [127.0.0.1]) by arcas (Postfix) with ESMTP id 5CD222C5C01 for ; Tue, 21 Aug 2012 23:48:38 +0000 (UTC) Date: Wed, 22 Aug 2012 10:48:38 +1100 (NCT) From: "Edward Capriolo (JIRA)" To: commits@cassandra.apache.org Message-ID: <1215480208.37941.1345592918380.JavaMail.jiratomcat@arcas> In-Reply-To: <1774763565.37924.1345592798104.JavaMail.jiratomcat@arcas> Subject: [jira] [Updated] (CASSANDRA-4565) TTL columns with older then gcgrace do not need to flush 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-4565?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ] Edward Capriolo updated CASSANDRA-4565: --------------------------------------- Attachment: cassandra-4565.patch.1.txt First attempt at a patch. Test passes, but we will likely refine this later. > TTL columns with older then gcgrace do not need to flush > -------------------------------------------------------- > > Key: CASSANDRA-4565 > URL: https://issues.apache.org/jira/browse/CASSANDRA-4565 > Project: Cassandra > Issue Type: Improvement > Reporter: Edward Capriolo > Assignee: Edward Capriolo > Attachments: cassandra-4565.patch.1.txt > > > With memcache many people are willing to sacrifice durability for performance. Cassandra has a TimeToLive feature that can be used in caching scenarios with low values for gc_grace_seconds. However from a code dive it seems that cassandra will always write TTL to disk, even those that are beyond gc_grace_seconds. If a user very large memtables,small ttl, and low gc_grace it is possible that writing memtables can be skipped entirely in some scenarios. -- This message is automatically generated by JIRA. If you think it was sent incorrectly, please contact your JIRA administrators: https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa For more information on JIRA, see: http://www.atlassian.com/software/jira