Return-Path: Delivered-To: apmail-couchdb-user-archive@www.apache.org Received: (qmail 87167 invoked from network); 23 Mar 2010 16:31:16 -0000 Received: from unknown (HELO mail.apache.org) (140.211.11.3) by 140.211.11.9 with SMTP; 23 Mar 2010 16:31:16 -0000 Received: (qmail 2527 invoked by uid 500); 23 Mar 2010 16:31:14 -0000 Delivered-To: apmail-couchdb-user-archive@couchdb.apache.org Received: (qmail 2499 invoked by uid 500); 23 Mar 2010 16:31:14 -0000 Mailing-List: contact user-help@couchdb.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: user@couchdb.apache.org Delivered-To: mailing list user@couchdb.apache.org Received: (qmail 2490 invoked by uid 99); 23 Mar 2010 16:31:14 -0000 Received: from nike.apache.org (HELO nike.apache.org) (192.87.106.230) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 23 Mar 2010 16:31:14 +0000 X-ASF-Spam-Status: No, hits=2.5 required=10.0 tests=FREEMAIL_FROM,FREEMAIL_REPLY,RCVD_IN_DNSWL_NONE,SPF_PASS,T_TO_NO_BRKTS_FREEMAIL X-Spam-Check-By: apache.org Received-SPF: pass (nike.apache.org: domain of jchris@gmail.com designates 72.14.220.155 as permitted sender) Received: from [72.14.220.155] (HELO fg-out-1718.google.com) (72.14.220.155) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 23 Mar 2010 16:31:04 +0000 Received: by fg-out-1718.google.com with SMTP id d23so995222fga.5 for ; Tue, 23 Mar 2010 09:30:44 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:received:received:content-type:mime-version :subject:from:in-reply-to:date:content-transfer-encoding:message-id :references:to:x-mailer; bh=2E2Uiy57QiyULat/95r0deodNbta+oW/rray1Yyt9Zc=; b=Pb2kImU1loiUYCJyyRdDIsrYo1/HZlfAl8DtHBOi6MLiF54IsEMXPUJ0XNOOnz9Zdz xAlExt71dEvFroq52Ix50yC0FKfXI5vNX/3XptN2gNIQNAtqANsNCdrHUwuFpBvCEPzM cgMc3mtj9SocWX9XpIB9nFZNoob7KwvBAk3vg= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=content-type:mime-version:subject:from:in-reply-to:date :content-transfer-encoding:message-id:references:to:x-mailer; b=naqzgTSEaczQv9zOwwr6zA6oRDn7G1BNCdC+8kRY2MsJd63/eXohPTWCOZrAHZEGU6 W9bNJWlHMRp8eOY7twzFwuaiv8ZDIL0yn8u2li+NGvsUdPktvnCTyoHQSmCgyKGP34Rb 7QITtTXTjrYXUJhh7ppMf+x0VG+xUM7Xp00aA= Received: by 10.86.6.16 with SMTP id 16mr7343618fgf.55.1269361843848; Tue, 23 Mar 2010 09:30:43 -0700 (PDT) Received: from [10.0.1.213] (h-74-1-186-35.snfccasy.static.covad.net [74.1.186.35]) by mx.google.com with ESMTPS id 16sm2926078fxm.8.2010.03.23.09.30.40 (version=TLSv1/SSLv3 cipher=RC4-MD5); Tue, 23 Mar 2010 09:30:42 -0700 (PDT) Content-Type: text/plain; charset=us-ascii Mime-Version: 1.0 (Apple Message framework v1077) Subject: Re: standalone attachments and content-encoding header From: J Chris Anderson In-Reply-To: Date: Tue, 23 Mar 2010 09:30:37 -0700 Content-Transfer-Encoding: quoted-printable Message-Id: <0D875BD6-E3B4-432C-980C-99990FF5A6AE@gmail.com> References: <20100317202433.GB15544@uk.tiscali.com> <560F52C4-A702-466F-9A7B-227FB3B81C0D@merrells.com> <7D81536C-491E-47FC-A2A0-BFEB2E3020B7@merrells.com> <20100318121929.GA6866@uk.tiscali.com> To: user@couchdb.apache.org X-Mailer: Apple Mail (2.1077) X-Virus-Checked: Checked by ClamAV on apache.org On Mar 23, 2010, at 6:40 AM, Filipe David Manana wrote: > On Tue, Mar 23, 2010 at 12:36 AM, J Chris Anderson = wrote: >=20 >> So we should make sure our public api will accommodate patches to add >> support for deflate and compress. This is more important than = actually >> supporting those encodings, for now. >>=20 >>=20 > In that case, if nobody is against it, I'll do a patch that: >=20 > - removes the ?att_gzip_length=3Dtrue doc query parameter > - adds the doc query parameter ?att_encoding_info=3Dtrue > - adds two fields to an attachment stub, only when the doc is queried = with > the above parameter, that are "encoding" (currently the value will = always be > "gzip") and "encoded_length" (which replaces the "gzip_length" field). >=20 > This would imply also adding a new extra field to the record #att = named > "encoding" for e.g., or better yet, renaming #att.comp to = #att.encoding > (currently with only 2 possible values "identity" and "gzip"), which = in turn > implies changing the DB file format :( >=20 > Perhaps those 2 attachment stub properties should be always present? = Without > needing that doc query parameter "att_encoding_info=3Dtrue" >=20 I think it'd be good to keep the file format unchanged (even if the = names aren't 100% descriptive -- "comp" seems ok for now, if there are = code comments added.) It should also be possible to use pattern matching to treat comp =3D = true as comp =3D "gzip". Also, I don't think there is a rush on this stuff, just as long as we = move in the proper direction. Chris >=20 >> Chris >>=20 >>> -- >>> Filipe David Manana, >>> fdmanana@gmail.com >>>=20 >>> "Reasonable men adapt themselves to the world. >>> Unreasonable men adapt the world to themselves. >>> That's why all progress depends on unreasonable men." >>=20 >>=20 >=20 >=20 > --=20 > Filipe David Manana, > fdmanana@gmail.com >=20 > "Reasonable men adapt themselves to the world. > Unreasonable men adapt the world to themselves. > That's why all progress depends on unreasonable men."