Return-Path: Delivered-To: apmail-incubator-cassandra-commits-archive@minotaur.apache.org Received: (qmail 88146 invoked from network); 8 Apr 2009 17:58:34 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.3) by minotaur.apache.org with SMTP; 8 Apr 2009 17:58:34 -0000 Received: (qmail 69479 invoked by uid 500); 8 Apr 2009 17:58:34 -0000 Delivered-To: apmail-incubator-cassandra-commits-archive@incubator.apache.org Received: (qmail 69442 invoked by uid 500); 8 Apr 2009 17:58:34 -0000 Mailing-List: contact cassandra-commits-help@incubator.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: cassandra-dev@incubator.apache.org Delivered-To: mailing list cassandra-commits@incubator.apache.org Received: (qmail 69400 invoked by uid 99); 8 Apr 2009 17:58:34 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 08 Apr 2009 17:58:34 +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.140] (HELO brutus.apache.org) (140.211.11.140) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 08 Apr 2009 17:58:33 +0000 Received: from brutus (localhost [127.0.0.1]) by brutus.apache.org (Postfix) with ESMTP id 13FF4234C051 for ; Wed, 8 Apr 2009 10:58:13 -0700 (PDT) Message-ID: <856303708.1239213493080.JavaMail.jira@brutus> Date: Wed, 8 Apr 2009 10:58:13 -0700 (PDT) From: "Jonathan Ellis (JIRA)" To: cassandra-commits@incubator.apache.org Subject: [jira] Commented: (CASSANDRA-51) Memory footprint for memtable In-Reply-To: <28465230.1238790553234.JavaMail.jira@brutus> 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-51?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12697123#action_12697123 ] Jonathan Ellis commented on CASSANDRA-51: ----------------------------------------- Oops, I was only looking at EBM.getColumns, not EBM.get which also uses the map. > Memory footprint for memtable > ------------------------------ > > Key: CASSANDRA-51 > URL: https://issues.apache.org/jira/browse/CASSANDRA-51 > Project: Cassandra > Issue Type: Improvement > Environment: all > Reporter: Sandeep Tata > > The implementation of EfficientBidiMap(EBM) today stores the column in two place, a map and a sorted set. Both data structures store exactly the same values. > I assume we're storing this twice so that the map can give us O(1) reads while the sortedset is important for efficient flush. Is this tradeoff important ? Do we want to store the data twice to get O(1) reads over O(log(n)) reads from sortedset? Is the sortedset implementation broken? Perhaps we should consider a configuration option that turns off the map -- write performance will be slightly improved, read performance will be somewhat worse, and the memory footprint will probably be about half. Certainly sounds like a good alternative tradeoff. -- This message is automatically generated by JIRA. - You can reply to this email to add a comment to the issue online.