MySQL Forums
Forum List  »  InnoDB

Re: Mass Import Innodb
Posted by: Rick James
Date: February 01, 2012 02:22AM

CREATE TABLE `oldDB`.`documentlist` (
`id_document` int(10) unsigned NOT NULL,
`name` varchar(255) DEFAULT NULL,
`longHTMLdescr` blob,
`fileData` mediumblob,
`lastupdated` datetime DEFAULT NULL,
`status` tinyint(3) unsigned DEFAULT NULL,
`code` smallint(5) unsigned DEFAULT NULL,
PRIMARY KEY (`id`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8 ROW_FORMAT=COMPRESSED;

There is no `id` in that table??
Ditto for the next table.

CREATE TABLE `newDB`.`temp_docids` (
`id_document` int(10) unsigned NOT NULL AUTO_INCREMENT,
`id_document_old` int(10) unsigned NOT NULL,
PRIMARY KEY (`id_document`) USING BTREE,
KEY `Index_id_document_old` (`id_document_old`,`id_document`),
KEY `Index_id_document_old2` (`id_document`,`id_document_old`)
) ENGINE=InnoDB AUTO_INCREMENT=1 DEFAULT CHARSET=utf8 ROW_FORMAT=COMPACT;

Get rid of Index_id_document_old2, it adds nothing other than wasted disk space.

What is the average size of the blobs?
How many rows?

Options: ReplyQuote


Subject
Views
Written By
Posted
3489
January 29, 2012 07:10AM
1055
January 30, 2012 09:07AM
1051
January 30, 2012 10:24AM
1014
January 31, 2012 07:06AM
969
January 31, 2012 02:51AM
899
January 31, 2012 03:21AM
1034
January 31, 2012 10:20AM
1262
January 31, 2012 10:44AM
Re: Mass Import Innodb
968
February 01, 2012 02:22AM
1059
February 01, 2012 04:33AM
1003
February 06, 2012 05:59AM
1144
February 07, 2012 10:38AM
1005
February 07, 2012 11:15AM


Sorry, you can't reply to this topic. It has been closed.

Content reproduced on this site is the property of the respective copyright holders. It is not reviewed in advance by Oracle and does not necessarily represent the opinion of Oracle or any other party.