Re: Freeze
This WebDNA talk-list message is from 2003
It keeps the original formatting.
numero = 47625
interpreted = N
texte = On 2/10/03 4:35 PM, John Hill
wrote:> Could it be flushing large databases to disk after doing the requisit number> of append/updates? That could tie up the machine.Thanks john... This wasn't the problem but did put me on the track.I started watching some of the larger DBs.What I found in particular was one that had about 18,000 records (adiscussion forum actually) what the major culprit for the seemingly 'freezeup'.You see the logic I used was:Find all starter threads for each thread lookup all threads that use the starter sku in replyfield Use various math comparisons to check date of reply thread to show lastpostI had my max set to 30, but the search time on the an 18,000 (8 meg db) withtons o text, with 2 nested searches (90 searches per page).. Was kicking theserver to the curb for about 5-8 seconds....Couple that with a 5-10pm traffic spike on that db and we had a server thatappeared to be possessed. 2-3-4 people hitting it at once, or trying toanyway.So with much pain, I reworked the forum to include 3 new fields in eachstarter thread (reply count, reply date, reply time) Thus eliminating theneed for any recursive searches.Search time went from 8 seconds... To .19 seconds....um yeah bug differenceacross multiple users. The pain was the clean up script that search all18,000 records and gleaned the necessary data to get the db up to date (185seconds per try)So human error was the cause for me (been running like this since 1999 -just not noticeable until lately due to size of db and increase in traffic)LOL.. Its the same code base for the SMSI webdna dev center forum ;-) thoughthat looks like they will take quite some time to get 18,000 postings ...We can always improve our code!!!Lesson learned.Thanks for shove in the right direction though.Alex Alex J McCombie New World MediaChief Information Officer Drawer 607800/724.8973 Fair Haven, NY 13064Alex@NewWorldMedia.com http://OurClients.comInterface Designer WebDNA Programmer Database Designer-------------------------------------------------------------This message is sent to you because you are subscribed to the mailing list .To unsubscribe, E-mail to: To switch to the DIGEST mode, E-mail to Web Archive of this list is at: http://webdna.smithmicro.com/
Associated Messages, from the most recent to the oldest:
On 2/10/03 4:35 PM, John Hill wrote:> Could it be flushing large databases to disk after doing the requisit number> of append/updates? That could tie up the machine.Thanks john... This wasn't the problem but did put me on the track.I started watching some of the larger DBs.What I found in particular was one that had about 18,000 records (adiscussion forum actually) what the major culprit for the seemingly 'freezeup'.You see the logic I used was:Find all starter threads for each thread lookup all threads that use the starter sku in replyfield Use various math comparisons to check date of reply thread to show lastpostI had my max set to 30, but the search time on the an 18,000 (8 meg db) withtons o text, with 2 nested searches (90 searches per page).. Was kicking theserver to the curb for about 5-8 seconds....Couple that with a 5-10pm traffic spike on that db and we had a server thatappeared to be possessed. 2-3-4 people hitting it at once, or trying toanyway.So with much pain, I reworked the forum to include 3 new fields in eachstarter thread (reply count, reply date, reply time) Thus eliminating theneed for any recursive searches.Search time went from 8 seconds... To .19 seconds....um yeah bug differenceacross multiple users. The pain was the clean up script that search all18,000 records and gleaned the necessary data to get the db up to date (185seconds per try)So human error was the cause for me (been running like this since 1999 -just not noticeable until lately due to size of db and increase in traffic)LOL.. Its the same code base for the SMSI webdna dev center forum ;-) thoughthat looks like they will take quite some time to get 18,000 postings ...We can always improve our code!!!Lesson learned.Thanks for shove in the right direction though.Alex Alex J McCombie New World MediaChief Information Officer Drawer 607800/724.8973 Fair Haven, NY 13064Alex@NewWorldMedia.com http://OurClients.comInterface Designer WebDNA Programmer Database Designer-------------------------------------------------------------This message is sent to you because you are subscribed to the mailing list .To unsubscribe, E-mail to: To switch to the DIGEST mode, E-mail to Web Archive of this list is at: http://webdna.smithmicro.com/
Alex McCombie
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:
WebCat2 - [format thousands] (1997)
Shopping problems with 2.1b3 acgi (1997)
WebMerchant issues. [Resent] (2000)
ConvertChars request (1999)
Bannerad Demo (1998)
What ports does Webcatalog use (2003)
gateway application timeouts (1998)
Custom Shipping Charges (1997)
[WebDNA] Secure Cookies (2009)
Multiple fields on 1 input (1997)
[WebDNA] Using WebDNA with MAMP (2010)
More! on [ShowCart] and GET vs. POST (1997)
Need Sample Template - just purchased (1997)
Error Log.db --however (1997)
Access Denied! But why? (1997)
WebCatalog Hosting (1996)
Storebuilder, Smith-Micro Tech Support (2000)
X etc.... (1999)
[WebDNA] Secure Cookies (2009)
Banners (1997)