You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@couchdb.apache.org by Simon Metson <si...@googlemail.com> on 2010/04/09 12:20:32 UTC
Re: Order Number generation
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
Re: Order Number generation
Posted by Sebastien PASTOR <se...@gmx.com>.
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