CouchDB: How to change view function via javascript?
Posted
by osti
on Stack Overflow
See other posts from Stack Overflow
or by osti
Published on 2010-05-15T18:07:26Z
Indexed on
2010/05/15
18:14 UTC
Read the original article
Hit count: 132
Hello Guys,
I am playing around with CouchDB to test if it is "possible" [1] to store scientific data (simulated and experimental raw data + metadata). A big pro is the schema-less approach of CouchDB: we have to be very flexible with the metadata, as the set of parameters changes very often.
Up to now I have some code to feed raw data, plots (both as attachments), and hierarchical metadata (as JSON) into CouchDB documents, and have written some prototype Javascript for filtering and showing. But the filtering is done on the client side (a.k.a. browser): The map function simply returns everything.
How could I change the (or push a second) map function of a specific _design-document with simple browser-JS?
I do not think that a temporary view would yield any performance gain...
Thanks for your time and answers.
[1]: of course it is possible, but is it also useful? feasible? reasonable?
© Stack Overflow or respective owner