couchdb-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Apache Wiki <>
Subject [Couchdb Wiki] Update of "DocumentRunnerPlugin" by JoanTouzet
Date Fri, 13 Apr 2018 05:59:29 GMT
Dear wiki user,

You have subscribed to a wiki page "Couchdb Wiki" for change notification.

The page "DocumentRunnerPlugin" has been deleted by JoanTouzet:

Good future-looking idea, but it's never been implemented.

- #redirect Document_runner_plugin
- 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 [[|was
originally floated on the couchdb-user mailing list]].
- === Requirements ===
- Ability to specify a job in a view-server like context (Javascript other language function)
and have it run across all docs (like a view is), but with the additional ability to write
back to the document (through the http api, so we don't have to add a socket-based update
- Caveat: 
- 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)

View raw message