Summing a field full of numbers ...
This WebDNA talk-list message is from 1997
It keeps the original formatting.
numero = 10778
interpreted = N
texte = Hi Grant,I thought you'd like to know that when I put the following syntaxinto a template that searches thru a 16,000 record database, the mathdoes *not* choke on the very long string of number it has to add toget the results. You mentioned earlier that the [math] might not beable to handle such a long calculation, but it does just fine![search db=listings.db&nepricedata=0][format thousands .1f][math]([founditems][price]+[/founditems]0)/1000000[/math][/format][/search]This WebDNA takes about 22 seconds to get the results, so it's not afast response ... but remember, it's adding 16,000 number, each ofwhich has six figures.I'm not going to have WebCat2 calculate this everytime someone looksat the page, but I would like to calculate this number once a day soI can store the value in a database, then it will take only afraction of a second to retrieve that value with a lookup ... :)Sincerely,Ken
Associated Messages, from the most recent to the oldest:
|
- Summing a field full of numbers ... (Kenneth Grome 1997)
|
Hi Grant,I thought you'd like to know that when I put the following syntaxinto a template that searches thru a 16,000 record database, the mathdoes *not* choke on the very long string of number it has to add toget the results. You mentioned earlier that the
[math] might not beable to handle such a long calculation, but it does just fine![search db=listings.db&nepricedata=0][format thousands .1f]
[math](
[founditems][price]+[/founditems]0)/1000000[/math][/format][/search]This WebDNA takes about 22 seconds to get the results, so it's not afast response ... but remember, it's adding 16,000 number, each ofwhich has six figures.I'm not going to have WebCat2 calculate this everytime someone looksat the page, but I would like to calculate this number once a day soI can store the value in a database, then it will take only afraction of a second to retrieve that value with a lookup ... :)Sincerely,Ken
Kenneth Grome
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:
Late on Friday.... brain fried (2002)
Email Not Being Sent (2004)
RE: [WebDNA] bug in sending & character to DOS (2010)
Refering page (1998)
PIXO with cometsite ... and/or other plugins (1998)
popups, netscape vs explorer (1997)
FYI: virus alert (1996)
RE: New WebCatalog Version !!! (1997)
Error Lob.db records error message not name (1997)
StoreBuilder Shopping Cart (2000)
Problems with WebDNA-Talk list (1998)
Grouping search fields, etc. (1997)
[WebDNA] Authorization with .htaccess (2008)
caching -check- (2001)
Here's how to kill a Butler Database. (1997)
ShowIf, If, XML Syntax.... (2004)
Re:Change WebDNA-Talk Mail due to no digest for 1wk (1997)
select multiple (1997)
WC2b12: Yes, Formulas.db is for real (1997)
Virtual Domains (1998)