 |
 |
 |
 |
Registered: 11/22/06
Posts: 163
|
|
|
 |
 |
 |
 |
|
 |
 |
 |
 |
#207047 - 02/22/08 06:32 PM
Re: General MySQL question
[Re: jgeoff]
|
Pooh-Bah
|
Registered: 08/08/06
Posts: 1922
Loc: NJ
|
|
Out of curiosity I ran the same thing to compare...
Slow_queries 642 Handler_read_rnd 30 M Handler_read_rnd_next 913 M Qcache_lowmem_prunes 141 k Slow_launch_threads 4 - The number of threads that have taken more than slow_launch_time seconds to create Created_tmp_disk_tables 13 k Select_full_join 1,418 Select_range_check 4 - The number of joins without keys that check for key usage after each row. (If this is not 0, you should carefully check the indexes of your tables.) Opened_tables 23 k Table_locks_waited 3,349
Sorry to piggy-back on Basil's thread, but I seem to have similar issues. My web host enabled the slow queries log and came up with the following:
The main forum pages loads in 3 seconds for me, but I do see this in the log:
# Time: 080222 17:04:19 # User@Host: gbb_admin[gbb_admin] @ localhost [] # Query_time: 34 Lock_time: 0 Rows_sent: 1 Rows_examined: 91692 select COUNT(*) as posts, sum(t1.POST_IS_TOPIC) as topics from ubbt_POSTS as t1, ubbt_TOPICS as t2 where t2.FORUM_ID = 14 and t1.TOPIC_ID = t2.TOPIC_ID and t1.POST_IS_APPROVED = '1' and t1.POST_POSTED_TIME > 120336 4960;
They said Something in the tables Phil listed is causing the problem. You may want to review them in phpmyadmin to make sure there isn't bad data in there. but I don't understand what the log entry is telling me. I had some "overhead" so optimized my tables, but not sure what else I can do...
_________________________
GangsterBB.NET (Ver. 7.5.6) 2007 Content Rulez Contest - Hon Mention UBB.classic 6.7.2 - RIP Browsers: Chrome, Firefox, & Safari (Win7 and iPhone); No IE, ever!
|
|
Top
|
|
|
|
|
 |
 |
 |
 |
 |
 |
 |
 |
|
Express Hosting
"We are the official hosting company of UBB.threads. Ask us about our free migration services to migrate your UBB.threads installation."
|
|
|
 |
 |
 |
 |
 |
 |
 |
 |
#207138 - 02/23/08 06:12 PM
Re: General MySQL question
[Re: jgeoff]
|
Post-a-holic
|
Registered: 06/04/06
Posts: 10164
Loc: Aberdeen, WA
|
|
Let me guess. You have the "Show total # of unread posts per forum?" checked under Forum Summary Options. Where right under it, it says: Warning: This can cause excess load and contribute to slow speed.  Basically, if someone never reads a forum, every time they visit it has to figure out how many unread posts are in each forum. As the number of topics and posts grow, the number of rows that are scanned grows. If all of your users regularly visit each forum, the queries are pretty quick. But if they only visit a few of the forums, the number of unread posts in the other forums grow, leading to larger query times. One of the main reasons you don't see this feature on many other forums, is there is no non-resource intensive way to do it. We kept it in as an option because some people love it, but it's a resource hog, plain and simple  Forum Display Options has another one of these features with the same warning.
Edited by Rick (02/23/08 06:15 PM)
|
|
Top
|
|
|
|
|
 |
 |
 |
 |
 |
 |
 |
 |
#207145 - 02/23/08 06:41 PM
Re: General MySQL question
[Re: Rick]
|
Pooh-Bah
|
Registered: 08/08/06
Posts: 1922
Loc: NJ
|
|
Yes, I do have that enabled.  But does it make sense that normally I'll see something like "Generated in 0.01 seconds in which 0 seconds were spent on a total of 22 queries" but just periodically (some good days, some bad days) it'd take 10-20-30 or even close to a minute to load the page? And if I wanted to test this, is there a way to "Mark All Read" for every member, and/or, if I uncheck the box will it clear all that info out of the database? Thanks, JG
_________________________
GangsterBB.NET (Ver. 7.5.6) 2007 Content Rulez Contest - Hon Mention UBB.classic 6.7.2 - RIP Browsers: Chrome, Firefox, & Safari (Win7 and iPhone); No IE, ever!
|
|
Top
|
|
|
|
|
 |
 |
 |
 |
|
|