couchdb-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Paul Carey" <paul.p.ca...@gmail.com>
Subject Array key queries
Date Fri, 12 Dec 2008 20:59:25 GMT
Querying with an array based key produces inconsistent results across
different key indexes.

For example, consider a view that emits the following keys

[0, 0]
[0, 1]
[1, 0]
[1, 1]

Querying with startkey=[0, null] and endkey=[0, {}] returns

[0, 0]
[0, 1]

However, querying with startkey=[null, 0] and endkey=[{}, 0] does not return

[0, 0]
[1, 0]

Instead, all rows are returned.

Is this the expected behaviour?

Thanks
Paul

Mime
View raw message