Return-Path: X-Original-To: apmail-couchdb-user-archive@www.apache.org Delivered-To: apmail-couchdb-user-archive@www.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id F0E1C8F85 for ; Tue, 16 Aug 2011 20:42:50 +0000 (UTC) Received: (qmail 19749 invoked by uid 500); 16 Aug 2011 20:42:49 -0000 Delivered-To: apmail-couchdb-user-archive@couchdb.apache.org Received: (qmail 19685 invoked by uid 500); 16 Aug 2011 20:42:48 -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 19675 invoked by uid 99); 16 Aug 2011 20:42:48 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 16 Aug 2011 20:42:48 +0000 X-ASF-Spam-Status: No, hits=1.5 required=5.0 tests=FREEMAIL_FROM,HTML_MESSAGE,RCVD_IN_DNSWL_LOW,SPF_PASS,T_TO_NO_BRKTS_FREEMAIL X-Spam-Check-By: apache.org Received-SPF: pass (athena.apache.org: domain of antpky@gmail.com designates 209.85.215.52 as permitted sender) Received: from [209.85.215.52] (HELO mail-ew0-f52.google.com) (209.85.215.52) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 16 Aug 2011 20:42:43 +0000 Received: by ewy28 with SMTP id 28so206893ewy.11 for ; Tue, 16 Aug 2011 13:42:21 -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; bh=6ihB3i0nImmV+eJ6oQDXcWekkPophI/zTJLEd+pOKxQ=; b=QwEXYhwwRQ/Ebc8RyIgBU6+8BpsIkAJRW41BSxfkA9+xCdDJohY/zm1loqApOAaZrV ZHMIFMUD+LcMtzlmET7aeaYDrz4o4eQPvW8N3zJm4QB0hg0wC9Q+JQxlzg+97XyaxFtF jDw3743ohg5VtJ84/1jguccFb9j91EA99Jumc= MIME-Version: 1.0 Received: by 10.14.147.12 with SMTP id s12mr59127eej.176.1313527341748; Tue, 16 Aug 2011 13:42:21 -0700 (PDT) Received: by 10.14.45.70 with HTTP; Tue, 16 Aug 2011 13:42:21 -0700 (PDT) Received: by 10.14.45.70 with HTTP; Tue, 16 Aug 2011 13:42:21 -0700 (PDT) In-Reply-To: References: <6448729C6F9F4DEABF68F63145C98E31@rgabostyle.com> Date: Wed, 17 Aug 2011 00:42:21 +0400 Message-ID: Subject: Re: Remove field from view From: Antoine Kurukchi To: user@couchdb.apache.org Content-Type: multipart/alternative; boundary=bcaec51b9f739b927c04aaa56ab9 --bcaec51b9f739b927c04aaa56ab9 Content-Type: text/plain; charset=windows-1252 Content-Transfer-Encoding: quoted-printable Thanks all. I did see the attachments part, but it over complicates the client side code (c++). I toyed with the idea of a seperate database. It's just all the extra code to keep them in sync seems silly. I did manage to get a view to do what I wanted. Initial processing took around 10 mins to populate around 6000 items. But it does strip c from the doc and leaving the doc intact. Changing anything in the docs took very little time to update view. Will test adding and removing tomorrow docs. Just got to get some of the c++ code changed to use this now. Thanks for all the ideas and help. Antoine On Aug 16, 2011 9:08 PM, "Jens Alfke" wrote: > > > On Aug 16, 2011, at 12:23 PM, Mark Hahn wrote: > > Why not put c in a separate doc? Maybe with the same doc id but a > '-c' suffix. Then you can pull it whenever you wish as a second read > by id. You could also use the new {_id: "-c"} feature to include > c. > > Using an attachment seems like the same concept only cleaner, working wit= h the design of CouchDB. > > =97Jens --bcaec51b9f739b927c04aaa56ab9--