Re: log files
This WebDNA talk-list message is from 1998
It keeps the original formatting.
numero = 21822
interpreted = N
texte = >>In the real world is the slowdown of having every page do an append>>file to a log file a meaningful number. Is the slowdown 2 seconds, .1 sec,>>.01 sec. Is anyone using a similar solution.>>Use this code to see for yourself:>>[ElapsedTime]> [AppendFile]...[/AppendFile]>[/ElapsedTime]This code won't tell you how long it takes to perform the [appendfile]. The syntax is wrong because ElapsedTime is a global tag, not a context. Here's what the HTML docs say:Putting [ELAPSEDTIME] in your template will display the elapsed time (in 60ths of a second) since the beginning of processing this page. Put one at the top of a page, and another at the bottom to see how long the entire page takes to process (subtract the 2 numbers to get the answer).Therefore, the following example would be one method for getting an approximation of the time required to perform an [appendfile]:[math show=f]startTime=[elapsedtime][/math][AppendFile]...[/AppendFile]AppendFile Ticks = [math][elapsedtime]-startTIme[/math]Although this should give you a rough estimate, you might be better off to use two [elapsedtime] tags without the math contexts, and doing the math yourself:[elapsedtime][AppendFile]...[/AppendFile][elapsedtime]... because there's a possibility that simply having webcat perform the math calculations will add an extra tick or two to the results (but I doubt it) ... :)Sincerely,Ken Grome808-737-6499WebDNA Solutionsmailto:ken@webdna.nethttp://www.webdna.net
Associated Messages, from the most recent to the oldest:
>>In the real world is the slowdown of having every page do an append>>file to a log file a meaningful number. Is the slowdown 2 seconds, .1 sec,>>.01 sec. Is anyone using a similar solution.>>Use this code to see for yourself:>>
[elapsedtime]>
[appendfile]...[/AppendFile]>[/ElapsedTime]This code won't tell you how long it takes to perform the
[appendfile]. The syntax is wrong because ElapsedTime is a global tag, not a context. Here's what the HTML docs say:Putting
[elapsedtime] in your template will display the elapsed time (in 60ths of a second) since the beginning of processing this page. Put one at the top of a page, and another at the bottom to see how long the entire page takes to process (subtract the 2 numbers to get the answer).Therefore, the following example would be one method for getting an approximation of the time required to perform an
[appendfile]:[math show=f]startTime=
[elapsedtime][/math]
[appendfile]...[/AppendFile]AppendFile Ticks =
[math][elapsedtime]-startTIme[/math]Although this should give you a rough estimate, you might be better off to use two
[elapsedtime] tags without the math contexts, and doing the math yourself:
[elapsedtime][appendfile]...[/AppendFile]
[elapsedtime]... because there's a possibility that simply having webcat perform the math calculations will add an extra tick or two to the results (but I doubt it) ... :)Sincerely,Ken Grome808-737-6499WebDNA Solutionsmailto:ken@webdna.nethttp://www.webdna.net
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:
BUG REPORT -- Refusing connections! (1999)
Url encoded fun (1998)
Search Questions (2000)
Trigger Problems (2001)
Draft Manual, Tutorial, and more (1997)
Dr.Watson Error (1999)
Extended [ConvertChars] (1997)
WebCatalog Features (1997)
carriage returns in data (1997)
Web Logs (1998)
WebCat Emailer & Liststar (1997)
Help name our technology! (1997)
determining plug-ins? (1998)
[search] & [encrypt]/[decrypt] (2001)
The USArea® Network web site ... (1997)
more ! testing (1997)
Multiple adding (1997)
can you take a look (2003)
Using [sendmail] for mass mailings (2001)
Search a date field by month only... (1999)