couchdb-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Paul Davis <>
Subject Re: Unexpected results using start/end keys on a reduced view.
Date Sun, 23 Aug 2009 23:49:48 GMT

> I would have thought that since my startkey value is greater than the first
> row this should only return the last 4 rows

["HYD","","",1250825660] < ["HYD","SPR","blah",1250825378]

Because "" < "SPR". The first position that doesn't compare equal is
going to determine the resulting order.

> So my question is with using start/end keys should it filter on each
> individual part of the key?

Keys are sorted, not filtered. You'll just need to make more views to
filter as appropriate.

Paul Davis

View raw message