Re: How is it done?

This WebDNA talk-list message is from

1998


It keeps the original formatting.
numero = 17465
interpreted = N
texte = >I can see where this particular format would make searching faster, but >what about re-formatting my dates as the number of days since 1900? >Wouldn't that make searching even faster yet?Yes, but only if you make sure the numbers are 0-filled and fixed-width, so they can still be compared as text. Something like [format .6d]1[/format], which yields 000001.>You mentioned that storing dates in text-sortable format can yield a 10x >improvement on search times. Wouldn't a *numeric* search be even faster >than a text-based search?No, text is faster. It takes a small amount of time to convert text to numbers.>Does using the rn parameter in a search like this require that we also >put FieldNameType=num into the search parameters?Yes, ranges actually do work for numbers and dates (and text), but you have to tell it what type they are, just as you would for sorting. For a text range, E is in between C and K.Technical Support | ==== eCommerce and Beyond ==== Pacific Coast Software | WebCatalog, WebMerchant, 11770 Bernardo Plaza Court | SiteEdit Pro, PhotoMaster, San Diego, CA 92128 | Typhoon 619/675-1106 Fax: 619/675-0372 | http://www.smithmicro.com/ Associated Messages, from the most recent to the oldest:

    
>I can see where this particular format would make searching faster, but >what about re-formatting my dates as the number of days since 1900? >Wouldn't that make searching even faster yet?Yes, but only if you make sure the numbers are 0-filled and fixed-width, so they can still be compared as text. Something like [format .6d]1[/format], which yields 000001.>You mentioned that storing dates in text-sortable format can yield a 10x >improvement on search times. Wouldn't a *numeric* search be even faster >than a text-based search?No, text is faster. It takes a small amount of time to convert text to numbers.>Does using the rn parameter in a search like this require that we also >put FieldNameType=num into the search parameters?Yes, ranges actually do work for numbers and dates (and text), but you have to tell it what type they are, just as you would for sorting. For a text range, E is in between C and K.Technical Support | ==== eCommerce and Beyond ==== Pacific Coast Software | WebCatalog, WebMerchant, 11770 Bernardo Plaza Court | SiteEdit Pro, PhotoMaster, San Diego, CA 92128 | Typhoon 619/675-1106 Fax: 619/675-0372 | http://www.smithmicro.com/ PCS Technical Support

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:

Limit picture size on upload (2005) [WebDNA] Cart Mode hook issue (2018) listfile options (1997) Can you do this??? and other stuff (1997) Laying an egg. (1998) WebCat2b13MacPlugin - [math][date][/math] problem (1997) WebCat2b12 - New features for 1.6 users ... (1997) Forumulas.db & Variables (2002) Multiple prices (1997) Sandboxes (2004) Security Question (1997) Charting records by state (2000) customer info (2001) Emailer setup (1997) Encrypting userid for email (2000) WebCat2b13MacPlugIn - [include] (1997) RE: Shopping Cart Questions (1998) [WebDNA] Proper use of [spawn]? (2009) Major Security Hole (1998) Robert Minor duplicate mail (1997)