Return-Path: X-Original-To: archive-asf-public-internal@cust-asf2.ponee.io Delivered-To: archive-asf-public-internal@cust-asf2.ponee.io Received: from cust-asf.ponee.io (cust-asf.ponee.io [163.172.22.183]) by cust-asf2.ponee.io (Postfix) with ESMTP id 4FCB0200BB4 for ; Tue, 1 Nov 2016 22:39:56 +0100 (CET) Received: by cust-asf.ponee.io (Postfix) id 4E51A160AF7; Tue, 1 Nov 2016 21:39:56 +0000 (UTC) Delivered-To: archive-asf-public@cust-asf.ponee.io Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by cust-asf.ponee.io (Postfix) with SMTP id 6E97D160ADA for ; Tue, 1 Nov 2016 22:39:55 +0100 (CET) Received: (qmail 88110 invoked by uid 500); 1 Nov 2016 21:39:54 -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 88098 invoked by uid 99); 1 Nov 2016 21:39:54 -0000 Received: from pnap-us-west-generic-nat.apache.org (HELO spamd3-us-west.apache.org) (209.188.14.142) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 01 Nov 2016 21:39:54 +0000 Received: from localhost (localhost [127.0.0.1]) by spamd3-us-west.apache.org (ASF Mail Server at spamd3-us-west.apache.org) with ESMTP id ACDD11806B5 for ; Tue, 1 Nov 2016 21:39:53 +0000 (UTC) X-Virus-Scanned: Debian amavisd-new at spamd3-us-west.apache.org X-Spam-Flag: NO X-Spam-Score: 3.379 X-Spam-Level: *** X-Spam-Status: No, score=3.379 tagged_above=-999 required=6.31 tests=[DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, FREEMAIL_REPLY=1, HTML_MESSAGE=2, RCVD_IN_DNSWL_NONE=-0.0001, RCVD_IN_MSPIKE_H3=-0.01, RCVD_IN_MSPIKE_WL=-0.01, RCVD_IN_SORBS_SPAM=0.5, SPF_PASS=-0.001] autolearn=disabled Authentication-Results: spamd3-us-west.apache.org (amavisd-new); dkim=pass (2048-bit key) header.d=gmail.com Received: from mx1-lw-eu.apache.org ([10.40.0.8]) by localhost (spamd3-us-west.apache.org [10.40.0.10]) (amavisd-new, port 10024) with ESMTP id M5rbTZY6t7LX for ; Tue, 1 Nov 2016 21:39:51 +0000 (UTC) Received: from mail-it0-f48.google.com (mail-it0-f48.google.com [209.85.214.48]) by mx1-lw-eu.apache.org (ASF Mail Server at mx1-lw-eu.apache.org) with ESMTPS id 03A8A5FC89 for ; Tue, 1 Nov 2016 21:39:51 +0000 (UTC) Received: by mail-it0-f48.google.com with SMTP id q124so76024738itd.1 for ; Tue, 01 Nov 2016 14:39:50 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:sender:in-reply-to:references:from:date:message-id :subject:to; bh=ipwAZjOvByfRh8tSrhy9KR2cDvdE6SZHqzKPVFBxOio=; b=kaCmbVNP6W6KlpfyV5gqXwGxOokuIrLLtoffv4xUgfd7hXXKrYLBRXu1n8pD96Vgz3 nuF1OJndZDfP2uJKjLAsVAGnGVDrKG9vYr46sQjdurgNBQ35Phurbopb0G1GRiC0dAU+ fRrRsJuth2wr7Ez+W0ITgvwuf75rIa4TLVYx27Oft/xqBw4GYUUKyv4wY1fo1MJQTeyd hXR30LMD/5ho/zYQJ5KnDTzi6vsgXGbX4A8X4NQS40ThINWwmppW6Du21CFMK04JiXTi 20qIXnsNGJnIjVkvdztKx0iIXYFxJvc/SPYHQ7fc3ID05nDlabw7CnNJ8dagBwVtcbyw v04Q== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:mime-version:sender:in-reply-to:references:from :date:message-id:subject:to; bh=ipwAZjOvByfRh8tSrhy9KR2cDvdE6SZHqzKPVFBxOio=; b=nCgUvEOjmLGY/8/wgGXu/EIvTMWZo1HcPANLPGIWPoxhLKqzsVucKIXC3jXjx8VVMY OlMjgdJviFBmVanhrETPjqMCQnbgk+vISvB/7Xjz2tHXXwsyVpdOmqsPk8WDMzCUfRI5 i4pZ11YEUPD3TWs4rcsLGEwIsSXA9tvp3Zz+ReGmvPCHF9Znr5l4p+JVGG+c822zHUeX YePWa5kBvhixx8dU1a/DpNov3SCE7wjItYgmiVqBgty9mdPq85D4+rWrWKpWjUwSjmdP r28EkynBt0XlmqQrlTJpuYgyQsLDXnGw5fCuOi9/fxY53iPKx1Yqm3mJMRj+ywGHeBOP BmFQ== X-Gm-Message-State: ABUngvcuLUGwcGp/OxDdTyelI9G7szBNhANfLoTg0dG/TskzLsNeljnDZzniJCkXUo/UC/vb+Zp5cL2omwfgAg== X-Received: by 10.107.171.4 with SMTP id u4mr822461ioe.102.1478036389690; Tue, 01 Nov 2016 14:39:49 -0700 (PDT) MIME-Version: 1.0 Sender: calzakk@gmail.com Received: by 10.107.9.148 with HTTP; Tue, 1 Nov 2016 14:39:49 -0700 (PDT) In-Reply-To: References: From: Graham Bull Date: Tue, 1 Nov 2016 21:39:49 +0000 X-Google-Sender-Auth: pCLX9YTKQ-mWFnY1Tsro03DIK30 Message-ID: Subject: Re: Indexes are inaccessible while indexers are running To: user@couchdb.apache.org Content-Type: multipart/alternative; boundary=94eb2c05e916f907250540442901 archived-at: Tue, 01 Nov 2016 21:39:56 -0000 --94eb2c05e916f907250540442901 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: quoted-printable Hi Adam, Thanks for your reply. I'll have a look at the option when I get a chance, looks like it could be useful. I'm a little concerned though. You say the indexes don't update automatically. What happens when values in indexed fields change? Presumably the indexes aren't therefore updated, in which case they must be periodically manually recreated? I'm running the latest version, 2.0.0, on a decent desktop machine (i7, 8 cores, 16GB RAM, SSDs). Going forward, our application would run on higher spec servers. FYI, the indexers actually took close to 4 hours to do all the indexing, not the 2.5 I thought it would take. One thing I didn't mention was that I'd created 4 separate indexes, and it's possible we'd need more. It's looking likely that CouchDB isn't a good fit for what we're doing, which is a shame because it has lots of positives. Graham On 1 November 2016 at 16:08, Adam Kocoloski wrote: > Hi Graham, the indexes don=E2=80=99t update automatically, but it is poss= ible to > prime the indexers by issuing a query to the view at any point during the > import. One interesting option for you is the "?stale=3Dupdate_after" fla= g, > which will respond with the current state of the view index and trigger a > background update of the indexes after the fact: > > GET //_design//_view/?stale=3Dupdate_after > > You could also add a &limit=3D0 if you=E2=80=99re only interested in prim= ing the > indexers. > > As far as indexing performance is concerned =E2=80=A6 ~4500 docs/second i= sn=E2=80=99t > awesome, but the devil is in the details: how many times is each document > indexed? Does the server have adequate CPU and IO? Are you running 2.0 or > one of the 1.x versions? > > I can dig up some benchmarks but I=E2=80=99m certain I=E2=80=99ve seen (L= inux) systems > index several times faster than that. I haven=E2=80=99t seen a lot of ext= ensive > performance testing on Windows though. Cheers, > > Adam > > > On Oct 31, 2016, at 7:41 AM, Graham Bull > wrote: > > > > Hello, > > > > I'm currently evaluating CouchDB (and other NoSQL databases). > > > > I have a number of databases of various sizes. After restarting the > CouchDB > > service (I'm on Windows) eight "indexer" tasks started running on the > > largest database (40 million documents), which was recently imported. > > > > After 30 minutes the progress on all tasks is 20%. In the meantime I > can't > > run any queries using the database's indexes. At this rate, it'll take > > around 2.5 hours to index the entire database. > > > > Presumably, when indexes are created, they're initially empty? And the > > indexer tasks are required to do the actual indexing? If so, then the > > performance is pretty bad. It took nearly 2 hours to import the 40 > million > > records. Add on index creation, and you're looking at 4.5 hours. Withou= t > > mentioning other relational and NoSQL databases by name, or giving any > > stats, CouchDB's import and indexing performance is pretty bad in > > comparison. > > > > Is there a way to force the indexers to run immediately after importing > the > > data, and to query the indexing status so that my app can wait until it= 's > > completed? > > > > Thanks in advance, > > > > Graham > > --94eb2c05e916f907250540442901--