Welcome, Guest. Please Login or Register.
November 15, 2024, 12:03:26 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  |  English Help  |  optimize database « previous next »
Pages: 1 2 [3] Reply Ignore Print
Author Topic: optimize database  (Read 1153 times)
Dr_Michael
Sr. Member
****
Posts: 317


Hellenic web

WWW
Re:optimize database
« Reply #30 on: March 12, 2003, 12:51:00 PM »
Reply with quote

Quote from: Egg on March 12, 2003, 11:51:55 AM
went into phpMyAdmin and decided I had to start fiddling (ugh!) so i repaired and optimised each table on its own, one by one.

Is there any difference if you optimise all the tables by once? I mean all together and not one by one.
Logged

halebopp
Noobie
*
Posts: 21


It's better to burn out that to fade away

Re:optimize database
« Reply #31 on: March 12, 2003, 02:45:32 PM »
Reply with quote

Quote from: Dr_Michael on March 12, 2003, 12:51:00 PM
Is there any difference if you optimise all the tables by once? I mean all together and not one by one.

There shouldn't be any defference.
@egg: Ich you do a dump using phpMyAdmin, you can easily transfer your data anywhere else. Just copy the source code, too, and you're done ;)
If your MySQL dump is quite big, i.e. over 100MB or so, you might get problems with the php script execution time, depending on the server spped. In this case, you should ask your hoster to make a dump for you.
Logged
Overseer
Sr. Member
****
Posts: 455


Re:optimize database
« Reply #32 on: March 12, 2003, 03:19:44 PM »
Reply with quote

i';ve screwed my dbase before optimizing while its live... lol

be careful.. i did it lots of times before the day it got broke
Logged

I learned that from the G's, a G is an Overseer, the Overseer sees.
More than you do 'cause he gets experienced - Snoop on Daz's OG

Supreme exalted, universal leader, Descendent of the kings and queens, the Overseer
The overlord, cream of the crop, creme de la creme - Gang Starr  Royalty
Overseer
Sr. Member
****
Posts: 455


Re:optimize database
« Reply #33 on: March 12, 2003, 03:20:14 PM »
Reply with quote

ohh yeah and my dbase is now around 210 meg total
Logged

I learned that from the G's, a G is an Overseer, the Overseer sees.
More than you do 'cause he gets experienced - Snoop on Daz's OG

Supreme exalted, universal leader, Descendent of the kings and queens, the Overseer
The overlord, cream of the crop, creme de la creme - Gang Starr  Royalty
halebopp
Noobie
*
Posts: 21


It's better to burn out that to fade away

Re:optimize database
« Reply #34 on: March 12, 2003, 03:37:56 PM »
Reply with quote

Quote from: Overseer on March 12, 2003, 03:19:44 PM
i';ve screwed my dbase before optimizing while its live... lol
Don't get your point.. ??? Please explain that...

Quote
be careful.. i did it lots of times before the day it got broke
Update your MySQL ;) Older versions had problems optimizing large tables, but the current versions seem to work fine.
Logged
Overseer
Sr. Member
****
Posts: 455


Re:optimize database
« Reply #35 on: March 12, 2003, 03:45:31 PM »
Reply with quote

live = board was open and being used...


mysql version is out of my control. the current version running there is 3.23.54 but that means nothing to me.
Logged

I learned that from the G's, a G is an Overseer, the Overseer sees.
More than you do 'cause he gets experienced - Snoop on Daz's OG

Supreme exalted, universal leader, Descendent of the kings and queens, the Overseer
The overlord, cream of the crop, creme de la creme - Gang Starr  Royalty
mediman
Support Team
YaBB God
*****
Posts: 2858


WWW
Re:optimize database
« Reply #36 on: March 12, 2003, 03:54:22 PM »
Reply with quote

Quote from: Egg on March 12, 2003, 11:51:55 AM
I did the disable log clicks about 5 days ago, and yesterday members were complaing of 20+ second load times as displayed on page.

I did the clean active log, repair tables, recount all boards, empty forum log, and then optimize DB, all from the admin centre of the board. no difference. 8 hours later still getting long load times.

went into phpMyAdmin and decided I had to start fiddling (ugh!) so i repaired and optimised each table on its own, one by one.

my DB went from 38.8MB to 38.7MB in size

now getting load times of 0.2 or less.

I will be doing the phpMyAdmin optimise and repair once a day ;)

I dont ahve shell access as yet....thats my next job, to upgrade to dedicated server and full admin access...but I ave to be sure they wont lose any data from the DB as I am unsure as to the integrity of my DB backups.....

bad idea! there are probs with phpmyadmins repairfunction! best thing you can do is to remove click log function!

mediman
Logged

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


WWW
Re:optimize database
« Reply #37 on: March 12, 2003, 03:58:05 PM »
Reply with quote

Quote from: Overseer on March 12, 2003, 03:19:44 PM
i';ve screwed my dbase before optimizing while its live... lol

BS! the mysql optimize function donĀ“t need to lock the tables, you can optimize during using the db without any probs! we are not such idiots to code optimize function without checking this first!

but, there are probs with optimize on large tables! but this is a mysql prob, not a prob of mine or manjus code in admincenter!

mediman
« Last Edit: March 13, 2003, 02:47:35 PM by mediman » Logged

mainComm Dev Team
Dr_Michael
Sr. Member
****
Posts: 317


Hellenic web

WWW
Re:optimize database
« Reply #38 on: April 07, 2003, 08:13:00 AM »
Reply with quote

How often should I optimize my database? Is there any risk?
Logged

[Unknown]
Global Moderator
YaBB God
*****
Posts: 7830


ICQ - 179721867unknownbrackets@hotmail.com WWW
Re:optimize database
« Reply #39 on: April 07, 2003, 08:19:18 AM »
Reply with quote

Quote from: Dr_Michael on April 07, 2003, 08:13:00 AM
How often should I optimize my database? Is there any risk?

There have been some worries about doing it on very large databases.

My understanding is that these worries are gone with MySQL 4.x.  If your server has the latest version of MySQL, I would recommend doing it monthly.

Otherwise, it can cause problems on very large databases. (in 3.x, reportedly...)  This is a bug in MySQL, apparently, and definitely nothing wrong in mediman and manju's fine work....

-[Unknown]
Logged
Dr_Michael
Sr. Member
****
Posts: 317


Hellenic web

WWW
Re:optimize database
« Reply #40 on: April 07, 2003, 08:24:12 AM »
Reply with quote

Quote from: [Unknown] on April 07, 2003, 08:19:18 AM
There have been some worries about doing it on very large databases.

My understanding is that these worries are gone with MySQL 4.x.  If your server has the latest version of MySQL, I would recommend doing it monthly.

Otherwise, it can cause problems on very large databases. (in 3.x, reportedly...)  This is a bug in MySQL, apparently, and definitely nothing wrong in mediman and manju's fine work....

-[Unknown]


MySQL 4.0.12 is it fine?
Database is about 24MB. So you believe that a monthly optimise is ok?
Logged

David
Destroyer Dave
Global Moderator
YaBB God
*****
Posts: 5761


I'm not a llama!

WWW
Re:optimize database
« Reply #41 on: April 07, 2003, 11:18:07 PM »
Reply with quote

Quote from: Dr_Michael on April 07, 2003, 08:24:12 AM
Quote from: [Unknown] on April 07, 2003, 08:19:18 AM
There have been some worries about doing it on very large databases.

My understanding is that these worries are gone with MySQL 4.x.  If your server has the latest version of MySQL, I would recommend doing it monthly.

Otherwise, it can cause problems on very large databases. (in 3.x, reportedly...)  This is a bug in MySQL, apparently, and definitely nothing wrong in mediman and manju's fine work....

-[Unknown]


MySQL 4.0.12 is it fine?
Database is about 24MB. So you believe that a monthly optimise is ok?

I repair, anaylize, and then optimize my database nightly.
Logged

Egg
Full Member
***
Posts: 139


I'm a llama!

WWW
Re:optimize database
« Reply #42 on: April 08, 2003, 06:03:07 AM »
Reply with quote

my database is now at 43MB

if I dont do it nightly the board slows up considerably. dont know if its connected.
Logged
David
Destroyer Dave
Global Moderator
YaBB God
*****
Posts: 5761


I'm not a llama!

WWW
Re:optimize database
« Reply #43 on: April 08, 2003, 06:05:59 AM »
Reply with quote

Quote from: Egg on April 08, 2003, 06:03:07 AM
if I dont do it nightly the board slows up considerably
That makes it sound connected. ;)
Logged

Derek
Jr. Member
**
Posts: 65


I'm a llama!

Re:optimize database
« Reply #44 on: April 13, 2003, 04:42:47 PM »
Reply with quote

Just a note: my server people disabled my clicklog table a few months ago and phoned my house telling me that it was causing all sorts of problems with all the databases. Keeping 90 connections to the db open at all times, etc. So I edited the code whilst waiting on hold, and I just had to tell him that I fixed it, the problems would be solved, etc.

I don't use it now, because it's useless to me, and it's just one more insertion every time a page is loaded that I don't need.
Logged
Pages: 1 2 [3] Reply Ignore Print 
YaBB SE Community  |  English User Help  |  English Help  |  optimize database « 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.078 seconds with 21 queries.