commit | efddaf1d14b19187f31a2c5c19a40061b3635e9a | [log] [tgz] |
---|---|---|
author | Russell Branca <chewbranca@gmail.com> | Wed Mar 26 17:25:40 2014 -0700 |
committer | Russell Branca <chewbranca@gmail.com> | Fri Mar 28 11:33:19 2014 -0700 |
tree | 71959538b73dd183ce4e181cb464383ea5eb8227 | |
parent | 28528ace698e46996487d174a2017ecf1a4b9082 [diff] |
Update fabric_rpc to use couch_mrview This modifies fabric_rpc to use couch_mrview for map views, reduce views, and all docs queries. This removes the majority of view logic from within fabric as it's better handled now in couch_mrview, and actually provides pretty drastic decrease in logic in these functions. The {view,reduce}_cb functions are also updated to use the new line format of couch_mrview, switching total_and_offset to meta and updating the row callbacks as well.
Fabric is a collection of proxy functions for CouchDB operations in a cluster. These functions are used in BigCouch as the remote procedure endpoints on each of the cluster nodes.
For example, creating a database is a straightforward task in standalone CouchDB, but for BigCouch, each node that will store a shard for the database needs to receive and execute a fabric function. The node handling the request also needs to compile the results from each of the nodes and respond accordingly to the client.
Fabric is used in conjunction with ‘Rexi’ which is also an application within BigCouch.
Fabric requires R13B03 or higher and can be built with rebar, which comes bundled in the repository.