incubator-couchdb-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Randall Leeds <randall.le...@gmail.com>
Subject Re: Manually trigger view rebuild
Date Tue, 08 Mar 2011 01:22:44 GMT
On Mon, Mar 7, 2011 at 15:34, Nils Breunese <N.Breunese@vpro.nl> wrote:

> I believe even a HEAD request will work, in which case there is no need to
> specify a limit, since there will be no response body. :o)
>
>
I would still specify a limit. Right now the HEAD implementation in CouchDB
is written as "Pretend it's a GET and then discard the body" so while you
save the network bandwidth you still do the full work on the server side.


> Nils.
> ________________________________________
> Van: Randall Leeds [randall.leeds@gmail.com]
> Verzonden: maandag 7 maart 2011 22:33
> Aan: user@couchdb.apache.org
> CC: Martin Hewitt
> Onderwerp: Re: Manually trigger view rebuild
>
> On Mon, Mar 7, 2011 at 06:59, Martin Hewitt <martin@thenoi.se> wrote:
>
> > Hi all,
> >
> > I was just wondering if there was an application hook I could use to
> > manually trigger a view rebuild?
> >
> >
> Just execute a regular request against the view. Even if you disconnect and
> ignore the response the build should finish.
> It's wise to pass ?limit=1 (I don't know if 0 works without checking) to
> minimize the work that Couch does to generate a response (if you don't care
> about it).
>
>
> > Thanks,
> >
> > Martin
> ------------------------------------------------------------------------
>  VPRO   www.vpro.nl
> ------------------------------------------------------------------------
>

Mime
  • Unnamed multipart/alternative (inline, None, 0 bytes)
View raw message