Return-Path: Delivered-To: apmail-incubator-couchdb-user-archive@locus.apache.org Received: (qmail 9446 invoked from network); 3 Jul 2008 13:13:41 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.2) by minotaur.apache.org with SMTP; 3 Jul 2008 13:13:41 -0000 Received: (qmail 39210 invoked by uid 500); 3 Jul 2008 13:13:32 -0000 Delivered-To: apmail-incubator-couchdb-user-archive@incubator.apache.org Received: (qmail 39184 invoked by uid 500); 3 Jul 2008 13:13:32 -0000 Mailing-List: contact couchdb-user-help@incubator.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: couchdb-user@incubator.apache.org Delivered-To: mailing list couchdb-user@incubator.apache.org Received: (qmail 39173 invoked by uid 99); 3 Jul 2008 13:13:32 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 03 Jul 2008 06:13:32 -0700 X-ASF-Spam-Status: No, hits=1.5 required=10.0 tests=SPF_PASS,WEIRD_PORT X-Spam-Check-By: apache.org Received-SPF: pass (athena.apache.org: domain of dundeemt@gmail.com designates 209.85.198.249 as permitted sender) Received: from [209.85.198.249] (HELO rv-out-0708.google.com) (209.85.198.249) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 03 Jul 2008 13:12:42 +0000 Received: by rv-out-0708.google.com with SMTP id k29so891179rvb.0 for ; Thu, 03 Jul 2008 06:13:03 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:received:received:message-id:date:from:reply-to :to:subject:mime-version:content-type:content-transfer-encoding :content-disposition; bh=4n970TC3M17SAS/yHoWMhGbRVqnIntbFfUzIGDwLQkg=; b=b4p37cjmJpPqRPgs1PHZNTSrTXWE2op3/kaN78Nz5k8A34ITEZqpHMch45AHUB/ElL K2bvBjaFyU+aRzCyNTI404HeYWK9koyPDPJ5FWlm+s7XUScfE11GmkN9HRJMX28ldsY7 00AAFkHU2aS7orB3U07R1rMPPxgj1CJ3ViPQg= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=message-id:date:from:reply-to:to:subject:mime-version:content-type :content-transfer-encoding:content-disposition; b=eOMikDiGhLBbXw6p8GBNgxjTQnUTXGTVD9p3e90sv+AKGO/5bxH/9+35j/AKTlEXGe HdbVThMmqmYNxUrsN0MKj88yI9fKihcjvoAa+fnLNIeMjy5Xc/pL/Wz5bSoaujhm1j6u ts4ofnK1sGydd+UBidMqdadY2WVqjnlokH2VY= Received: by 10.140.157.5 with SMTP id f5mr11362rve.153.1215090783427; Thu, 03 Jul 2008 06:13:03 -0700 (PDT) Received: by 10.141.132.10 with HTTP; Thu, 3 Jul 2008 06:13:03 -0700 (PDT) Message-ID: <5aaed53f0807030613u78e5345ew14fdca1846ba4b5c@mail.gmail.com> Date: Thu, 3 Jul 2008 08:13:03 -0500 From: "Jeff Hinrichs - DM&T" Reply-To: tech@dundeemt.com To: couchdb-user@incubator.apache.org Subject: File Attachments MIME-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit Content-Disposition: inline X-Virus-Checked: Checked by ClamAV on apache.org Can someone point me to the wiki or discussion about how to handle documents with attached file(s)? I see references to the subject in various places but have yet to find the "couchdb" way of doing it. Do I just base64 encode the file contents and save that along with filetype and other name attrs in a couchdb document? Or is it preferred to mime-encode like cmlenz does with the dump/load scripts? I see in the wiki under UriTemplates, the method to download a file attachment, but that would seem to infer that there is a correct way to attach a file so that the method [WWW] http://localhost:5984/dbname/docid/_bin/filename does the right thing. Also, I've seen mention in the list of a 2GB limit to a database, however I can't seem to find that in the docs -- is this limit correct? If it is, are there plans to expand the limit? Finally, the idea I am toying with is using couchdb to store binary documents with meta information. Think of something like a blog, but instead of the post content being text, it would be a binary document (PDF, OO, etc), the comments would be other binary documents and their associated meta data. Is couchdb a non-optimal solution or would it be a good solution? The database would be rather large and constantly growing -- if couchdb is a good fit, are there limits to database size that would affect the architecture? partitioning, etc? This wouldn't be a document revision control system, once an attached file is stored it won't be changed, although amended documents would be stored in the "comments" of the original post. Regards, Jeff