Optimizing InnoDB Insert Queries
问题 According to slow query log, the following query (and similar queries) would take around 2s to execute occassionally: INSERT INTO incoming_gprs_data (data,type) VALUES ('3782379837891273|890128398120983891823881abcabc','GT100'); Table structure: CREATE TABLE `incoming_gprs_data` ( `id` int(200) NOT NULL AUTO_INCREMENT, `dt` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP, `data` text NOT NULL, `type` char(10) NOT NULL, `test_udp_id` int(20) NOT NULL, `parse_result` text NOT NULL, `completed`