|
|||||||||||
|
Re: InnoDB as storage engine for sa_bayes
From: Pawe³ Têcza <ptecza(at)uw.edu.pl>
Date: Thu Aug 30 2007 - 03:47:52 EDT
>> -rw-rw---- 1 mysql mysql 1010M Aug 28 08:25 ibdata1 Hello Alex, At first, thanks a lot for your reply and interesting comments! :) > I quoted the innodb data files. Since you have defined I can quote innodb_data_file_path option to test it, of course, but I affraid that it's necessary. The MySQL doc [1] says: "Note: InnoDB always needs the shared tablespace because it puts its internal data dictionary and undo logs there. The .ibd files are not sufficient for InnoDB to operate." > Perhaps you played around and first imported the data without I remember that before injecting the MySQL dump I removed all ib* files and created initial InnoDB tablespace and logs running mysqld from command line:
root@mysql:/var/lib/mysql# /usr/sbin/mysqld
InnoDB: The first specified data file ./ibdata1 did not exist:
InnoDB: a new database to be created!
InnoDB: Setting log file ./ib_logfile1 size to 10 MB InnoDB: Database physically writes the file full: wait... InnoDB: Doublewrite buffer not found: creating new InnoDB: Doublewrite buffer created InnoDB: Creating foreign key constraint system tables InnoDB: Foreign key constraint system tables created070827 15:25:02 InnoDB: Started; log sequence number 0 0 070827 15:25:02 [Note] /usr/sbin/mysqld: ready for connections. Version: '5.0.38-Ubuntu_0ubuntu1-log' socket: '/var/run/mysqld/mysqld.sock' port: 3306 Ubuntu 7.04 distribution While injecting I could see how the ibdata1 file was growing from 10MB to 1010MB. > Try the following: Dump all databases which have innodb tables and Please look at below. What have I won in the bet? ;) > It is not neccessary to dump/reload the data for changing the database Yes, I know it and even I was trying to convert the MyISAM tables in that way, but it was terrible slowly, so I chose a method with injecting MySQL dump. Unfortunately it wasn't faster ;)
root@mysql:/var/lib/mysql# date && mysql sa_bayes -u root -p < ~/sa_bayes_innodb.sql && date
Mon Aug 27 15:28:40 CEST 2007
You can see above that it took more then 6 hours for ~560MB dump file! My best regards, Pawel [1] http://dev.mysql.com/doc/refman/5.0/en/multiple-tablespaces.html Received on Thu Aug 30 03:47:21 2007 This archive was generated by hypermail 2.1.8 : Fri Oct 26 2007 - 03:18:33 EDT |
||||||||||
|
|||||||||||