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 D6E761089A for ; Thu, 27 Mar 2014 00:42:15 +0000 (UTC) Received: (qmail 83460 invoked by uid 500); 27 Mar 2014 00:42:15 -0000 Delivered-To: apmail-cassandra-commits-archive@cassandra.apache.org Received: (qmail 83432 invoked by uid 500); 27 Mar 2014 00:42:15 -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 83422 invoked by uid 99); 27 Mar 2014 00:42:14 -0000 Received: from arcas.apache.org (HELO arcas.apache.org) (140.211.11.28) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 27 Mar 2014 00:42:14 +0000 Date: Thu, 27 Mar 2014 00:42:14 +0000 (UTC) From: "Jonathan Ellis (JIRA)" To: commits@cassandra.apache.org Message-ID: In-Reply-To: References: Subject: [jira] [Commented] (CASSANDRA-6933) Optimise Read Comparison Costs in collectTimeOrderedData 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-6933?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13948711#comment-13948711 ] Jonathan Ellis commented on CASSANDRA-6933: ------------------------------------------- I'm pretty sure "keep track of how many keys were skipped to satisfy last lookup" is a premature optimization. bsearch is logarithmic after all, so it doesn't take a whole lot of "oops we were wrong, try again" to eat up the gains. > Optimise Read Comparison Costs in collectTimeOrderedData > -------------------------------------------------------- > > Key: CASSANDRA-6933 > URL: https://issues.apache.org/jira/browse/CASSANDRA-6933 > Project: Cassandra > Issue Type: Improvement > Components: Core > Reporter: Benedict > Assignee: Benedict > Priority: Minor > Labels: performance > Fix For: 2.1 > > > Introduce a new SearchIterator construct, which can be obtained from a ColumnFamily, which permits efficiently iterating a subset of the cells in ascending order. Essentially, it saves the previously visited position and searches from there, but also tries to avoid searching the whole remaining space if possible. -- This message was sent by Atlassian JIRA (v6.2#6252)