[ 
https://issues.apache.org/jira/browse/COUCHDB-1254?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13087792#comment-13087792
 ] 

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 seq.

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: https://issues.apache.org/jira/browse/COUCHDB-1254
>             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: http://www.atlassian.com/software/jira

        

Reply via email to