From user-return-9898-apmail-couchdb-user-archive=couchdb.apache.org@couchdb.apache.org Mon Apr 12 08:38:38 2010 Return-Path: Delivered-To: apmail-couchdb-user-archive@www.apache.org Received: (qmail 60062 invoked from network); 12 Apr 2010 08:38:37 -0000 Received: from unknown (HELO mail.apache.org) (140.211.11.3) by 140.211.11.9 with SMTP; 12 Apr 2010 08:38:37 -0000 Received: (qmail 7206 invoked by uid 500); 12 Apr 2010 08:38:36 -0000 Delivered-To: apmail-couchdb-user-archive@couchdb.apache.org Received: (qmail 7168 invoked by uid 500); 12 Apr 2010 08:38:36 -0000 Mailing-List: contact user-help@couchdb.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: user@couchdb.apache.org Delivered-To: mailing list user@couchdb.apache.org Received: (qmail 7160 invoked by uid 99); 12 Apr 2010 08:38:36 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 12 Apr 2010 08:38:36 +0000 X-ASF-Spam-Status: No, hits=-0.6 required=10.0 tests=AWL,FREEMAIL_FROM,RCVD_IN_DNSWL_NONE,SPF_PASS,T_TO_NO_BRKTS_FREEMAIL X-Spam-Check-By: apache.org Received-SPF: pass (athena.apache.org: domain of sebastien.pastor@gmx.com designates 213.165.64.42 as permitted sender) Received: from [213.165.64.42] (HELO mailout-eu.gmx.com) (213.165.64.42) by apache.org (qpsmtpd/0.29) with SMTP; Mon, 12 Apr 2010 08:38:29 +0000 Received: (qmail invoked by alias); 12 Apr 2010 08:38:07 -0000 Received: from nor75-28-88-183-28-27.fbx.proxad.net (EHLO seblaptop) [88.183.28.27] by mail.gmx.com (mp-eu004) with SMTP; 12 Apr 2010 10:38:07 +0200 X-Authenticated: #57395542 X-Provags-ID: V01U2FsdGVkX18AUUkt2isANSmOecmfry+E3q+iBmpFzUMbqgdGEr uZLch7OHxDReMK Date: Mon, 12 Apr 2010 11:34:04 +0200 From: Sebastien PASTOR To: user@couchdb.apache.org Subject: Re: Order Number generation Message-ID: <20100412093403.GA6920@seblaptop> References: <4bbe6cd6.9653f10a.61f2.253d@mx.google.com> <20100409102513.GA8101@seblaptop> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: User-Agent: Mutt/1.5.20 (2009-06-14) X-Y-GMX-Trusted: 0 X-FuHaFi: 0.63 Thanks Simon, I ll have a look at it ! Thanks again Seb On Fri, Apr 09, 2010 at 11:20:32AM +0100, Simon Metson wrote: > What about using something like a Record Locator (http://search.cpan.org/~jesse/Number-RecordLocator/ > for some perl code, I have a python version somewhere...) to > generate the _id? > > > On 9 Apr 2010, at 11:25, Sebastien PASTOR wrote: > > > Hello all, > > In my app, i create documents which are orders for goods. My problem > > is to be able to to display a "nice" order number to the customer. > > What i mean by nice is > > basically not a UUID which is very long and not very easy to read. > > Would > > anyone have a trick to handle this ? For instance using part of the > > UUID > > could suffice ? I fear that all this comes down to the uniqueness > > issue > > i have seen discussed in previous threads. .. > > > > Thanks in advance > > > > Seb