couchdb-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Dave Cottlehuber <...@skunkwerks.at>
Subject [ANN] lava a ridiculously simple shell script to keep your views toasty warm
Date Wed, 30 Nov 2016 22:05:48 GMT
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

Mime
View raw message