Return-Path: Delivered-To: apmail-couchdb-user-archive@www.apache.org Received: (qmail 55881 invoked from network); 29 Oct 2010 14:47:44 -0000 Received: from unknown (HELO mail.apache.org) (140.211.11.3) by 140.211.11.9 with SMTP; 29 Oct 2010 14:47:44 -0000 Received: (qmail 2695 invoked by uid 500); 29 Oct 2010 14:47:42 -0000 Delivered-To: apmail-couchdb-user-archive@couchdb.apache.org Received: (qmail 2632 invoked by uid 500); 29 Oct 2010 14:47:41 -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 2624 invoked by uid 99); 29 Oct 2010 14:47:40 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 29 Oct 2010 14:47:40 +0000 X-ASF-Spam-Status: No, hits=0.0 required=10.0 tests=FREEMAIL_FROM,RCVD_IN_DNSWL_NONE,SPF_PASS X-Spam-Check-By: apache.org Received-SPF: pass (athena.apache.org: domain of markjreed@gmail.com designates 74.125.82.54 as permitted sender) Received: from [74.125.82.54] (HELO mail-ww0-f54.google.com) (74.125.82.54) by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 29 Oct 2010 14:47:35 +0000 Received: by wwb13 with SMTP id 13so2086018wwb.23 for ; Fri, 29 Oct 2010 07:47:14 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:mime-version:received:received:in-reply-to :references:date:message-id:subject:from:to:content-type :content-transfer-encoding; bh=9/3NghMtb7blQCVzxhi5jenmDreZEaaMRhz+6MOq4do=; b=uqNdgQ1RbKJbX4/dkyfLgJ1p8mM5No/inbRZYYKea5OYbsnADM8nH0O3TaTs/6RAYb Gmivstx08YsZWVsDC3nWtMP+QyKxsSrnsb6egESfFQFhMroHDsjI7JF+ZDJe2KeJ8DeW im9MiwDRAKxBmbQE5bVG7aNJa5sntaonNYX+I= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :content-type:content-transfer-encoding; b=pfKi1kHp7AfcBpyjtYd3GdzZLAeUusMTpkArEl1wa/fu2LBvwjUSUcZvRrzSckO0bU aOiMPY7Wn5Fnxi9zdE3ak6Xojyl8fuwmzDqnvPbYwmMiTh7sYHutkJ9OndZXdH4lTdkU CnEGzYzqpOIQXX7ngTng/0wSFZfw6NkRuutc8= MIME-Version: 1.0 Received: by 10.227.29.92 with SMTP id p28mr12196359wbc.70.1288363634434; Fri, 29 Oct 2010 07:47:14 -0700 (PDT) Received: by 10.227.21.2 with HTTP; Fri, 29 Oct 2010 07:47:14 -0700 (PDT) In-Reply-To: References: <3AAAF2E5-5345-4192-BC94-51ED931C9827@vpro.nl> Date: Fri, 29 Oct 2010 10:47:14 -0400 Message-ID: Subject: Re: Why use multiple databases ? From: "Mark J. Reed" To: "user@couchdb.apache.org" Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: quoted-printable Another consideration is data churn rate. If you have a set of documents that are changed or deleted frequently, such as login session data, you might want to put them in their own database and compact it more often than the database with the relatively static content. On Friday, October 29, 2010, Zachary Zolton wrot= e: > I'd also like to add that permissions are a common reason to put docs > into separate databases. For example, if each user should only see > there own docs, then you should give each user their own database. > (Given that CouchDB can only enforce read permissions at the database > level.) > > On Fri, Oct 29, 2010 at 4:07 AM, Nils Breunese wrote= : >> Op 29 okt 2010, om 10:37 heeft Zdravko Gligic het volgende geschreven: >> >>> (1) What kind of issues do you take into consideration when deciding >>> if certain types of documents should go into their own database ? >> >> It makes sense to store all documents used by an application in the same= database. That way your data can be easily replicated along with your desi= gn documents. Only start separating data into different databases when ther= e is a real need. If you can't explain why you need multiple databases, jus= t start with a single one. Relax, you can always split out later. >> >>> (2) Are your decisions based on performance, security or some other >>> considerations ? >> >> No. (But maybe somebody else's are?) >> >>> (3) What else should I be asking you - if I was not a noob ;?) >> >> I have no idea. >> >> Nils. >> ------------------------------------------------------------------------ >> =C2=A0VPRO >> =C2=A0phone: =C2=A0+31(0)356712911 >> =C2=A0e-mail: info@vpro.nl >> =C2=A0web: =C2=A0 =C2=A0www.vpro.nl >> ------------------------------------------------------------------------ >> > --=20 Mark J. Reed