Go Back   EN World D&D / RPG News > Meta - Forums About Forums > Meta

Meta Post comments and questions about the messageboards and other parts of EN World. If you have a problem, this is where to go. Moderator email addresses are posted here.

 
Share LinkBack Thread Tools Display Modes
Old 16th August 2006, 04:27 AM   #1 (permalink)
Registered User
 
Twin Rose's Avatar
 
Join Date: Feb 2002
Location: Rural Washington State
Posts: 1,409
Twin Rose Kobold Slinger (Lvl 1)
Send a message via ICQ to Twin Rose Send a message via Yahoo to Twin Rose
Speed trouble found, perhaps?

I think I found what it is that causes occasional slowdown of EN World.

This, of course, is the search feature if more than 1 or 2 people are doing searches at the same time. If I do a search for "All time" in "All categories" and run benchmarks they are 5 to 20 times slower until my search is complete if multiples are doing it.

I'm seeing what I can do to optimize the database for searches.

Otherwise, the randomness of it has me really stumped. The combination of factors - multiple people doing searches simultaneously - could account for it, and why it sometimes happens with few people on and sometimes doesn't happen when lots are on. Investigation continues, but wanted to keep everyone informed
__________________
Chris Johanson
Twin Rose Software
http://www.twinrose.net/
Twin Rose is offline   Reply With Quote
Old 16th August 2006, 09:42 AM   #2 (permalink)
Black Metal Nerd
 
Nyaricus's Avatar
 
Join Date: Aug 2005
Location: Winnipeg, Manitoba, Canada, eh.
Posts: 3,657
Nyaricus Goblin Sharpshooter (Lvl 2)
Send a message via MSN to Nyaricus
I've found En World to be really fast sometimes, and at others to be abomidably (sp?) slow to load. The last 24 hours have been the most trying in months, perhaps for me.

Just saying Thansk for all the hard work TR
__________________
Nyaricus' Tasty Bits
Nyaricus' Deluxe 3.5e Faerun Character Sheet v5

Hoarfrost
My Black/Death Metal Band
\m/

Tactician 80% | Character Player 65% | Storyteller 65% | Power Gamer 60%
Weekend Warrior 60% | Casual Gamer 40% | Specialist 30%
Nyaricus is offline   Reply With Quote
Old 16th August 2006, 09:49 AM   #3 (permalink)
Registered User
 
Twin Rose's Avatar
 
Join Date: Feb 2002
Location: Rural Washington State
Posts: 1,409
Twin Rose Kobold Slinger (Lvl 1)
Send a message via ICQ to Twin Rose Send a message via Yahoo to Twin Rose
Quote:
Originally Posted by Nyaricus
I've found En World to be really fast sometimes, and at others to be abomidably (sp?) slow to load. The last 24 hours have been the most trying in months, perhaps for me.

Just saying Thansk for all the hard work TR
The last 24 hours? There's been a couple laggy bursts but for the most part it's been okay. What seems to be the problem WAS related to searches, but very difficult to explain. I think I got it.
__________________
Chris Johanson
Twin Rose Software
http://www.twinrose.net/
Twin Rose is offline   Reply With Quote
Old 16th August 2006, 04:48 PM   #4 (permalink)
Lord of the (Nürburg)ring
 
nerfherder's Avatar
 
Join Date: Apr 2004
Location: Newcastle, UK
Posts: 899
nerfherder Goblin Sharpshooter (Lvl 2)
If you are searching for all data and then ordering it by date, so you may be doing a table scan. I believe you have a pair of disks in a RAID 1 configuration (i.e. mirrored) so that will hit one of the disks hard. This may then be followed by a sort on disk (if a lot of data is retrieved), this time hitting both disks hard. During a table scan, other queries will be able to use the other disk, but during a disk sort both disks will be being written to, slowing other queries dramatically.

You might want to do EXPLAIN on the SQL to get the query execution plan to see whether it is using any indexes (especially on date - you ideally want to be able to just retrieve the most recent n number, not all of them), and whether it is doing filesort (i.e. sorting on disk).

There's a bit more info here: http://mysql.com/doc/refman/5.1/en/o...imization.html

Cheers,
Liam

P.S. feel free to send me the SQL, table and index definitions and SQL EXPLAIN output by email to nerfherder67 at hotmail dot com. I'm more an Oracle expert, but I'm sure MySQL can't be too different.
nerfherder is offline   Reply With Quote


Bookmarks

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


And yet another word from our sponsors
Visit Our Sponsors
Visit Our Sponsors... Again
Powered by vBadvanced CMPS v3.0.1

All times are GMT +1. The time now is 12:49 AM.


Site Contents © 2008 ENWorld
PHP Ajax Multimedia Web Framework © 2008 Digital Media Graphix
Powered by vBulletin® Version 3.8.0 Beta 1
Copyright ©2000 - 2009, Jelsoft Enterprises Ltd.
Search Engine Optimization by vBSEO 3.2.0

"Vault Data" powered by VaultWiki v2.5.1.
Copyright © 2008 - 2009, Cracked Egg Studios.