couchdb-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Paul Davis <paul.joseph.da...@gmail.com>
Subject Re: The need for a key prefix view parameter
Date Thu, 30 Apr 2009 17:01:33 GMT
I think the recommended _design collations are:

startkey="_design/"&endkey="_design0"

Also check out inclusive_end=true.

Also, when in doubt, check if its in the test suite or in Futon.

HTH,
Paul Davis

On Thu, Apr 30, 2009 at 8:19 AM, Wojciech Kaczmarek
<kaczmarek.w@gmail.com> wrote:
> On Thu, Apr 30, 2009 at 16:56, Brian Candler <B.Candler@pobox.com> wrote:
>> On Thu, Apr 30, 2009 at 02:23:17PM +0100, Brian Candler wrote:
>>> (5) Strangely, doc id keys in _all_docs appear to behave differently;
>>> perhaps they are ASCII-compared rather than UCA compared. See script 3
>>> below.
>>
>> And this has just had me tearing my hair out for the last half hour: a
>> search for
>>
>>    _all_docs?startkey="_design/"&endkey="_design/ZZZZ"
>>
>> did not match some of my documents, e.g. _design/c000. Now I realise that
>> almost certainly this is because Z comes before c in ASCII collation.
>>
>> Is this intentional behaviour? If so I will change the Wiki so it recommends
>>
>>    _all_docs?startkey="_design/"&endkey="_design/~"
>
> Isn't it better to use "\u9999" as the ending marker?
>

Mime
View raw message