couchdb-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Jan Lehnardt (JIRA)" <>
Subject [jira] Closed: (COUCHDB-144) Allow design docs to specify custom sort orders for composite keys
Date Sat, 24 Jan 2009 11:09:59 GMT


Jan Lehnardt closed COUCHDB-144.

    Resolution: Duplicate

Dupe of COUCHDB-158. Closing this because the later one has a patch attached. Paul says this
is non-blocking for 0.9 and low-priority for 1.0. But the patch should be easy enough to integrate
if somebody really needs this.

> Allow design docs to specify custom sort orders for composite keys
> ------------------------------------------------------------------
>                 Key: COUCHDB-144
>                 URL:
>             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.

View raw message