Return-Path: X-Original-To: apmail-couchdb-dev-archive@www.apache.org Delivered-To: apmail-couchdb-dev-archive@www.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id 915A3612D for ; Fri, 24 Jun 2011 17:08:57 +0000 (UTC) Received: (qmail 42137 invoked by uid 500); 24 Jun 2011 17:08:57 -0000 Delivered-To: apmail-couchdb-dev-archive@couchdb.apache.org Received: (qmail 42085 invoked by uid 500); 24 Jun 2011 17:08:56 -0000 Mailing-List: contact dev-help@couchdb.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: dev@couchdb.apache.org Delivered-To: mailing list dev@couchdb.apache.org Received: (qmail 42066 invoked by uid 99); 24 Jun 2011 17:08:56 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 24 Jun 2011 17:08:56 +0000 X-ASF-Spam-Status: No, hits=-0.7 required=5.0 tests=FREEMAIL_FROM,RCVD_IN_DNSWL_LOW,RFC_ABUSE_POST,SPF_PASS,T_TO_NO_BRKTS_FREEMAIL X-Spam-Check-By: apache.org Received-SPF: pass (athena.apache.org: domain of paul.joseph.davis@gmail.com designates 209.85.220.180 as permitted sender) Received: from [209.85.220.180] (HELO mail-vx0-f180.google.com) (209.85.220.180) by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 24 Jun 2011 17:08:52 +0000 Received: by vxd7 with SMTP id 7so3253909vxd.11 for ; Fri, 24 Jun 2011 10:08:31 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:mime-version:in-reply-to:references:from:date :message-id:subject:to:content-type; bh=0lOKtqF5WlAnuAdsEvzYRd3yJSTj5HwDz5SyNcULIhQ=; b=MrTeENC24ISvg5Qaf7/+830GNzipXOAKXk2T9U01vSjyXLeYHNZlfgBD+wGPweCeaI 4xQS/Nd7HK5eY7w7/jZy7y+fj+RXxG72/RiYY4IaDYYSarD6Dtpwvx63u9VyRoMT0mp0 8BbVKoQ6cy1wobNJId12fAlbPJAFG0xYf8YQ4= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=mime-version:in-reply-to:references:from:date:message-id:subject:to :content-type; b=QSrY341+AddIex6jrywfBXbu7a8yHarxKpJKYyERPaE0POdkkFysA7ducz83VSCefA YWo0aOQEVt1wS6lONPbHbyR1EKDQti9e/tpbX4Xml3XpoTnlwGkWqOY/+h9CZzbLyPj5 xlKOal11wdDlpVAFQFp50PbiXNtCuCopNIqSQ= Received: by 10.52.91.148 with SMTP id ce20mr5048837vdb.101.1308935311178; Fri, 24 Jun 2011 10:08:31 -0700 (PDT) MIME-Version: 1.0 Received: by 10.52.162.168 with HTTP; Fri, 24 Jun 2011 10:07:50 -0700 (PDT) In-Reply-To: References: <5C39FB5A-0ACA-4FF9-BD90-2EBECF271850@apache.org> <7939FC32-4118-4B9D-A9D5-12F8EEC220FD@apache.org> <6E7AF2B8-3377-416D-8EBE-33664C00FD79@dionne-associates.com> From: Paul Davis Date: Fri, 24 Jun 2011 13:07:50 -0400 Message-ID: Subject: Re: New write performance optimizations coming To: dev@couchdb.apache.org Content-Type: text/plain; charset=ISO-8859-1 On Fri, Jun 24, 2011 at 12:59 PM, Randall Leeds wrote: > On Fri, Jun 24, 2011 at 03:36, Robert Dionne > wrote: >> This is interesting work, I notice some substantial changes to couch_btree, a new query_modify_raw, etc.. >> >> I'm wondering though if we'd be better off to base these changes on the re factored version of couch_btree that davisp has[1]. I haven't looked at it too closely or tested with it but if I recall the goal was first to achieve >> a more readable version with identical semantics so that we could then move forward with improvements. >> >> >> [1] https://github.com/davisp/couchdb/commit/37c1c9b4b90f6c0f3c22b75dfb2ae55c8b708ab1 >> >> > > I think the only thing holding that back was a good benchmarking. > Can we throw these new benchmarks at that branch? > The concerns expressed last time were due to the switch to using the cmp_keys function. I think it was Randall that had the idea to rewrite the get_node write_node functions to do something in ets to try and focus in on testing just the btree changes. I'd also note that I haven't pulled in the recent changes from trunk that include data sizes and compression into the new branch, so it'll need a bit of work there as well.