AM
Size: a a a
AM
AM
AM
AM
EK
CREATE TABLE `rtg_vendor_rate_compiled` (
`id` int(11) unsigned NOT NULL AUTO_INCREMENT,
`ts` timestamp NOT NULL DEFAULT current_timestamp() ON UPDATE current_timestamp(),
`vendor_product_id` int(11) unsigned NOT NULL,
`dial_code` varchar(40) NOT NULL,
`compiled_rate_list` blob DEFAULT NULL,
PRIMARY KEY (`id`),
UNIQUE KEY `uk_rtg_vendor_rate_compiled_product_id_dialcode` (`vendor_product_id`,`dial_code`),
KEY `fk_rtg_vendor_rate_compiled_vendor_product_idx` (`vendor_product_id`),
KEY `idx_rtg_vendor_rate_compiled_vendor_product_id_dial_code` (`vendor_product_id`,`dial_code`),
CONSTRAINT `fk_rtg_vendor_rate_compiled_vendor_product` FOREIGN KEY (`vendor_product_id`) REFERENCES `rtg_vendor_product` (`vendor_product_id`) ON DELETE NO ACTION ON UPDATE NO ACTION
) ENGINE=InnoDB AUTO_INCREMENT=225446086 DEFAULT CHARSET=utf8
MariaDB [rtu]> explain select id, compiled_rate_list from rtg_vendor_rate_compiled force index(idx_rtg_vendor_rate_compiled_vendor_product_id_dial_code) where vendor_product_id = 15671 and dial_code = 213796969\G
*************************** 1. row ***************************
id: 1
select_type: SIMPLE
table: rtg_vendor_rate_compiled
type: ref
possible_keys: idx_rtg_vendor_rate_compiled_vendor_product_id_dial_code
key: idx_rtg_vendor_rate_compiled_vendor_product_id_dial_code
key_len: 4
ref: const
rows: 5301921
Extra: Using index condition
1 row in set (0.000 sec)
S
CREATE TABLE `rtg_vendor_rate_compiled` (
`id` int(11) unsigned NOT NULL AUTO_INCREMENT,
`ts` timestamp NOT NULL DEFAULT current_timestamp() ON UPDATE current_timestamp(),
`vendor_product_id` int(11) unsigned NOT NULL,
`dial_code` varchar(40) NOT NULL,
`compiled_rate_list` blob DEFAULT NULL,
PRIMARY KEY (`id`),
UNIQUE KEY `uk_rtg_vendor_rate_compiled_product_id_dialcode` (`vendor_product_id`,`dial_code`),
KEY `fk_rtg_vendor_rate_compiled_vendor_product_idx` (`vendor_product_id`),
KEY `idx_rtg_vendor_rate_compiled_vendor_product_id_dial_code` (`vendor_product_id`,`dial_code`),
CONSTRAINT `fk_rtg_vendor_rate_compiled_vendor_product` FOREIGN KEY (`vendor_product_id`) REFERENCES `rtg_vendor_product` (`vendor_product_id`) ON DELETE NO ACTION ON UPDATE NO ACTION
) ENGINE=InnoDB AUTO_INCREMENT=225446086 DEFAULT CHARSET=utf8
MariaDB [rtu]> explain select id, compiled_rate_list from rtg_vendor_rate_compiled force index(idx_rtg_vendor_rate_compiled_vendor_product_id_dial_code) where vendor_product_id = 15671 and dial_code = 213796969\G
*************************** 1. row ***************************
id: 1
select_type: SIMPLE
table: rtg_vendor_rate_compiled
type: ref
possible_keys: idx_rtg_vendor_rate_compiled_vendor_product_id_dial_code
key: idx_rtg_vendor_rate_compiled_vendor_product_id_dial_code
key_len: 4
ref: const
rows: 5301921
Extra: Using index condition
1 row in set (0.000 sec)
S
CREATE TABLE `rtg_vendor_rate_compiled` (
`id` int(11) unsigned NOT NULL AUTO_INCREMENT,
`ts` timestamp NOT NULL DEFAULT current_timestamp() ON UPDATE current_timestamp(),
`vendor_product_id` int(11) unsigned NOT NULL,
`dial_code` varchar(40) NOT NULL,
`compiled_rate_list` blob DEFAULT NULL,
PRIMARY KEY (`id`),
UNIQUE KEY `uk_rtg_vendor_rate_compiled_product_id_dialcode` (`vendor_product_id`,`dial_code`),
KEY `fk_rtg_vendor_rate_compiled_vendor_product_idx` (`vendor_product_id`),
KEY `idx_rtg_vendor_rate_compiled_vendor_product_id_dial_code` (`vendor_product_id`,`dial_code`),
CONSTRAINT `fk_rtg_vendor_rate_compiled_vendor_product` FOREIGN KEY (`vendor_product_id`) REFERENCES `rtg_vendor_product` (`vendor_product_id`) ON DELETE NO ACTION ON UPDATE NO ACTION
) ENGINE=InnoDB AUTO_INCREMENT=225446086 DEFAULT CHARSET=utf8
MariaDB [rtu]> explain select id, compiled_rate_list from rtg_vendor_rate_compiled force index(idx_rtg_vendor_rate_compiled_vendor_product_id_dial_code) where vendor_product_id = 15671 and dial_code = 213796969\G
*************************** 1. row ***************************
id: 1
select_type: SIMPLE
table: rtg_vendor_rate_compiled
type: ref
possible_keys: idx_rtg_vendor_rate_compiled_vendor_product_id_dial_code
key: idx_rtg_vendor_rate_compiled_vendor_product_id_dial_code
key_len: 4
ref: const
rows: 5301921
Extra: Using index condition
1 row in set (0.000 sec)
EK
EK
G
EK
G
ІК
ІК
НА
IZ
innodb_buffer_pool_sizeпрактически не помогает при записи
ІК
IZ
НА