Re: [WebDNA] Lookup vs. Search
This WebDNA talk-list message is from 2009
It keeps the original formatting.
numero = 103049
interpreted = N
texte = --Apple-Mail-2--95349936Content-Type: text/plain;charset=US-ASCII;format=flowedContent-Transfer-Encoding: 7bitSo far, no change. Here the small stress file, so anybody can test:--Apple-Mail-2--95349936Content-Disposition: attachment;filename=stress.dnaContent-Type: application/octet-stream;x-unix-mode=0644;x-mac-type=54455854;name="stress.dna"Content-Transfer-Encoding: 7bit
WebDNA Performance Test[!] ##Check for the Database first - create it if not there--[/!][showif T=[fileinfo file=speed.db][exists][/fileinfo]][closedatabase db=speed.db][deletefile file=speed.db][/showif][showif F=[fileinfo file=speed.db][exists][/fileinfo]][writefile file=speed.db]skuvalue[/writefile][/showif][!] ##Delete the records in the DB to ensure the search is 'clean'--[/!][delete db=speed.db&neSKUdata=find_all]
| (seconds) | This Task | 
|  | 
|  | 
| Variables | 
| Text Variables - Set an increasing # into a text variable 10000 times 
 | [Math time]{[time]}-{[start_time]}[/Math] | 
| Let's do some math: sin(x), 0<x<51, 10000 times. 
 | [Math time]{[time]}-{[start_time]}[/Math] | 
|  | 
| Database Manipulation | 
| Open a database (2 fields), append 10000 records | [Math time]{[time]}-{[start_time]}[/Math] | 
| Now 40000 searches with [raw][lookup][/raw] | [Math time]{[time]}-{[start_time]}[/Math] | 
| 10000 searches with [raw][search][/raw] | [Math time]{[time]}-{[start_time]}[/Math] | 
 | Delete the records | [Math time]{[time]}-{[start_time]}[/Math] |