_design/raspberry_def
This view is only used in the raspberries
subsystem.
running_processes
Only handles documents that have a field running_ids
. Allows efficient
finding of which raspberry pis are currently running.
map
function(doc) {
if (!doc.running_ids) return;
emit([doc.created_by, doc.timestamp, doc.ip], null);
doc.running_ids.forEach( function(o) {
emit([doc.created_by, doc.timestamp, null], { _id : o });
});
}
reduce
: _count
This is only used on the raspberries site. (Search for "running_processes"
.)