Allow design docs to specify custom sort orders for composite keys
------------------------------------------------------------------

                 Key: COUCHDB-144
                 URL: https://issues.apache.org/jira/browse/COUCHDB-144
             Project: CouchDB
          Issue Type: Bug
          Components: Database Core
            Reporter: Nick Johnson


Currently, there is no way to construct an index with different sort orders on 
different subkeys. For example, you might want to have a view of users sorted 
by city ascending, then age descending. With some data types this is easy 
enough to fudge by negating the values (eg, integers, floats, bools), but with 
strings this is currently practically impossible to achieve. I'm implementing a 
CouchDB interface for App Engine apps, and this issue is a blocker, preventing 
me from finishing it.

>From a conversation with damienkatz in IRC:
<damienkatz> I was going to say it seems fine to add key array collation info 
the design docs
<damienkatz> something like {key_array_collation:["asc", "desc", "desc"], ...}
<damienkatz> create a new bug for it.


-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.

Reply via email to