https://github.com/vpro/couchdb_view_update
A script to trigger view updates for all views in all design documents in all databases in a CouchDB instance
https://github.com/vpro/couchdb_view_update
Last synced: about 1 year ago
JSON representation
A script to trigger view updates for all views in all design documents in all databases in a CouchDB instance
- Host: GitHub
- URL: https://github.com/vpro/couchdb_view_update
- Owner: vpro
- Created: 2016-05-26T15:14:09.000Z (about 10 years ago)
- Default Branch: master
- Last Pushed: 2016-06-23T08:31:47.000Z (almost 10 years ago)
- Last Synced: 2025-02-16T15:17:30.176Z (over 1 year ago)
- Language: Python
- Size: 3.91 KB
- Stars: 1
- Watchers: 8
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
CouchDB View Update
===================
This is a Python script that triggers view updates for all views in all design documents in all databases in all CouchDB instances that you supply as arguments to it.
Dependencies
------------
This script depends on [couchdbkit](http://couchdbkit.org/). To install or upgrade to the latest
version:
1. Install couchdbkit: http://couchdbkit.org/download.html
2. Install a supported JSON module for Python. You can use cjson (or simplejson, or probably a few others if you like). Debian/Ubuntu has a package called python-cjson, which is know to work.
Usage
-----
Provide URL's to CouchDB instances as arguments to the script:
$ ./couchdb_view_update.py http://localhost:5984 http://example.com
To periodically update all views, you can run this via cron.