Return-Path: Delivered-To: apmail-incubator-couchdb-commits-archive@locus.apache.org Received: (qmail 88347 invoked from network); 28 Sep 2008 18:42:26 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.2) by minotaur.apache.org with SMTP; 28 Sep 2008 18:42:26 -0000 Received: (qmail 24450 invoked by uid 500); 28 Sep 2008 18:42:24 -0000 Delivered-To: apmail-incubator-couchdb-commits-archive@incubator.apache.org Received: (qmail 24432 invoked by uid 500); 28 Sep 2008 18:42:24 -0000 Mailing-List: contact couchdb-commits-help@incubator.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: couchdb-dev@incubator.apache.org Delivered-To: mailing list couchdb-commits@incubator.apache.org Received: (qmail 24423 invoked by uid 99); 28 Sep 2008 18:42:24 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Sun, 28 Sep 2008 11:42:24 -0700 X-ASF-Spam-Status: No, hits=-2000.0 required=10.0 tests=ALL_TRUSTED X-Spam-Check-By: apache.org Received: from [140.211.11.130] (HELO eos.apache.org) (140.211.11.130) by apache.org (qpsmtpd/0.29) with ESMTP; Sun, 28 Sep 2008 18:41:31 +0000 Received: from eos.apache.org (localhost [127.0.0.1]) by eos.apache.org (Postfix) with ESMTP id 36DB11114F for ; Sun, 28 Sep 2008 18:42:05 +0000 (GMT) Content-Type: text/plain; charset="us-ascii" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit From: Apache Wiki To: couchdb-commits@incubator.apache.org Date: Sun, 28 Sep 2008 18:42:05 -0000 Message-ID: <20080928184205.325.24614@eos.apache.org> Subject: [Couchdb Wiki] Update of "ViewCollation" by ChrisAnderson X-Virus-Checked: Checked by ClamAV on apache.org 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 ==