I have done a sql dump from the production server. I took the file to a test server to restore. It restored all tables quick except these history tables. Here is the start of the sql file. There are 10 of these, some have 500,000 records in them. The test server has been working on them for 24+ hours now. It is not a hardware issue. What would cause this and is there a remedy to make it quicker?
[code]SET FOREIGN_KEY_CHECKS=0;
– Table structure for sqlt_data_1_2010_06
DROP TABLE IF EXISTS sqlt_data_1_2010_06
;
CREATE TABLE sqlt_data_1_2010_06
(
tagid
int(11) default NULL,
intvalue
bigint(20) default NULL,
floatvalue
double default NULL,
stringvalue
varchar(255) default NULL,
datevalue
datetime default NULL,
dataintegrity
int(11) default NULL,
t_stamp
bigint(20) default NULL,
KEY sqlt_data_1_2010_06tagidndx
(tagid
),
KEY sqlt_data_1_2010_06t_stampndx
(t_stamp
)
) ENGINE=InnoDB DEFAULT CHARSET=latin1;
– Records of sqlt_data_1_2010_06
INSERT INTO sqlt_data_1_2010_06
VALUES (‘1’, null, null, null, null, ‘32’, ‘1276018332926’);
INSERT INTO sqlt_data_1_2010_06
VALUES (‘1’, null, null, null, null, ‘500’, ‘1276018333193’);
INSERT INTO sqlt_data_1_2010_06
VALUES (‘1’, ‘44’, null, null, null, ‘192’, ‘1276018334695’);
INSERT INTO sqlt_data_1_2010_06
VALUES (‘1’, ‘44’, null, null, null, ‘500’, ‘1276018336457’);
INSERT INTO sqlt_data_1_2010_06
VALUES (‘1’, ‘44’, null, null, null, ‘192’, ‘1276018337459’);
INSERT INTO sqlt_data_1_2010_06
VALUES (‘1’, ‘44’, null, null, null, ‘500’, ‘1276018339878’);
INSERT INTO sqlt_data_1_2010_06
VALUES (‘1’, ‘44’, null, null, null, ‘192’, ‘1276018340879’);
INSERT INTO sqlt_data_1_2010_06
VALUES (‘1’, ‘44’, null, null, null, ‘500’, ‘1276018341380’);
INSERT INTO sqlt_data_1_2010_06
VALUES (‘1’, ‘44’, null, null, null, ‘192’, ‘1276018341630’);
INSERT INTO sqlt_data_1_2010_06
VALUES (‘1’, ‘44’, null, null, null, ‘500’, ‘1276018342631’);
INSERT INTO sqlt_data_1_2010_06
VALUES (‘1’, ‘44’, null, null, null, ‘192’, ‘1276018344134’);
INSERT INTO sqlt_data_1_2010_06
VALUES (‘1’, ‘44’, null, null, null, ‘500’, ‘1276018344635’);
INSERT INTO sqlt_data_1_2010_06
VALUES (‘1’, ‘44’, null, null, null, ‘192’, ‘1276018346136’);[/code]