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 EF1609374 for ; Tue, 27 Sep 2011 09:43:17 +0000 (UTC) Received: (qmail 86285 invoked by uid 500); 27 Sep 2011 09:43:16 -0000 Delivered-To: apmail-couchdb-user-archive@couchdb.apache.org Received: (qmail 86227 invoked by uid 500); 27 Sep 2011 09:43:16 -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 86219 invoked by uid 99); 27 Sep 2011 09:43:16 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 27 Sep 2011 09:43:16 +0000 X-ASF-Spam-Status: No, hits=-0.7 required=5.0 tests=FREEMAIL_FROM,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 bchesneau@gmail.com designates 209.85.215.180 as permitted sender) Received: from [209.85.215.180] (HELO mail-ey0-f180.google.com) (209.85.215.180) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 27 Sep 2011 09:43:10 +0000 Received: by eyb6 with SMTP id 6so5698278eyb.11 for ; Tue, 27 Sep 2011 02:42:48 -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:content-transfer-encoding; bh=qpq1KJts0SJKvEJlCrEgrsbnBsl+ywETddqcjmWMs7M=; b=G2tivk1FGu5au/p501c8vjxuIW1n+krXFKGRLwF4WX691RGYvKh1BHlKu/xKyDvywJ Hz5bb72/I8KsTT5EC70dhnA3y9u9PWy2pGq6ulfNwl2bmY01Cw56H2SaB+EMomk3wfxW wluYN4085H2Z+mm06Y+CpUzQ24INP1f+Nbgi8= MIME-Version: 1.0 Received: by 10.213.3.216 with SMTP id 24mr253794ebo.78.1317116568812; Tue, 27 Sep 2011 02:42:48 -0700 (PDT) Received: by 10.213.19.129 with HTTP; Tue, 27 Sep 2011 02:42:48 -0700 (PDT) In-Reply-To: References: Date: Tue, 27 Sep 2011 11:42:48 +0200 Message-ID: Subject: Re: scalabitily of the _changes feed From: Benoit Chesneau To: user@couchdb.apache.org Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable On Tue, Sep 27, 2011 at 11:40 AM, Dominic Tarr wro= te: > is it okay to register a huge number of listeners to the changes feed? > It will open one socket / feed. So it depends on your os limits mostly. You will have to tune the backlog & fd limit for a start. > I notice that you can use a filter function, which gets passed the reques= t > parameters, > does this mean that the filter function will be called for each doc, for > each listener on the changes feed? Yes > or are the results of each filter call cached so that it is possible to > efficiently register many listeners using the same filter function? It isn't cached in couch, but you can cache it on your applications. - beno=EEt