Re: unique ascending numbers
This WebDNA talk-list message is from 2003
It keeps the original formatting.
numero = 50188
interpreted = N
texte = Marc Kaiwi wrote:> It does??? ... You're kidding?> > I'd have to actually understand how that logic would work before I could > trust it. I'd really be interested to know if this is true and why. > That's interesting.> The cart is a combination of number of seconds since some epoch plus some digits to ensure that the cart is unique. If you imagine them being sorted like this:10524493229794510524495859857010524498849957810524499881000871052450903103312105245120510386310524519551066281052453196109064as a string of digits, not as a number, you'll see in the case of those carts above, the first 8 characters uniquely determine the sort order. If there were more carts being generated closer together in time, you might need 10 or even 12 or 14 characters to sort them. But [cart] does provide a unique, sortable increasing sequence, no matter how many [cart]'s are being generated (within reason).John-- John PeacockDirector of Information Research and TechnologyRowman & Littlefield Publishing Group4501 Forbes BoulevardSuite HLanham, MD 20706301-459-3366 x.5010fax 301-429-5748-------------------------------------------------------------This message is sent to you because you are subscribed to the mailing list
.To unsubscribe, E-mail to: To switch to the DIGEST mode, E-mail to Web Archive of this list is at: http://webdna.smithmicro.com/
Associated Messages, from the most recent to the oldest:
Marc Kaiwi wrote:> It does??? ... You're kidding?> > I'd have to actually understand how that logic would work before I could > trust it. I'd really be interested to know if this is true and why. > That's interesting.> The cart is a combination of number of seconds since some epoch plus some digits to ensure that the cart is unique. If you imagine them being sorted like this:10524493229794510524495859857010524498849957810524499881000871052450903103312105245120510386310524519551066281052453196109064as a string of digits, not as a number, you'll see in the case of those carts above, the first 8 characters uniquely determine the sort order. If there were more carts being generated closer together in time, you might need 10 or even 12 or 14 characters to sort them. But [cart] does provide a unique, sortable increasing sequence, no matter how many [cart]'s are being generated (within reason).John-- John PeacockDirector of Information Research and TechnologyRowman & Littlefield Publishing Group4501 Forbes BoulevardSuite HLanham, MD 20706301-459-3366 x.5010fax 301-429-5748-------------------------------------------------------------This message is sent to you because you are subscribed to the mailing list .To unsubscribe, E-mail to: To switch to the DIGEST mode, E-mail to Web Archive of this list is at: http://webdna.smithmicro.com/
John Peacock
DOWNLOAD WEBDNA NOW!
Top Articles:
Talk List
The WebDNA community talk-list is the best place to get some help: several hundred extremely proficient programmers with an excellent knowledge of WebDNA and an excellent spirit will deliver all the tips and tricks you can imagine...
Related Readings:
There's a bug in the math context ... (1997)
Help! WebCat2 bug (Ben's input) (1997)
RE: Problem (1997)
Help name our technology! I found it (1997)
OT: Website Promotion (1998)
Search/sort in URL Was: GuestBook example (1997)
Date problems-more (1997)
Webmerchant quitting (1998)
Initiating NewCart (1997)
Searching multiple fields from one form field (1997)
Replace Statement (1997)
WebCat2b12 CGI Mac -- Problems propagating the cart through (1997)
using showpage and showcart commands (1996)
FW: WebCat Contest (1998)
FAX orders (1996)
quantity minimum problem (1997)
WebCatalog Technical Reference (1997)
Strange Form Occurrence on Log In Pages (2005)
problems with 2 tags shakur (1997)
Copyright that puppy (1998)