Return-Path: X-Original-To: apmail-couchdb-dev-archive@www.apache.org Delivered-To: apmail-couchdb-dev-archive@www.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id 06AA510518 for ; Wed, 25 Sep 2013 13:34:09 +0000 (UTC) Received: (qmail 51868 invoked by uid 500); 25 Sep 2013 13:34:06 -0000 Delivered-To: apmail-couchdb-dev-archive@couchdb.apache.org Received: (qmail 51771 invoked by uid 500); 25 Sep 2013 13:34:03 -0000 Mailing-List: contact dev-help@couchdb.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: dev@couchdb.apache.org Delivered-To: mailing list dev@couchdb.apache.org Received: (qmail 51753 invoked by uid 99); 25 Sep 2013 13:34:02 -0000 Received: from arcas.apache.org (HELO arcas.apache.org) (140.211.11.28) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 25 Sep 2013 13:34:02 +0000 Date: Wed, 25 Sep 2013 13:34:02 +0000 (UTC) From: =?utf-8?Q?Ren=C3=A9_R=C3=B6ssler_=28JIRA=29?= To: dev@couchdb.apache.org Message-ID: In-Reply-To: References: Subject: [jira] [Updated] (COUCHDB-1895) Heartbeat does not always start after connection is established MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable X-JIRA-FingerPrint: 30527f35849b9dde25b450d4833f0394 [ https://issues.apache.org/jira/browse/COUCHDB-1895?page=3Dcom.atlass= ian.jira.plugin.system.issuetabpanels:all-tabpanel ] Ren=C3=A9 R=C3=B6ssler updated COUCHDB-1895: ---------------------------------- Description:=20 I have a database with ~5000 documents and a update sequence of ~100,000. If I start a filtered, continuous changes stream with heartbeat set to 1000= , I get the first heartbeat after ~1 seconds. If I start the same changes stream with a heartbeat of 10,000, I get the fi= rst heartbeat after ~10 seconds. But if I start the same changes stream with a heartbeat of 10,000, I get th= e first heartbeat after ~57 seconds and the second heartbeat ~2 seconds lat= er. Getting all the changes without a continuous feed takes about 15 seconds. I measured the timings with this command: bq. date && wget --quiet "http://localhost:5984/database/_changes?filter=3D= design/filter&feed=3Dcontinuous&heartbeat=3D30000&since=3D0" -O /dev/stdout= |perl timing.pl {code:title=3Dtiming.pl|borderStyle=3Dsolid} #!/usr/bin/perl use POSIX qw(strftime); while(!eof(STDIN)) { $line=3D; print strftime("%F %T", localtime), $line; } {code} Couchdb is version 1.4.0 installed via homebrew on Mac OS 10.8.5. was: I have a database with ~5000 documents and a update sequence of ~100,000. If I start a filtered, continuous changes stream with heartbeat set to 1000= , I get the first heartbeat after ~1 seconds. If I start the same changes stream with a heartbeat of 10,000, I get the fi= rst heartbeat after ~10 seconds. But if I start the same changes stream with a heartbeat of 10,000, I get th= e first heartbeat after ~57 seconds and the second heartbeat ~2 seconds lat= er. Getting all the changes without a continuous feed takes about 15 seconds. I measured the timings with this command: bq. date && wget --quiet "http://localhost:5984/database/_changes?filter=3D= design/filter&feed=3Dcontinuous&heartbeat=3D30000&since=3D0" -O /dev/stdout= |perl timing.pl {code:title=3Dtiming.pl|borderStyle=3Dsolid} #!/usr/bin/perl use POSIX qw(strftime); while(!eof(STDIN)) { $line=3D; print strftime("%F %T", localtime), $line; } {code} Couchdb is version 1.4.0 installed via homebrew on is Mac OS 10.8.5. =20 > Heartbeat does not always start after connection is established > --------------------------------------------------------------- > > Key: COUCHDB-1895 > URL: https://issues.apache.org/jira/browse/COUCHDB-1895 > Project: CouchDB > Issue Type: Bug > Components: HTTP Interface > Reporter: Ren=C3=A9 R=C3=B6ssler > > I have a database with ~5000 documents and a update sequence of ~100,000. > If I start a filtered, continuous changes stream with heartbeat set to 10= 00, I get the first heartbeat after ~1 seconds. > If I start the same changes stream with a heartbeat of 10,000, I get the = first heartbeat after ~10 seconds. > But if I start the same changes stream with a heartbeat of 10,000, I get = the first heartbeat after ~57 seconds and the second heartbeat ~2 seconds l= ater. > Getting all the changes without a continuous feed takes about 15 seconds. > I measured the timings with this command: > bq. date && wget --quiet "http://localhost:5984/database/_changes?filter= =3Ddesign/filter&feed=3Dcontinuous&heartbeat=3D30000&since=3D0" -O /dev/std= out |perl timing.pl > {code:title=3Dtiming.pl|borderStyle=3Dsolid} > #!/usr/bin/perl > use POSIX qw(strftime); > while(!eof(STDIN)) > { > $line=3D; > print strftime("%F %T", localtime), $line; > } > {code} > Couchdb is version 1.4.0 installed via homebrew on Mac OS 10.8.5. -- This message is automatically generated by JIRA. If you think it was sent incorrectly, please contact your JIRA administrato= rs For more information on JIRA, see: http://www.atlassian.com/software/jira