You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@couchdb.apache.org by Apache Wiki <wi...@apache.org> on 2008/09/28 20:42:05 UTC
[Couchdb Wiki] Update of "ViewCollation" by ChrisAnderson
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:
http://wiki.apache.org/couchdb/ViewCollation
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 ==