You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@couchdb.apache.org by Dave Cottlehuber <dc...@skunkwerks.at> on 2016/11/30 22:05:48 UTC

[ANN] lava a ridiculously simple shell script to keep your views toasty warm

I whipped up lava this morning as I wanted a view heater script that
didn't depend on things (node, erlang) that other devs might want to
change:

https://github.com/iwantmyname/lava

- MIT licensed
- jq & curl as dependencies
- ideal for running from cron

I'm using this to ensure a replicated backup CouchDB has the same
up-to-date views as the production systems.

For those who don't know, a view heater script simply curls your view
periodically with ?stale=update_after. CouchDB then updates the view
with any changes in the corresponding DB since the last query. This
means, that when you query a less-frequently-used view, there is no
significant build time as it's already up to date. The trade-off is of
course that you may need to compact more often. Caveat Sysadmin!

A+
Dave