incubator-couchdb-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Matthew Woodward <m...@mattwoodward.com>
Subject Re: Start and End Key with Map as Part of Key
Date Thu, 27 Jan 2011 16:17:51 GMT
On Thu, Jan 27, 2011 at 8:08 AM, Jan Lehnardt <jan@apache.org> wrote:

> See http://wiki.apache.org/couchdb/View_collation
>
> {} is usually used because it sorts after all strings and numbers. It does
> however, sort before all other non-empty objects.
>
> You've got to pick and endkey that sorts after your "largest" key object.
> e.g. {"firstName":"ZZZZZZZZZZ","lastName":"ZZZZZZZZZZ"} (This is off-hand,
> maybe there's a smarter way)
>

Thanks! I'll give that a shot.

-- 
Matthew Woodward
matt@mattwoodward.com
http://blog.mattwoodward.com
identi.ca / Twitter: @mpwoodward

Please do not send me proprietary file formats such as Word, PowerPoint,
etc. as attachments.
http://www.gnu.org/philosophy/no-word-attachments.html

Mime
  • Unnamed multipart/alternative (inline, None, 0 bytes)
View raw message