Re: [WebDNA] CORRECTION: 60% failure rate using replace in a loop

This WebDNA talk-list message is from

2010


It keeps the original formatting.
numero = 105617
interpreted = N
texte = > Did you check if the [replace] tag actually writes to disk? My tests confirm that replace will NOT write to disk, so that's not the cause of the slowdown. I'm disappointed that my first coding approach was so slow that it was essentially unworkable. I didn't have any idea that it would take more than a fraction of a second to do a set of 9 replaces. But there were two searches before the 9 replaces, and the db's were not tiny, so one or both of these factors was apparently causing each set to taking 2-3 seconds to complete. Now I'm re-structuring my code to try an approach that might be faster. Sincerely, Kenneth Grome Associated Messages, from the most recent to the oldest:

    
  1. Re: [WebDNA] CORRECTION: 60% failure rate using replace in a loop (christophe.billiottet@webdna.us 2010)
  2. Re: [WebDNA] CORRECTION: 60% failure rate using replace in a loop (Kenneth Grome 2010)
  3. Re: [WebDNA] CORRECTION: 60% failure rate using replace in a loop (Kenneth Grome 2010)
  4. Re: [WebDNA] CORRECTION: 60% failure rate using replace in a loop (christophe.billiottet@webdna.us 2010)
  5. Re: [WebDNA] CORRECTION: 60% failure rate using replace in a loop (Kenneth Grome 2010)
  6. Re: [WebDNA] CORRECTION: 60% failure rate using replace in a loop (Kenneth Grome 2010)
  7. Re: [WebDNA] CORRECTION: 60% failure rate using replace in a loop (christophe.billiottet@webdna.us 2010)
  8. Re: [WebDNA] CORRECTION: 60% failure rate using replace in a loop (Kenneth Grome 2010)
  9. Re: [WebDNA] CORRECTION: 60% failure rate using replace in a loop (christophe.billiottet@webdna.us 2010)
  10. Re: [WebDNA] CORRECTION: 60% failure rate using replace in a loop (Kenneth Grome 2010)
  11. Re: [WebDNA] CORRECTION: 60% failure rate using replace in a loop (christophe.billiottet@webdna.us 2010)
  12. Re: [WebDNA] CORRECTION: 60% failure rate using replace in a loop (Kenneth Grome 2010)
  13. Re: [WebDNA] CORRECTION: 60% failure rate using replace in a loop (christophe.billiottet@webdna.us 2010)
  14. [WebDNA] CORRECTION: 60% failure rate using replace in a loop (Kenneth Grome 2010)
> Did you check if the [replace] tag actually writes to disk? My tests confirm that replace will NOT write to disk, so that's not the cause of the slowdown. I'm disappointed that my first coding approach was so slow that it was essentially unworkable. I didn't have any idea that it would take more than a fraction of a second to do a set of 9 replaces. But there were two searches before the 9 replaces, and the db's were not tiny, so one or both of these factors was apparently causing each set to taking 2-3 seconds to complete. Now I'm re-structuring my code to try an approach that might be faster. Sincerely, Kenneth Grome 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:

WC2b15 - [HTMLx]...[/HTMLx] problems (1997) Interfacing WebMerchant to www.fedex.com (1997) WHY SO MANY DUPLICATES? (1999) Modulo function? (2000) Search for starts with and ends with? (2003) RE: A zip code search (1998) Ship Cost Calculated via Subtotal (1998) WebCat2b13MacPlugIn - [showif][search][/showif] (1997) [CART] (1997) Can't load tmpl files (1997) Migrating to NT (1997) [url] link (1998) Caching pages...again (2001) [WebDNA] Digest from talk@webdna.us (2018) Include a big block of text (1997) New public beta available (1997) Server IP address? (1998) No more misunderstanding ... yay! :) (1997) WebMerchant & AuthorizeNet setup? (2000) bug ? causes NT event log to fill (1997)