Return-Path: Delivered-To: apmail-couchdb-user-archive@www.apache.org Received: (qmail 88567 invoked from network); 7 Aug 2010 11:38:02 -0000 Received: from unknown (HELO mail.apache.org) (140.211.11.3) by 140.211.11.9 with SMTP; 7 Aug 2010 11:38:02 -0000 Received: (qmail 26419 invoked by uid 500); 7 Aug 2010 11:38:01 -0000 Delivered-To: apmail-couchdb-user-archive@couchdb.apache.org Received: (qmail 26170 invoked by uid 500); 7 Aug 2010 11:37:58 -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 26143 invoked by uid 99); 7 Aug 2010 11:37:57 -0000 Received: from nike.apache.org (HELO nike.apache.org) (192.87.106.230) by apache.org (qpsmtpd/0.29) with ESMTP; Sat, 07 Aug 2010 11:37:57 +0000 X-ASF-Spam-Status: No, hits=0.0 required=10.0 tests=FREEMAIL_FROM,SPF_PASS,T_TO_NO_BRKTS_FREEMAIL X-Spam-Check-By: apache.org Received-SPF: pass (nike.apache.org: domain of sivang@gmail.com designates 209.85.214.180 as permitted sender) Received: from [209.85.214.180] (HELO mail-iw0-f180.google.com) (209.85.214.180) by apache.org (qpsmtpd/0.29) with ESMTP; Sat, 07 Aug 2010 11:37:49 +0000 Received: by iwn4 with SMTP id 4so3116344iwn.11 for ; Sat, 07 Aug 2010 04:37:26 -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:content-transfer-encoding; bh=a/tEAJ0PQklO7Q4sd9ycDPW1+Gzkf1g+fbIvYUqg0Bw=; b=iM3VYH2PKqbWYIrsJbKO7wiqmaU31fdQDjznVTCauzT3n348JjMZ2O/BSttY297UX6 +l9mUT+CxSJngyUmFYFMwlK7yL9TtK/hLDJqGYGr96ES0PxDYfdRwDVlND2KlMmmbQTb uD9kwvtuzc+rK2nB4tMcnVa2mL+QnqF5Kwz58= 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 :content-transfer-encoding; b=BYZr++qW3zJW8agxvtKMbtlHZi2NhHj3Gn9z83vXr+PlU67Op7/fjyvN3x0ZTQbNpy 6xRkAax31LJu2B5VfyOa2GbEMk7vYyakJ3BcHx+yO4TSaYdCFFENPogW+hDz24NcHjln SKrI0dtXVb4Ems4jLwk2bDbwK8fd8YBsGojLk= MIME-Version: 1.0 Received: by 10.231.15.70 with SMTP id j6mr15185763iba.12.1281181044543; Sat, 07 Aug 2010 04:37:24 -0700 (PDT) Sender: sivang@gmail.com Received: by 10.231.210.71 with HTTP; Sat, 7 Aug 2010 04:37:24 -0700 (PDT) In-Reply-To: References: <2D9A4307-122F-4FA7-BD79-662453A84645@mymedify.com> Date: Sat, 7 Aug 2010 14:37:24 +0300 X-Google-Sender-Auth: J_TXXSPfkbhhtoLXSIeJW90upgs Message-ID: Subject: Re: Scalability of _changes api? From: Sivan Greenberg To: user@couchdb.apache.org Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable X-Virus-Checked: Checked by ClamAV on apache.org As I am also using a JS filter and fear the performance and load consequences, how does one go about writing an erlang filter? -SIvan On Fri, Aug 6, 2010 at 11:55 PM, J Chris Anderson wrote= : > > On Aug 6, 2010, at 1:38 PM, Talib Sharif wrote: > >> Hey All, >> >> Do people have experience with the scalability and performance of the _c= hanges api in general, and especially when using with filters? >> >> How many connections can be kept open? >> > > If you use a JavaScript filter, you will have more limited concurrency th= at with an Erlang filter, as the JS filters run in their own OS process. Co= uchDB tries to be reasonably efficient with these, but they are still much = more heavyweight than the Erlang ones. > >> And is the changes api function of size/updates/total_no_documents? >> > > I think the _changes API should have no scalability issues, as the wall y= ou will hit long before running an (Erlang) changes filter will be the inse= rt / update rate of the database itself. > > If you were to say, make thousands of concurrent changes requests, with v= arying since=3DSeq params, that would be the worst case, so you can test th= at work load if you want to find boundaries conditions. (Bottleneck here wo= uld be for disk IO reads I think). > > Chris > >> Thanks, >> Talib > >