Return-Path: Delivered-To: apmail-couchdb-user-archive@www.apache.org Received: (qmail 38884 invoked from network); 13 Aug 2010 12:27:34 -0000 Received: from unknown (HELO mail.apache.org) (140.211.11.3) by 140.211.11.9 with SMTP; 13 Aug 2010 12:27:34 -0000 Received: (qmail 70051 invoked by uid 500); 13 Aug 2010 12:27:33 -0000 Delivered-To: apmail-couchdb-user-archive@couchdb.apache.org Received: (qmail 69915 invoked by uid 500); 13 Aug 2010 12:27:31 -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 69906 invoked by uid 99); 13 Aug 2010 12:27:30 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 13 Aug 2010 12:27:30 +0000 X-ASF-Spam-Status: No, hits=2.2 required=10.0 tests=FREEMAIL_FROM,HTML_MESSAGE,RCVD_IN_DNSWL_NONE,SPF_PASS,T_TO_NO_BRKTS_FREEMAIL X-Spam-Check-By: apache.org Received-SPF: pass (athena.apache.org: domain of fdmanana@gmail.com designates 209.85.213.180 as permitted sender) Received: from [209.85.213.180] (HELO mail-yx0-f180.google.com) (209.85.213.180) by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 13 Aug 2010 12:27:23 +0000 Received: by yxi11 with SMTP id 11so62554yxi.11 for ; Fri, 13 Aug 2010 05:27:03 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:mime-version:received:sender:received :in-reply-to:references:date:x-google-sender-auth:message-id:subject :from:to:content-type; bh=vHOAr2WuuZAHLYevMJKmAYcrYRRK8OgAwHohZo+VAbU=; b=p4gvqANTpM927JucINYaNnsOgHjhcou/kzid9TO/Oe/B+B3B4U8imHH3fcciAwtIRv J1l7h73x4NYTpLEiHxn6am/tjjefSoVRe33viTMQRtw51uwLLvYM+QHz8T3AlnMFlMM5 UV9gruUrXxGcCCxBB/Z0g6F0eVIzzfLIuW3A4= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=mime-version:sender:in-reply-to:references:date :x-google-sender-auth:message-id:subject:from:to:content-type; b=KdcrPrjOFxXH0F0BHE1/RoukmLakPUwrId8ShgQaGS4SyQfLbcsWel6+g0Yd4yDhYB 9WVWasrnKH4vvA05LO7BA8yDPqxQ3ymyhU7+u22y7wYemSFLY/2O2lGLJaoWxQjMhFsF Ai3mCj55x8FVedzBFLhWwT3Gv+K7T6nvHBmEc= MIME-Version: 1.0 Received: by 10.231.59.1 with SMTP id j1mr1736974ibh.55.1281702422671; Fri, 13 Aug 2010 05:27:02 -0700 (PDT) Sender: fdmanana@gmail.com Received: by 10.231.185.15 with HTTP; Fri, 13 Aug 2010 05:27:02 -0700 (PDT) In-Reply-To: References: <6A89A563-DD8C-4329-8805-FEF6A7F280F2@apache.org> Date: Fri, 13 Aug 2010 13:27:02 +0100 X-Google-Sender-Auth: sGS9Yj-cqVw_SuzS8Mbr1UnluYQ Message-ID: Subject: Re: Is it good idea put many(100 000) big attachments to single doc? From: Filipe David Manana To: user@couchdb.apache.org Content-Type: multipart/alternative; boundary=001485ebea309c71c8048db3992d --001485ebea309c71c8048db3992d Content-Type: text/plain; charset=UTF-8 On Fri, Aug 13, 2010 at 1:23 PM, faust 1111 wrote: > Yes it's possible but each time when i put attachment i must create > new doc and remember doc id +attachment_name > if i keep all attachments in one doc i can remember only > attachment_name, its simple. > If you do a PUT /dbname/docname/attachment.whatever (attachment standalone API) it will create the document if it doesn't exist already. The doc will be empty, but maybe it's not an issue for your case. > > > 2010/8/13 Noah Slater : > > What about a separate db for your attachments, with one attachment per > doc? > > > > On 13 Aug 2010, at 12:03, faust 1111 wrote: > > > >> Hi guy's. > >> I have idea keep all attachments in separate db, separate from docs > >> (its allow me replicate only docs without attachments), > >> and in doc save link to attachment in separate db. > >> > >> is it possible put many(100 000) big attachments to single doc? > >> Thanks for help! > > > > > -- Filipe David Manana, fdmanana@gmail.com, fdmanana@apache.org "Reasonable men adapt themselves to the world. Unreasonable men adapt the world to themselves. That's why all progress depends on unreasonable men." --001485ebea309c71c8048db3992d--