couchdb-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Apache Wiki <>
Subject [Couchdb Wiki] Update of "ViewCollation" by ChrisAnderson
Date Sun, 28 Sep 2008 18:42:05 GMT
Dear Wiki user,

You have subscribed to a wiki page or wiki category on "Couchdb Wiki" for change notification.

The following page has been changed by ChrisAnderson:

The comment on the change is:
note about using high value unicode characters in string keys.

  and avoid the conversion. As a bonus, this date format is compatible with the Javascript
date parser, so you can use ''new Date(doc.created_at)'' in your client side Javascript to
make date sorting easy in the browser.
+ === String Ranges ===
+ If you need start and end keys that encompass every string with a given prefix, it is better
to use a high value unicode character, than to use a 'ZZZZ' suffix.
+ Rather than:
+ {{{
+ startkey="_design/"&endkey="_design/ZZZZZZZZZ" 
+ }}}
+ You should use:
+ {{{
+ startkey="_design/"&endkey="_design/\u9999" 
+ }}}
  == Collation Specification ==

View raw message