You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@couchdb.apache.org by Francisco Viramontes <pa...@freshout.us> on 2009/09/24 01:29:24 UTC

ruby script to auto update your views

http://gist.github.com/192378

Modified version of the script in http://wiki.apache.org/couchdb/Regenerating_views_on_update?action=show&redirect=RegeneratingViewsOnUpdate


PAco


Re: ruby script to auto update your views

Posted by Jan Lehnardt <ja...@apache.org>.
On 25 Sep 2009, at 08:27, Per Ejeklint wrote:

> Nice one, thanks! Comes in very handy for me.
>
> /Per
>
> 24 sep 2009 kl. 01.29 skrev Francisco Viramontes:
>
>> http://gist.github.com/192378
>>
>> Modified version of the script in http://wiki.apache.org/couchdb/Regenerating_views_on_update?action=show&redirect=RegeneratingViewsOnUpdate

Could we move this back to the wiki?

Cheers
Jan
--


Re: ruby script to auto update your views

Posted by Per Ejeklint <ej...@mac.com>.
Nice one, thanks! Comes in very handy for me.

/Per

24 sep 2009 kl. 01.29 skrev Francisco Viramontes:

> http://gist.github.com/192378
>
> Modified version of the script in http://wiki.apache.org/couchdb/Regenerating_views_on_update?action=show&redirect=RegeneratingViewsOnUpdate
>
>
> PAco
>


Re: ruby script to auto update your views

Posted by Matt Aimonetti <ma...@gmail.com>.
gracias paco!
- matt

On Wed, Sep 23, 2009 at 4:29 PM, Francisco Viramontes <pa...@freshout.us>wrote:

> http://gist.github.com/192378
>
> Modified version of the script in
> http://wiki.apache.org/couchdb/Regenerating_views_on_update?action=show&redirect=RegeneratingViewsOnUpdate
>
>
> PAco
>
>

Re: ruby script to auto update your views

Posted by Francisco Viramontes <pa...@freshout.us>.
still if you configure this tho run after 1000 updates it is not a  
hassle, even running this script per update is not that bad.

PAco
On Sep 28, 2009, at 5:41 AM, Robert Newson wrote:

> Using stale=ok would prevent the browser from stalling and running a
> cron job without stale=ok would keep your view up to date "enough" in
> most cases.
>
> B.
>
> On Mon, Sep 28, 2009 at 2:22 AM, Nicholas Orr  
> <ni...@zxgen.net> wrote:
>> Thanks for this - the penny has finally dropped as to why this may  
>> be useful.
>>
>> It's annoying having the browser stall for 5-10 seconds if I haven't
>> visited a certain page after a few hundred additions have been made  
>> to
>> the couch db's
>>
>> Nick :)
>>
>> On Thu, Sep 24, 2009 at 9:29 AM, Francisco Viramontes <paco@freshout.us 
>> > wrote:
>>> http://gist.github.com/192378
>>>
>>> Modified version of the script in
>>> http://wiki.apache.org/couchdb/Regenerating_views_on_update?action=show&redirect=RegeneratingViewsOnUpdate
>>>
>>>
>>> PAco
>>>
>>>
>>


Re: ruby script to auto update your views

Posted by Robert Newson <ro...@gmail.com>.
Using stale=ok would prevent the browser from stalling and running a
cron job without stale=ok would keep your view up to date "enough" in
most cases.

B.

On Mon, Sep 28, 2009 at 2:22 AM, Nicholas Orr <ni...@zxgen.net> wrote:
> Thanks for this - the penny has finally dropped as to why this may be useful.
>
> It's annoying having the browser stall for 5-10 seconds if I haven't
> visited a certain page after a few hundred additions have been made to
> the couch db's
>
> Nick :)
>
> On Thu, Sep 24, 2009 at 9:29 AM, Francisco Viramontes <pa...@freshout.us> wrote:
>> http://gist.github.com/192378
>>
>> Modified version of the script in
>> http://wiki.apache.org/couchdb/Regenerating_views_on_update?action=show&redirect=RegeneratingViewsOnUpdate
>>
>>
>> PAco
>>
>>
>

Re: ruby script to auto update your views

Posted by Nicholas Orr <ni...@zxgen.net>.
Thanks for this - the penny has finally dropped as to why this may be useful.

It's annoying having the browser stall for 5-10 seconds if I haven't
visited a certain page after a few hundred additions have been made to
the couch db's

Nick :)

On Thu, Sep 24, 2009 at 9:29 AM, Francisco Viramontes <pa...@freshout.us> wrote:
> http://gist.github.com/192378
>
> Modified version of the script in
> http://wiki.apache.org/couchdb/Regenerating_views_on_update?action=show&redirect=RegeneratingViewsOnUpdate
>
>
> PAco
>
>