Previous Thread
Next Thread
Print Thread
Hop To
#237229 06/05/2010 1:20 PM
Joined: Mar 2008
Posts: 262
enthusiast
enthusiast
Joined: Mar 2008
Posts: 262
We have a 100mb limit on out MySQL database on our host and we are over that right now. I have asked the Mods to do some house keeping, but what is in the table ubbt_IMPORT_MAP, and can it be cleaned up?

Thanks,
Ian


Ian
http://www.firstgenmc.com/ubbthreads

"Experience is a hard teacher because she gives the test first, the lesson afterwords."
Joined: Apr 2007
Posts: 3,940
Likes: 1
SD Offline
Former Developer
Former Developer
Joined: Apr 2007
Posts: 3,940
Likes: 1
if you no longer do a redirect from your old style board (classic) to the new threads, then you can simply empty out that table..

DON'T delete it.. just flush the records out..

TRUNCATE TABLE ubbt_IMPORT_MAP would do the trick..

the KEY is that you no longer need to hang on to ANY of the ubb classic links..

some peeps wanna keep that around for the search engine having indexed the old links.. but nowadays, if you get indexed, those old links are gonna be less and less relavent

-- further note --

the biggest offenders in terms of space of ubbt_POSTS and ubbt_PRIVATE_MESSAGE_POSTS

so you'd see the quickest impact, by pruning older topics..

also you can limit the number of PMs users can keep around.. since the advent of Email PM to self, there is less of an overriding reason to make your ubb.threads board have to save the messages.. peeps can email them to themselves for safekeeping, put them in nice folders by category or whatever in their email client, then delete from your board..

2c

SD #237231 06/05/2010 1:46 PM
Joined: Mar 2008
Posts: 262
enthusiast
enthusiast
Joined: Mar 2008
Posts: 262
Thanks! That helps. I am doing some testing on my testing instance today to see if I can clean it up a little. I assume I have to turn on Can email posts to others at the site level for it to work on PM's? We have it turned off for normal users right now...


Ian
http://www.firstgenmc.com/ubbthreads

"Experience is a hard teacher because she gives the test first, the lesson afterwords."
Joined: Apr 2007
Posts: 3,940
Likes: 1
SD Offline
Former Developer
Former Developer
Joined: Apr 2007
Posts: 3,940
Likes: 1
yes smile

SQL Query
SELECT COUNT(*) as PMs, u.USER_DISPLAY_NAME as PM_Hog
	FROM
	 ubbt_PRIVATE_MESSAGE_USERS pmu, ubbt_PRIVATE_MESSAGE_TOPICS pmt, ubbt_USERS u
	WHERE pmu.TOPIC_ID=pmt.TOPIC_ID
	AND pmu.USER_ID=u.USER_ID
	GROUP BY pmu.USER_ID HAVING PMs>40
	ORDER BY PMs DESC

that query, when used in your admin cpanel, database tools, sql command will show you who the PM hogs are too..

note "PMs>40" you can change that number 40 to something more meaningful to your forum PM limits wink

2c


Link Copied to Clipboard
ShoutChat
Comment Guidelines: Do post respectful and insightful comments. Don't flame, hate, spam.
Recent Topics
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
Is UBB.threads still going?
by Aaron101 - 04/01/2022 8:18 AM
Who's Online Now
4 members (Nightcrawler, Outdoorking, Ruben, 1 invisible), 872 guests, and 274 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 20230217)