converted to 1.6 markup
Good future-looking idea, but it's never been implemented.
|Deletions are marked like this.||Additions are marked like this.|
|Line 1:||Line 1:|
A Document Runner would provide functionality to run a transform function across all documents in the database. This way you could do maintenance and migrations, with incurring a bunch of http overhead.
The idea [[http://firstname.lastname@example.org%3e|was originally floated on the couchdb-user mailing list]].
=== Requirements ===
We may not be able to guarantee that runner functions see each document only once, so functions need to be aware only to modify documents that require modification.
=== Uses ===
* Changing the format of a timestamp across all docs
* Removing sensitive fields before replicating to another jurisdiction
* (View runner... slightly different) Materializing the results of group=true reduce queries into a dataset for further map/reduce processing (a common pattern in Hadoop)