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:
Categories (2000)
WebCat2b12 - nesting [tags] (1997)
showcart problem, HELP! (1999)
variables in [addlineitem] (1998)
(1997)
Mixing and/or in searches (1998)
UPS problems (again) (2000)
Great product and great job ! (1997)
HELP WITH DATES (1997)
Problems with [Applescript] (1997)
RE: E-mailer error codes (1997)
Forbidden CGI Error (1997)
Hard Questions ? (1997)
Virtual Postcard almost complete... (1998)
Out of the woodwork (2007)
ShowNext Command (1997)
HTML Editors (1997)
[WebDNA] Upgrade from OS 10.7.5 WebDNA 6.2 to Mavericks (2013)
Cache Access Error (2000)
Notepad problems (1998)