couchdb-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Paul Joseph Davis (JIRA)" <>
Subject [jira] [Commented] (COUCHDB-1254) Document design and view options
Date Fri, 19 Aug 2011 16:44:27 GMT


Paul Joseph Davis commented on COUCHDB-1254:

    "_id": "_design/foo",
    "options": {"include_design": true, "local_seq": true},
    "views": {
        "bar": {
            "map": "function(doc) {...}",
            "options": {"collation": "raw"}

The options at the top level affect the documents that get sent to the map functions for this
design doc. include_design: true means that design docs are passed to the map function. local_seq:
true means that each doc has a magical _local_seq attribute that reflects their local update

The collation: "raw" option will let views use raw Erlang collation instead of UCA collation
which can be a noticeable speed improvement.

> Document design and view options
> --------------------------------
>                 Key: COUCHDB-1254
>                 URL:
>             Project: CouchDB
>          Issue Type: Improvement
>          Components: Documentation
>            Reporter: James Howe
>            Priority: Minor
> Off the back of COUCH-1252, I've just discovered there are such things as design options
and view options, including local_seq and include_design. Could somebody who knows what they
do document them somewhere?

This message is automatically generated by JIRA.
For more information on JIRA, see:


View raw message