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 3763F78F6 for ; Tue, 4 Oct 2011 20:08:59 +0000 (UTC) Received: (qmail 54717 invoked by uid 500); 4 Oct 2011 20:08:58 -0000 Delivered-To: apmail-couchdb-dev-archive@couchdb.apache.org Received: (qmail 54682 invoked by uid 500); 4 Oct 2011 20:08:58 -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 54673 invoked by uid 99); 4 Oct 2011 20:08:58 -0000 Received: from nike.apache.org (HELO nike.apache.org) (192.87.106.230) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 04 Oct 2011 20:08:58 +0000 X-ASF-Spam-Status: No, hits=-0.7 required=5.0 tests=FREEMAIL_FROM,RCVD_IN_DNSWL_LOW,SPF_PASS,T_TO_NO_BRKTS_FREEMAIL X-Spam-Check-By: apache.org Received-SPF: pass (nike.apache.org: domain of bchesneau@gmail.com designates 209.85.215.180 as permitted sender) Received: from [209.85.215.180] (HELO mail-ey0-f180.google.com) (209.85.215.180) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 04 Oct 2011 20:08:51 +0000 Received: by eyb6 with SMTP id 6so1221129eyb.11 for ; Tue, 04 Oct 2011 13:08:31 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :content-type:content-transfer-encoding; bh=NQq0GlVEj59Rv95gqHL5x2yLrR5PWLMMRoIbuckvWj0=; b=IZU2dHeir5B16RtJVS4MUfnE9sT7uMUXtVfsNgQoEPRX/e22yuNmTo4HJjHHCSOFNB su5JdrPr812S+KFQcP4sfWVTSiPTujhMZDH73/X6tjbeqJQCB4Eb6WYW/yG0cZjJS/W2 3UH69Zv3XltVFPdvTmZLyNtMdpDZAfTs0++jc= MIME-Version: 1.0 Received: by 10.213.98.76 with SMTP id p12mr1639087ebn.39.1317758910891; Tue, 04 Oct 2011 13:08:30 -0700 (PDT) Received: by 10.213.19.129 with HTTP; Tue, 4 Oct 2011 13:08:30 -0700 (PDT) In-Reply-To: References: Date: Tue, 4 Oct 2011 22:08:30 +0200 Message-ID: Subject: Re: Universal Binary JSON in CouchDB From: Benoit Chesneau To: dev@couchdb.apache.org Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable X-Virus-Checked: Checked by ClamAV on apache.org On Tue, Oct 4, 2011 at 9:33 PM, Paul Davis wr= ote: > For a first step I'd prefer to see a patch that makes the HTTP > responses choose a content type based on accept headers. Once we see > what that looks like and how/if it changes performance then *maybe* we > can start talking about on disk formats. Changing how we store things > on disk is a fairly high impact change that we'll need to consider > carefully. +1 > > That said, the ubjson spec is starting to look reasonable and capable > to be an alternative content-type produced by CouchDB. If someone were > to write a patch I'd review it quite enthusiastically. > > I think I would prefer to use protobuffs format though. Anyway if wwe change the api to handle all types that would be pluggable without problem. - beno=EEt