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
3791
January 29, 2012 07:10AM
1180
January 30, 2012 09:07AM
1165
January 30, 2012 10:24AM
1111
January 31, 2012 07:06AM
1091
January 31, 2012 02:51AM
1075
January 31, 2012 03:21AM
1142
January 31, 2012 10:20AM
1368
January 31, 2012 10:44AM
Re: Mass Import Innodb
1061
February 01, 2012 02:22AM
1187
February 01, 2012 04:33AM
1126
February 06, 2012 05:59AM
1276
February 07, 2012 10:38AM
1142
February 07, 2012 11:15AM


Sorry, you can't reply to this topic. It has been closed.
This forum is currently read only. You can not log in or make any changes. This is a temporary situation.

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.