Welcome, Guest. Please Login or Register.
April 25, 2024, 10:38:48 PM
Home Help Search Log in Register
News: If you are still using YaBB SE, please consider upgrading to SMF as soon as possible.

YaBB SE Community  |  English User Help  |  FAQ  |  Large message boards and MySQL logs of slow response « previous next »
Pages: 1 ... 5 6 [7] 8 9 10 Reply Ignore Print
Author Topic: Large message boards and MySQL logs of slow response  (Read 248981 times)
Agelmar
YaBB God
*****
Posts: 931


Takako Matsu = Goddess

Re:Large message boards and MySQL logs of slow response
« Reply #90 on: May 30, 2002, 06:38:00 PM »
Reply with quote

I notice you are using ANALYZE TABLE - why not use OPTIMIZE TABLE? OPTIMIZE TABLE (assuming that you are running MyISAM tables) will do a lot more - It reclaims unused space left by deleted records (i.e. if you delete / modify a post), updates indexes, repairs the table after rows have been deleted or split, sorts the index pages if they're not sorted, and updates statistics..... also defragments the datafile.

You can simply replace ANALYZE TABLE with OPTIMIZE TABLE in the previously posted code snippet and your board should be even happier ^-^. (OPTIMIZE TABLE takes a bit longer than ANALYZE TABLE, but not much. I did it table by table, and on my board, the largest table (messages), with about 25,000 messages, only took 2.5 seconds. Entire process took less than ten seconds for all tables. Note that the board will be unavailable while you do OPTIMIZE TABLE, as it does place a lock on the table while OPTIMIZE TABLE is running, but it should only take a few seconds.)
Logged

Jeff Lewis
Global Moderator
YaBB God
*****
Posts: 10149


I'm a llama!

WWW
Re:Large message boards and MySQL logs of slow response
« Reply #91 on: May 30, 2002, 08:51:08 PM »
Reply with quote

They do different things...optimise.php is also included in this zip that you can find in this thread.
Logged

Agelmar
YaBB God
*****
Posts: 931


Takako Matsu = Goddess

Re:Large message boards and MySQL logs of slow response
« Reply #92 on: May 31, 2002, 12:02:03 PM »
Reply with quote

Yes, OPTIMIZE TABLE does more than ANALYZE TABLE (it performs the same function as ANALYZE TABLE and then some). If I am not mistaken, OPTIMIZE TABLE (on a MyISAM table) is the same thing as doing myisamchk --quick --check-only-changed --sort-index --analyze whereas ANAYLZE TABLE is the same as myisamchk -a. (for those who don't know, -a is the same as --analyze on myisamchk)... as such, I would think that there would be no real reason not to go with OPTIMIZE TABLE rather than ANALYZE TABLE.... at the most it will tack on another few seconds...
Logged

mediman
Support Team
YaBB God
*****
Posts: 2858


WWW
Re:Large message boards and MySQL logs of slow response
« Reply #93 on: June 16, 2002, 12:48:51 PM »
Reply with quote

correct, but donĀ“t use to often optimize cause mysql will change then everytime the statistics (mysql use with join table not the keys but the statistics and optimize clear this everytime)!

if you will for you weekly optimizing use table optimize then you have to add to the join select queries the "use key" statement to have a good speed! remember the probs with any queries in 130, this queries have had keys but it was a join select querie so it was very slow!

mediman
« Last Edit: June 16, 2002, 12:52:34 PM by mediman » Logged

mainComm Dev Team
groundup
Disciple of Joe, Head Cleric
Mod Team
YaBB God
*****
Posts: 2983


Error 309: Please notify the administrator of this

WWW
Re:Large message boards and MySQL logs of slow response
« Reply #94 on: June 26, 2002, 03:23:45 AM »
Reply with quote

mediman - you just confused the hell out of me :(
Logged

http://www.fastfinancialfreedom.org - financial freedom is a myth
http://www.fastfinancialfreedom.org - financial freedom is a myth
http://www.fastfinancialfreedom.org - financial freedom is a myth
fastfinancialfreedom.org
groundup
Disciple of Joe, Head Cleric
Mod Team
YaBB God
*****
Posts: 2983


Error 309: Please notify the administrator of this

WWW
Re:Large message boards and MySQL logs of slow response
« Reply #95 on: July 14, 2002, 07:24:14 AM »
Reply with quote

can we have this moved to FAQ or somewhere, where it is more noticealbe?
Logged

http://www.fastfinancialfreedom.org - financial freedom is a myth
http://www.fastfinancialfreedom.org - financial freedom is a myth
http://www.fastfinancialfreedom.org - financial freedom is a myth
fastfinancialfreedom.org
Stud Muffin
Full Member
***
Posts: 120


Oh baby!!

WWW
Re:Large message boards and MySQL logs of slow response
« Reply #96 on: July 14, 2002, 02:04:04 PM »
Reply with quote

When using the convert php i get this?

Fatal error: Call to undefined function: mysql_get_server_info() in /files/local/home/earthdome/forum/convert.php on line 10

I'm running version  3.22.32 of MySql

I have since read that i need version 3.23.xx.
Time to hassle my host.
« Last Edit: July 14, 2002, 02:24:01 PM by Stud Muffin » Logged

Thanks to all the YaBBSE team, a great forum :)
OAP clan Forum
Shaun
Wannabe Mod Writer
Sr. Member
****
Posts: 361


YaBB SE Rules.

Re:Large message boards and MySQL logs of slow response
« Reply #97 on: July 17, 2002, 05:24:10 AM »
Reply with quote

Holy Moly!!

I just ran the scripts on my 1.4.0 board with 40000+ posts - 4000+ topics - 1488 members.


IT IS BLAZING FAST NOW!!!!!

 ;D :o
Logged

This guy uses objects like women man!
Michele
Beta Tester
YaBB God
*****
Posts: 584


I can't wait for YaBB SE 2!

Mad+Moya WWW
Re:Large message boards and MySQL logs of slow response
« Reply #98 on: July 17, 2002, 05:42:13 PM »
Reply with quote

Quote from: David on May 02, 2002, 06:42:42 AMFor Boardnation I built the optimization into a new page I added to the Admin center.  Maybe the code to optimize the db should be called each time someone visits the Admin center or a new page created that deals with db utility stuff, backing up, optimizing . . .

Just added a page to my YaPP setup too. :)
Logged

formerly Mad Moya
PfaBB - http://pfabb.lunabyte.com
Michele
Beta Tester
YaBB God
*****
Posts: 584


I can't wait for YaBB SE 2!

Mad+Moya WWW
Re:Large message boards and MySQL logs of slow response
« Reply #99 on: July 17, 2002, 06:22:21 PM »
Reply with quote

Be careful with these scripts... I'm guessing the scripts place a temporary high load on the SQL Servers because 5 minutes after I ran it, my site went down due to excess bandwidth.

I've got an email into them checking to see if that (load on SQL server) was the reason for the bandwidth, as I've used less than 10% of monthly bandwidth so far this month.

I'll let you know what they say as soon as I hear from my host.

Argh...

EDIT: I heard from my host... dang buggy CPanel software. It only showed 300MB of bandwidth used, when in actually, one of my sub-domains had used 4.5GB themselves and I exceeded the 5GB that way. Why their CPanel can't keep track of it on a timely basis, I dunno... the webalizer and analog web stats don't show my sub-domains either, so it was hard to track down what happened.

So, it was just weird karma that the Optimize bit threw me over the bandwidth for the month and closed down my site. :)

Argh... Moya

Oh, BTW, I'm back up again... had to buy more bandwidth though to make it through the month. :)
« Last Edit: July 17, 2002, 07:40:57 PM by Mad Moya » Logged

formerly Mad Moya
PfaBB - http://pfabb.lunabyte.com
Michele
Beta Tester
YaBB God
*****
Posts: 584


I can't wait for YaBB SE 2!

Mad+Moya WWW
Re:Large message boards and MySQL logs of slow response
« Reply #100 on: July 17, 2002, 08:13:53 PM »
Reply with quote

Well, I'm going back down for a bit again. :)

My host (dzones.com) decided that it was time to upgrade me to the new servers (RedHat 7.2 from 6.2) to hopefully get rid of the buglets regarding my CPanel and bandwidth display problems. I'll have a new IP and it will take a little time to fix up the domain to point to the new IP.

Any gotchas I need to look out for?

BTW, do most host sites give you a static IP like mine does?

Thanks, MM
Logged

formerly Mad Moya
PfaBB - http://pfabb.lunabyte.com
Daniel Hofverberg
YaBB God
*****
Posts: 582


WWW
Re:Large message boards and MySQL logs of slow response
« Reply #101 on: July 19, 2002, 12:21:43 AM »
Reply with quote

Quote from: Mad Moya on July 17, 2002, 08:13:53 PMBTW, do most host sites give you a static IP like mine does?
Static IP: Yes. Unique IP: No. In my experience, tje majority of web hosts have one static IP shared for all domains/subdomains on the server (name-based hosting via HTTP_HOST).
Logged
oldford
Jr. Member
**
Posts: 91


WWW
Re:Large message boards and MySQL logs of slow response
« Reply #102 on: July 26, 2002, 05:17:51 AM »
Reply with quote

Well, add another one to the "works great for me" category.  ;D

I just did this on my board and it's a very nice improvement in speed. My board was getting fairly large and really slowed down in the last few weeks. I had optimized all tables, but it still wasn't helping. After following the instructions in this post I'm VERY happy with the results. FYI, my board stats are:

Members: 1619   Posts: 51896   Topics: 7418

Thanks!!!
« Last Edit: July 26, 2002, 05:19:44 AM by oldford » Logged

Michele
Beta Tester
YaBB God
*****
Posts: 584


I can't wait for YaBB SE 2!

Mad+Moya WWW
Re:Large message boards and MySQL logs of slow response
« Reply #103 on: July 26, 2002, 05:25:31 PM »
Reply with quote

Quote from: Daniel Hofverberg on July 19, 2002, 12:21:43 AM
Quote from: Mad Moya on July 17, 2002, 08:13:53 PMBTW, do most host sites give you a static IP like mine does?
Static IP: Yes. Unique IP: No. In my experience, tje majority of web hosts have one static IP shared for all domains/subdomains on the server (name-based hosting via HTTP_HOST).


Actually, when I run a tracert to my IP address, it resolves to my domain name when it gets there... so maybe I do have a unique IP? Either that, or since I'm on a new server, maybe I'm just the only one using it yet. :)

Have fun, MM
Logged

formerly Mad Moya
PfaBB - http://pfabb.lunabyte.com
djMostly
Noobie
*
Posts: 14


I'm a llama!

Re:Large message boards and MySQL logs of slow response
« Reply #104 on: July 30, 2002, 11:14:04 PM »
Reply with quote

well, i used this query and i see no noticable speed increase.  the host i'm using is *fast* and i've made sure that it wasn't just normal lag.  anyone else not get anything out of this?  :)
Logged
Pages: 1 ... 5 6 [7] 8 9 10 Reply Ignore Print 
YaBB SE Community  |  English User Help  |  FAQ  |  Large message boards and MySQL logs of slow response « previous - next »
 


Powered by MySQL Powered by PHP YaBB SE Community | Powered by YaBB SE
© 2001-2003, YaBB SE Dev Team. All Rights Reserved.
SMF 2.1.4 © 2023, Simple Machines
Valid XHTML 1.0! Valid CSS

Page created in 0.047 seconds with 20 queries.