Re: CART question
This WebDNA talk-list message is from 2004
It keeps the original formatting.
numero = 59990
interpreted = N
texte = Patrick J. wrote:> The client is concerned that 15 numbers is too long for the membership > ID. Would it be a bad thing to, say, [getchars] on the last 8 numbers > of the [cart] before storing it in the db? Are those 8 numbers always > different under the algorithm WebDNA uses, or is it still possible to > end up with a duplicate number if I don't use the whole [cart] value?The cart is a unique _character string_ that is typically 15 characters long (it used to be shorter before we entered the last power of two seconds) but can be longer. It is based on the number of seconds since the Unix Epoch, plus a uniquifier sequence, so that no matter how many carts are assigned in a given second, all carts are supposed to be unique (up to the granularity of the unique portion).Consequently, you should never:a) treat a cart as a number (it's not and only sorts properly as a variable length string and it will in fact overflow most number fields);b) truncate the cart value for some other purpose.HTHJohn-- John PeacockDirector of Information Research and TechnologyRowman & Littlefield Publishing Group4720 Boston WayLanham, MD 20706301-459-3366 x.5010fax 301-429-5747-------------------------------------------------------------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:
Patrick J. wrote:> The client is concerned that 15 numbers is too long for the membership > ID. Would it be a bad thing to, say, [getchars] on the last 8 numbers > of the [cart] before storing it in the db? Are those 8 numbers always > different under the algorithm WebDNA uses, or is it still possible to > end up with a duplicate number if I don't use the whole [cart] value?The cart is a unique _character string_ that is typically 15 characters long (it used to be shorter before we entered the last power of two seconds) but can be longer. It is based on the number of seconds since the Unix Epoch, plus a uniquifier sequence, so that no matter how many carts are assigned in a given second, all carts are supposed to be unique (up to the granularity of the unique portion).Consequently, you should never:a) treat a cart as a number (it's not and only sorts properly as a variable length string and it will in fact overflow most number fields);b) truncate the cart value for some other purpose.HTHJohn-- John PeacockDirector of Information Research and TechnologyRowman & Littlefield Publishing Group4720 Boston WayLanham, MD 20706301-459-3366 x.5010fax 301-429-5747-------------------------------------------------------------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:
WebDNA deletes major DB data big time (2004)
WebCatalog NT (1996)
Crashing bug setting an array value to blank (2003)
Users.db [encrypt seed=????] (1998)
[URL] around a [sendmail] recipient? (2000)
WebCat2 several catalogs? (1997)
dos performance (1998)
how to add from an Include file command (2005)
NEW NetProfessional Revealed (1998)
How do I get Google to crawl a WebCat site? (2003)
frames & carts (1997)
WebCatalog can't find database (1997)
request for string functions (1998)
[BULK] [WebDNA] Wishlist: ignore whitespace in database changes (2016)
Add a field to the error log? (1997)
WebCatalog on Linux/MacOSX/etc (2000)
New Plug-in and Type 11 errors (1997)
'does not contain' operator needed ... (1997)
Help formatting search results w/ table (1997)
reading a email (2000)