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 7ACBFDC98 for ; Thu, 11 Oct 2012 08:40:44 +0000 (UTC) Received: (qmail 23056 invoked by uid 500); 11 Oct 2012 08:39:39 -0000 Delivered-To: apmail-couchdb-user-archive@couchdb.apache.org Received: (qmail 21546 invoked by uid 500); 11 Oct 2012 08:39:26 -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 20545 invoked by uid 99); 11 Oct 2012 08:39:22 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 11 Oct 2012 08:39:22 +0000 X-ASF-Spam-Status: No, hits=-0.7 required=5.0 tests=RCVD_IN_DNSWL_LOW,SPF_PASS X-Spam-Check-By: apache.org Received-SPF: pass (athena.apache.org: local policy) Received: from [91.195.24.3] (HELO mail.open.bg) (91.195.24.3) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 11 Oct 2012 08:39:17 +0000 Received: from [78.83.28.88] (port=51977 helo=eee-az) by mail.open.bg with esmtpsa (Cipher SSL3.0:DHE_RSA_AES_128_CBC_SHA1:16) (Exim 4.77) id 1TMEIA-0005vB-Au by authid with login for ; Thu, 11 Oct 2012 11:38:54 +0300 Date: Thu, 11 Oct 2012 11:40:19 +0300 From: svilen To: user@couchdb.apache.org Subject: Re: can i listen to changes of whole server, not per-db? Message-ID: <20121011114019.5dd33b7f@eee-az> In-Reply-To: References: <20121007085933.472ff68a@svilendobrev.com> X-Mailer: Claws Mail 3.8.1 (GTK+ 2.24.10; i486-pc-linux-gnu) Mime-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: quoted-printable X-Virus-Checked: Checked by ClamAV on apache.org how about hierarchical replication then ? kind-a - have a list of observed dbs - listen to some special db/feed that gets updated when some of above dbs changes - replication over above scheme (i.e. replicate continiously the speical db and replicate others once-off at each update) i may do the above, as otherwise there will be 10000s of connections doing nothing (but still kept alive).=20 svil On Sun, 7 Oct 2012 09:43:15 +0200 Benoit Chesneau wrote: > On Sun, Oct 7, 2012 at 9:27 AM, Dave Cottlehuber > wrote: > > On 7 October 2012 07:59, svilen wrote: > >> g'day > >> > >> i'm going to have thousands of databases. They are all of similar > >> kind, but belong to different (groups of) users, so can't be > >> bundled into one. And setupping 10000 connections to > >> couchdb/dbXXXXX/_changes doesn't seem very neat, even if on same > >> machine. > > > > Not possible today unfortunately. > > > > Has anybody got any numbers or experience on practical limits of > > _changes feeds connections to a single server? > > > > A+ > > Dave >=20 >=20 > For rcouch I have written a plugin that listen on all dbs changes: >=20 > https://github.com/refuge/couch_dbupdates >=20 > It only notify you when a db is updated for any reason. Then you can > use _changes to get latest changes for this db. >=20 >=20 > I'm actually actively working on porting patches to couch and prepare > some branches. If some think it would be interesting to have it in > couch I can port it as well. >=20 > - beno=C3=AEt