From b55b26d790bee95fa53078e85d8aa5dc86fc6193 Mon Sep 17 00:00:00 2001 From: Jonathan Ellis Date: Wed, 17 Feb 2010 23:22:23 +0000 Subject: [PATCH] use a sorted map for memtable contents to make range queries not have to sort every time patch by jbellis; reviewed by Stu Hood for CASSANDRA-799 git-svn-id: https://svn.apache.org/repos/asf/incubator/cassandra/trunk@911223 13f79535-47bb-0310-9956-ffa450edef68 --- CHANGES.txt | 4 ++ conf/storage-conf.xml | 2 +- .../apache/cassandra/db/BinaryMemtable.java | 16 ++--- .../cassandra/db/ColumnFamilyStore.java | 16 ++--- .../org/apache/cassandra/db/IFlushable.java | 5 -- .../org/apache/cassandra/db/Memtable.java | 68 ++++++------------- 6 files changed, 40 insertions(+), 71 deletions(-) diff --git a/CHANGES.txt b/CHANGES.txt index 6d6d0945e3..526d600562 100644 --- a/CHANGES.txt +++ b/CHANGES.txt @@ -25,6 +25,10 @@ dev get_string_list_property * jmx interface for tracking operation mode and streams in general. (CASSANDRA-709) + * keep memtables in sorted order to improve range query performance + (CASSANDRA-799) + * use while loop instead of recursion when trimming sstables compaction list + to avoid blowing stack in pathological cases (CASSANDRA-804) 0.5.1 diff --git a/conf/storage-conf.xml b/conf/storage-conf.xml index 324babbc63..f08b5e0b21 100644 --- a/conf/storage-conf.xml +++ b/conf/storage-conf.xml @@ -308,7 +308,7 @@ ~ ColumnFamily before flushing to disk. This is also a per-memtable ~ setting. Use with MemtableThroughputInMB to tune memory usage. --> - 0.1 + 0.3