|
|
|
|
|
Ralph Button (rbutton)
Noobie
Posts: 12
Just a guy that is still in love with his wife!
|
|
Re:Large message boards and MySQL logs of slow response
« Reply #20 on: April 12, 2002, 01:19:50 AM » |
|
I posted my finding on the indexes mostly to add to the information on the forum. Also as I have about 28,000 posts in 3 months on the forum I manage. I really had to consider what to do. By occupation I'm a senior dba for Oracle designing databases for large corporations so figured I have a better view of what to look for in a database than most. Also as I moved to a dedicated server, for the forum, I was given the "keys" to the server to do whatever I wanted to. Thus I could trace, turn on logging, etc to see what was happening. I've always thought the code of the forum was really good but it needed help getting to the data in a timely fashion. I only wanted to add to the already great job the developers did in creating this software package.
I also posted the memory settings I adjusted for MySql. Many will not beable to use them as I would expect your are on shared servers. BUT those were the key variables I found that affected the performance of the forum software. The dedicated server I'm running on has 1 gig of memory which allowed for me to adjust the memory settings to the level I did. Again I do NOT expect that most on their server could set them that high but those, in my view, are some of the key variables in the setting up of MySql database.
Now I can go back to fixing up the forum with new features, looks, etc. As the users are all happy campers now with the major improvement in speed. I'm not a programmer but can stumble around in the code to find what I'm looking for. I can help with databases but not much else!
|
|
|
Logged
|
|
|
|
|
|
|
|
Jan Houtsma
Noobie
Posts: 31
|
|
Re:Large message boards and MySQL logs of slow response
« Reply #25 on: April 13, 2002, 10:15:22 PM » |
|
Quote from: Ralph Button (rbutton) on April 11, 2002, 03:58:47 PMI have created the following indexes and find that I have a 7X improvment in response on the forum!!!!! Also MySQL no longer has listed 8,000 slow queries PER DAY - I'm now down to 2 queries in the slow query log.
alter table topics add key (isSticky); ...
I did not issue any of these lines above in my board which is up to date to the latest version including Jeff's bug fix download. When i look at the tables with phpMyAdmin all these keys are already there.... Maybe i do not understand the this post. Maybe someone can explain? Thanks, Jan
|
|
|
Logged
|
|
|
|
mediman
Support Team
YaBB God
Posts: 2858
|
|
Re:Large message boards and MySQL logs of slow response
« Reply #26 on: April 13, 2002, 10:35:59 PM » |
|
maybe jeff or another dev updatet the *.sql newer mysql versions add automaticaly indeces if you use CREATE TABLE (but not this one!) but look here old yabbse db table messages Keyname | Unique | Field | Action | PRIMARY | Yes | ID_MSG | Drop | ID_TOPIC | No | ID_TOPIC | Drop |
important new index in new sql is postertime Keyname | Unique | Field | Action | PRIMARY | Yes | ID_MSG | Drop | ID_TOPIC | No | ID_TOPIC | Drop | posterTime | No | posterTime | Drop |
medi
|
|
« Last Edit: April 13, 2002, 10:38:52 PM by mediman »
|
Logged
|
mainComm Dev Team
|
|
|
|
|
|