Reputation: 51
I have a question about querying CouchDB. I have a query that generates a set of outputs. These outputs are also the result of another query. I want to define a CouchDB view permitting to get all the outputs (and the inputs of a specific document). Is it possible to get the results of a map function and consider them as un input of another map function ?
In SPARQL, I have do this query, it is modeled as follow : SELECT ?linkedAction WHERE { ?action nova:hasOutput ``doc-02-10-C''. ?action (nova:hasInput/^nova:hasOutput)* ?linkedAction. } Is it possible to do that in map/reduce ?
Amin
Upvotes: 0
Views: 585
Reputation: 3901
You can try Couch-Incarnate.
Or use Cloudant chained mapreduce views (hopefully it will be integrated in CouchDB).
Upvotes: 1
Reputation: 28439
No, each view index is completely isolated from other views. (and other databases for that matter) CouchDB's incremental view updates would be impossible to keep efficient when changes from one view can affect another. You'll need to perform this kind of additional processing in your application layer.
Upvotes: 0