Previous Thread
Next Thread
Print Thread
Hop To
#252073 01/15/2013 9:45 AM
Joined: Mar 2007
Posts: 285
Likes: 1
E
Enthusiast
Enthusiast
E Offline
Joined: Mar 2007
Posts: 285
Likes: 1
Hello All, Happy New Year!

(Running ver. 7.5.6p2) I get the following errors every day, any help would be appreciated.

Quote
Script: /home1/electrm4/public_html/forums/scripts/postlist.inc.php - Line: 511
select t1.TOPIC_ID,t1.POST_ID,t2.USER_DISPLAY_NAME,t1.TOPIC_CREATED_TIME,t1.TOPIC_LAST_REPLY_TIME,t1.TOPIC_SUBJECT,
t1.TOPIC_STATUS,t1.TOPIC_IS_APPROVED,t1.TOPIC_ICON,t1.TOPIC_VIEWS,t1.TOPIC_REPLIES,t1.TOPIC_TOTAL_RATES,
t1.TOPIC_RATING,t3.USER_NAME_COLOR,t2.USER_MEMBERSHIP_LEVEL,t1.USER_ID,t1.TOPIC_IS_STICKY,t1.TOPIC_LAST_POSTER_ID,
t1.TOPIC_LAST_POSTER_NAME,t1.TOPIC_LAST_POST_ID,t1.TOPIC_IS_EVENT,t1.TOPIC_HAS_FILE,t1.TOPIC_HAS_POLL,t1.TOPIC_POSTER_NAME,t1.TOPIC_THUMBNAIL,t4.POST_BODY,t3.USER_GROUP_IMAGES
from ubbt_TOPICS as t1
left join ubbt_USERS as t2 on t1.USER_ID = t2.USER_ID
left join ubbt_USER_PROFILE as t3 on t1.USER_ID = t3.USER_ID
left join ubbt_POSTS as t4 on t1.POST_ID = t4.POST_ID
where t1.FORUM_ID = 1
and t1.TOPIC_IS_STICKY = '0'

AND t1.TOPIC_IS_APPROVED = '1'
ORDER BY t1.TOPIC_LAST_REPLY_TIME desc
LIMIT 9280, 21
- Lost connection to MySQL server during query

ECNet #252074 01/15/2013 11:00 AM
Joined: Jun 2006
Posts: 16,301
Likes: 116
UBB.threads Developer
UBB.threads Developer
Joined: Jun 2006
Posts: 16,301
Likes: 116
How're the resources on your server during peak hours?
Quote
- Lost connection to MySQL server during query


I am a Web Development Contractor, I do not work for UBBCentral. I have provided free User to User Support since the beginning of these support forums.
Do you need Forum Install or Upgrade Services?
Forums: A Gardeners Forum, Scouters World
UBB.threads: UBBWiki, UBB Styles, UBB.Sitemaps
Longtime Supporter & Resident Post-A-Holic
VNC Web Services: Code Modifications, Upgrades, Styling, Coding Services, Disaster Recovery, and more!
Gizmo #252075 01/15/2013 11:15 AM
Joined: Mar 2007
Posts: 285
Likes: 1
E
Enthusiast
Enthusiast
E Offline
Joined: Mar 2007
Posts: 285
Likes: 1
Originally Posted by Gizmo
How're the resources on your server during peak hours?
It's a shared server, I don't really know any details. There are no other errors logged at the time.

What is going on during this request? What are the limit numbers referring to?

ECNet #252076 01/15/2013 11:31 AM
Joined: Apr 2007
Posts: 3,940
Likes: 1
SD Offline
Former Developer
Former Developer
Joined: Apr 2007
Posts: 3,940
Likes: 1
it's a standard forum list query that is inefficient as all heck. showflat has the same problem with very LONG topics.. ( lots of posts )

you have a forum that has a HUGE number of topics in it and someone selected a page that is large. hence the starting LIMIT number.

you have 2 choices, really.

upgrade your hosting...
prune old topics.

2c

SD #252077 01/15/2013 12:26 PM
Joined: Mar 2007
Posts: 285
Likes: 1
E
Enthusiast
Enthusiast
E Offline
Joined: Mar 2007
Posts: 285
Likes: 1
I've been meaning to ask..... when is a good time, or when do you need to archive?

I have a little over 204k posts in almost 22k threads, going back 10 years. Would archiving help performance?

ECNet #252078 01/15/2013 3:02 PM
Joined: Apr 2007
Posts: 3,940
Likes: 1
SD Offline
Former Developer
Former Developer
Joined: Apr 2007
Posts: 3,940
Likes: 1
that's a medium forum and can run quite well on the proper hosting platform.

smile

SD #252079 01/15/2013 3:23 PM
Joined: Mar 2007
Posts: 285
Likes: 1
E
Enthusiast
Enthusiast
E Offline
Joined: Mar 2007
Posts: 285
Likes: 1
Originally Posted by SD
that's a medium forum and can run quite well on the proper hosting platform.

smile
SD,

I'm confused, what did you mean by prior response about a HUGE number of topics and suggestion to prune? Would Archiving help the current situation?

ECNet #252080 01/15/2013 9:31 PM
Joined: Apr 2007
Posts: 3,940
Likes: 1
SD Offline
Former Developer
Former Developer
Joined: Apr 2007
Posts: 3,940
Likes: 1
sure.. moving stuff OUT of highly trafficked forums to less frequented ones does help.

but 'pruning' is actually deleting topics that are old/stale/of no use anymore

smile

SD #252111 01/20/2013 11:38 AM
Joined: Mar 2007
Posts: 285
Likes: 1
E
Enthusiast
Enthusiast
E Offline
Joined: Mar 2007
Posts: 285
Likes: 1
Sorry, I didn't realize there wasn't an Archive option.

I optimized tables and things seem to move quicker, but still get the occasional error.

Hypothetically, if a forum had close to 10,000 threads, would creating subforums under it, and moving a good portion of threads out of the main forum help to cut down on these errors?

a little? a lot?

Bill

Last edited by ECNet; 01/20/2013 11:39 AM. Reason: spelling
ECNet #252112 01/20/2013 12:40 PM
Joined: Apr 2007
Posts: 3,940
Likes: 1
SD Offline
Former Developer
Former Developer
Joined: Apr 2007
Posts: 3,940
Likes: 1
that's like asking 'how big is a ball of string?'

it's all relative to what hosting package you have.

if your hosting package is a shared/cheaper one, you will be fighting resource issues as you grow.

ideally, you get big enough where the board revenue supports a VPS or dedicated solution.

one thing that helps is to change the default age on a forum.

don't set it up to 'From all dates', but instead to '3 months'. that way less threads are in the mix, everytime they display the default forum view.

the new/unread indicator can be turned off to save resources too.

SD #252143 01/30/2013 10:07 AM
Joined: Mar 2007
Posts: 285
Likes: 1
E
Enthusiast
Enthusiast
E Offline
Joined: Mar 2007
Posts: 285
Likes: 1
Originally Posted by SD
the new/unread indicator can be turned off to save resources too.
Where can I find this setting?

Bill

ECNet #252144 01/30/2013 11:18 AM
Joined: Jun 2006
Posts: 16,301
Likes: 116
UBB.threads Developer
UBB.threads Developer
Joined: Jun 2006
Posts: 16,301
Likes: 116
There are two settings, both found at:
CP => Display Options => General => Primary Tab

"Forum Summary Options" => "Show total # of unread posts per forum"
"Forum Display Options" => Show total # of unread replies in topics"


I am a Web Development Contractor, I do not work for UBBCentral. I have provided free User to User Support since the beginning of these support forums.
Do you need Forum Install or Upgrade Services?
Forums: A Gardeners Forum, Scouters World
UBB.threads: UBBWiki, UBB Styles, UBB.Sitemaps
Longtime Supporter & Resident Post-A-Holic
VNC Web Services: Code Modifications, Upgrades, Styling, Coding Services, Disaster Recovery, and more!
Gizmo #252250 02/12/2013 1:04 PM
Joined: Mar 2007
Posts: 285
Likes: 1
E
Enthusiast
Enthusiast
E Offline
Joined: Mar 2007
Posts: 285
Likes: 1
Originally Posted by Gizmo
There are two settings, both found at:
CP => Display Options => General => Primary Tab

"Forum Summary Options" => "Show total # of unread posts per forum"
"Forum Display Options" => Show total # of unread replies in topics"
sorry for the late reply...

I did have thiose settings disabled, I thought there was something else.

I've migrated the forum to a VPS host, so new issues...

Thanks


Link Copied to Clipboard
ShoutChat
Comment Guidelines: Do post respectful and insightful comments. Don't flame, hate, spam.
Recent Topics
Version 7.7.5 Images suddenly not displaying
by Stovebolt - 05/04/2024 11:19 AM
Bots
by Outdoorking - 04/13/2024 5:08 PM
Can you add html to language files?
by Baldeagle - 04/07/2024 2:41 PM
Do I need to rebuild my database?
by Baldeagle - 04/07/2024 2:58 AM
This is not a bug, but a suggestion
by Baldeagle - 04/05/2024 11:25 PM
Who's Online Now
3 members (Geoff, Gizmo, 1 invisible), 634 guests, and 178 robots.
Key: Admin, Global Mod, Mod
Random Gallery Image
Latest Gallery Images
Los Angeles
Los Angeles
by isaac, August 6
3D Creations
3D Creations
by JAISP, December 30
Artistic structures
Artistic structures
by isaac, August 29
Stones
Stones
by isaac, August 19
Powered by UBB.threads™ PHP Forum Software 8.0.0
(Preview build 20240506)