Welcome to Geeklog, Anonymous Wednesday, November 27 2024 @ 06:25 pm EST

Geeklog Forums

MySQL - MyISAM or INNODB for Geeklog


Status: offline

Laugh

Site Admin
Admin
Registered: 09/27/05
Posts: 1470
Location:Canada
Has anyone done any speed tests under Geeklog with the 2 storage engines?

On most of my installs I have a mix of storage engines thanks to plugin installs etc.. which is not ideal.

I am thinking of switching all of the tables over to INNODB just because eventually that is where I want to take Geeklog (data integrity with foreign keys, etc.., record locks). I thought MyISAM was supposed to be the faster of the two but doing a few quick searches on Google suggested that this is now changing.

BTW here is a quick and easy SQL statement to make a bunch of SQL statements to convert tables in your db from one storage engine to another:

Text Formatted Code

SELECT CONCAT('ALTER TABLE ',table_schema,'.',table_name,' ENGINE=InnoDB;')
FROM information_schema.tables
WHERE 1=1
    AND engine = 'MyISAM'
    AND table_schema NOT IN ('information_schema', 'mysql', 'performance_schema');
 

One of the Geeklog Core Developers.
 Quote

Status: offline

::Ben

Forum User
Full Member
Registered: 01/14/05
Posts: 1569
Location:la rochelle, France
Tell us if INNODB become the standard for Geeklog I will update my plugins.

Thanks,

Ben
I'm available to customise your themes or plugins for your Geeklog CMS
 Quote

Status: offline

Laugh

Site Admin
Admin
Registered: 09/27/05
Posts: 1470
Location:Canada
Of course. We would discuss it first before any decision is made.
One of the Geeklog Core Developers.
 Quote

Status: offline

Dirk

Site Admin
Admin
Registered: 01/12/02
Posts: 13073
Location:Stuttgart, Germany
I haven't done any performance tests. Just wanted to point out that InnoDB is actually the default engine as of MySQL 5.5 if you don't specify anything. We do specify MyISAM, though, unless you pick the InnoDB option during install.

Also, there's an option to convert the database to InnoDB in admin/database.php. It goes through the $_TABLES array, so it would also convert plugin tables. There's no option to go back to MyISAM, though.

bye, Dirk
 Quote

Status: offline

Laugh

Site Admin
Admin
Registered: 09/27/05
Posts: 1470
Location:Canada
Hmmm, I never knew about the convert option. I see the optimize tables on my installs but not Convert to InnoDB. Is this dependant on if you have the backup set up properly? (ie the path to mysqldump) I do not since it is not on the localhost.
One of the Geeklog Core Developers.
 Quote

Status: offline

Dirk

Site Admin
Admin
Registered: 01/12/02
Posts: 13073
Location:Stuttgart, Germany
Quote by: Laugh

Hmmm, I never knew about the convert option. I see the optimize tables on my installs but not Convert to InnoDB. Is this dependant on if you have the backup set up properly? (ie the path to mysqldump) I do not since it is not on the localhost.


It checks if your MySQL does actually support InnoDB (doing a SHOW STORAGE ENGINES). It works here on geeklog.net but, as I just noticed, not on my local test machine. Looking into it ...

bye, Dirk
 Quote

Status: offline

Dirk

Site Admin
Admin
Registered: 01/12/02
Posts: 13073
Location:Stuttgart, Germany
Found it - and it has to do with what I mentioned above: It's the default on MySQL 5.5 now, so the Support column reads "default" instead of "yes". Fix here.

bye, Dirk
 Quote

Status: offline

Laugh

Site Admin
Admin
Registered: 09/27/05
Posts: 1470
Location:Canada
Thanks Dirk. I added the fix to my 1.8.1 install and it works fine.

Tom
One of the Geeklog Core Developers.
 Quote

Status: offline

LWC

Forum User
Full Member
Registered: 02/19/04
Posts: 818
Where is the GUI option for converting?
 Quote

Status: offline

Laugh

Site Admin
Admin
Registered: 09/27/05
Posts: 1470
Location:Canada
It should appear in the DB Backups menu.
One of the Geeklog Core Developers.
 Quote

All times are EST. The time is now 06:25 pm.

  • Normal Topic
  • Sticky Topic
  • Locked Topic
  • New Post
  • Sticky Topic W/ New Post
  • Locked Topic W/ New Post
  •  View Anonymous Posts
  •  Able to post
  •  Filtered HTML Allowed
  •  Censored Content