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

Reply via email to