Query time 0.07347
JSON explain
{
"query_block": {
"select_id": 1,
"cost_info": {
"query_cost": "3993.14"
},
"ordering_operation": {
"using_filesort": true,
"grouping_operation": {
"using_temporary_table": true,
"using_filesort": false,
"nested_loop": [
{
"table": {
"table_name": "companies",
"access_type": "system",
"possible_keys": [
"PRIMARY",
"status"
],
"rows_examined_per_scan": 1,
"rows_produced_per_join": 1,
"filtered": "100.00",
"cost_info": {
"read_cost": "0.00",
"eval_cost": "0.10",
"prefix_cost": "0.00",
"data_read_per_join": "5K"
},
"used_columns": [
"company_id",
"status",
"company"
]
}
},
{
"table": {
"table_name": "shared_descr",
"access_type": "system",
"possible_keys": [
"PRIMARY",
"product_id",
"company_id"
],
"rows_examined_per_scan": 0,
"rows_produced_per_join": 1,
"filtered": "0.00",
"const_row_not_found": true,
"cost_info": {
"read_cost": "0.00",
"eval_cost": "0.10",
"prefix_cost": "0.00",
"data_read_per_join": "3K"
},
"used_columns": [
"product_id",
"lang_code",
"company_id",
"product"
]
}
},
{
"table": {
"table_name": "cscart_categories",
"access_type": "const",
"possible_keys": [
"PRIMARY",
"c_status",
"p_category_id",
"storefront_id"
],
"key": "PRIMARY",
"used_key_parts": [
"category_id"
],
"key_length": "3",
"ref": [
"const"
],
"rows_examined_per_scan": 1,
"rows_produced_per_join": 1,
"filtered": "100.00",
"cost_info": {
"read_cost": "0.00",
"eval_cost": "0.10",
"prefix_cost": "0.00",
"data_read_per_join": "4K"
},
"used_columns": [
"category_id",
"storefront_id",
"usergroup_ids",
"status"
]
}
},
{
"table": {
"table_name": "products_categories",
"access_type": "ref",
"possible_keys": [
"PRIMARY",
"pt"
],
"key": "PRIMARY",
"used_key_parts": [
"category_id"
],
"key_length": "3",
"ref": [
"const"
],
"rows_examined_per_scan": 15974,
"rows_produced_per_join": 15974,
"filtered": "100.00",
"using_index": true,
"cost_info": {
"read_cost": "9.78",
"eval_cost": "1597.40",
"prefix_cost": "1607.18",
"data_read_per_join": "249K"
},
"used_columns": [
"product_id",
"category_id"
]
}
},
{
"table": {
"table_name": "products",
"access_type": "eq_ref",
"possible_keys": [
"PRIMARY",
"age_verification",
"status",
"idx_parent_product_id",
"usergroup_ids",
"timestamp",
"company_id",
"updated_timestamp"
],
"key": "PRIMARY",
"used_key_parts": [
"product_id"
],
"key_length": "3",
"ref": [
"unicomps.products_categories.product_id"
],
"rows_examined_per_scan": 1,
"rows_produced_per_join": 1433,
"filtered": "8.98",
"cost_info": {
"read_cost": "0.00",
"eval_cost": "143.38",
"prefix_cost": "3204.58",
"data_read_per_join": "9M"
},
"used_columns": [
"product_id",
"product_type",
"status",
"company_id",
"usergroup_ids",
"parent_product_id"
],
"attached_condition": "((`unicomps`.`products`.`company_id` = '1') and (`unicomps`.`products`.`parent_product_id` = 0) and ((`unicomps`.`products`.`usergroup_ids` = '') or (0 <> find_in_set(0,`unicomps`.`products`.`usergroup_ids`)) or (0 <> find_in_set(1,`unicomps`.`products`.`usergroup_ids`))) and (`unicomps`.`products`.`status` = 'A'))"
}
},
{
"table": {
"table_name": "popularity",
"access_type": "eq_ref",
"possible_keys": [
"PRIMARY",
"total"
],
"key": "PRIMARY",
"used_key_parts": [
"product_id"
],
"key_length": "3",
"ref": [
"unicomps.products_categories.product_id"
],
"rows_examined_per_scan": 1,
"rows_produced_per_join": 1433,
"filtered": "100.00",
"cost_info": {
"read_cost": "0.00",
"eval_cost": "143.38",
"prefix_cost": "3347.96",
"data_read_per_join": "44K"
},
"used_columns": [
"product_id",
"total"
]
}
},
{
"table": {
"table_name": "descr1",
"access_type": "eq_ref",
"possible_keys": [
"PRIMARY",
"product_id"
],
"key": "PRIMARY",
"used_key_parts": [
"product_id",
"lang_code"
],
"key_length": "9",
"ref": [
"unicomps.products_categories.product_id",
"const"
],
"rows_examined_per_scan": 1,
"rows_produced_per_join": 1433,
"filtered": "100.00",
"cost_info": {
"read_cost": "0.00",
"eval_cost": "143.38",
"prefix_cost": "3491.33",
"data_read_per_join": "6M"
},
"used_columns": [
"product_id",
"lang_code",
"product"
]
}
},
{
"table": {
"table_name": "prices",
"access_type": "ref",
"possible_keys": [
"usergroup",
"product_id",
"lower_limit",
"usergroup_id"
],
"key": "usergroup",
"used_key_parts": [
"product_id"
],
"key_length": "3",
"ref": [
"unicomps.products_categories.product_id"
],
"rows_examined_per_scan": 1,
"rows_produced_per_join": 358,
"filtered": "25.00",
"using_index": true,
"cost_info": {
"read_cost": "358.44",
"eval_cost": "35.84",
"prefix_cost": "3993.14",
"data_read_per_join": "11K"
},
"used_columns": [
"product_id",
"lower_limit",
"usergroup_id"
],
"attached_condition": "((`unicomps`.`prices`.`lower_limit` = 1) and (`unicomps`.`prices`.`usergroup_id` in (0,0,1)))"
}
}
]
}
}
}
}
Result
| product_id |
product |
company_name |
product_type |
parent_product_id |
| 238530 |
Тонер-картридж ELP для Xerox Phaser 6500, WC6505 (106R01603) yellow 2.5K ( Imaging) (CT-XE-PH6500Y) |
unicomps |
P |
0 |
| 255937 |
Картридж TRENDART лазерный, желтый (7K) для HP LaserJet CP3525/CM3530HP LaserJet Enterprise 500 M551/500 MFP M575 (TrA_CE252A_CE402A) |
unicomps |
P |
0 |
| 261905 |
Тонер-картридж HI-BLACK 006R01693 для Xerox DocuCentre SC2020, Bk, 9K (4100603200) |
unicomps |
P |
0 |
| 285197 |
Картридж CANON лазерный 067BK черный (1400стр.) для LBP631/633/MF651/655/657 (5102C002) |
unicomps |
P |
0 |
| 291797 |
Картридж КАТЮША черный для цветных устройств Sindoh P300dn/C300, ресурс 6 000 отпечатков (P300T6KK-W) |
unicomps |
P |
0 |
| 295199 |
Тонер-картридж OKI желтый (7,3К) MC853/873/883 (45862837) |
unicomps |
P |
0 |
| 321986 |
Tонер-картридж OKI черный (7K) C650 (09006130) |
unicomps |
P |
0 |
| 175507 |
Картридж BION CF362X Тонер для HP Color LaserJet Enterprise M553n/553X/553dnHP Color LaserJet Enterprise M552dn (9500 стр.) Желтый (BCR-CF362X) |
unicomps |
P |
0 |
| 183313 |
Тонер-картридж ELP Canon iR Adv C250i/C255i/C350i/C351i/C355i (C-EXV47Y) Yellow, 21.5K (CT-CAN-C-EXV47Y) |
unicomps |
P |
0 |
| 183486 |
Тонер-картридж SHARP MXB427P/MXB427 (20k) (MXB42T) |
unicomps |
P |
0 |
| 210887 |
Картридж EASYPRINT 407546/SPC250E для Ricoh SP C250DN/C250SF/C260DN/C261DNw/C261SFNw (1600 стр.) желтый, с чипом (LR-SPC250Y) |
unicomps |
P |
0 |
| 219447 |
Тонер-картридж CANON C-EXV 58 Toner Yellow (3766C002) |
unicomps |
P |
0 |
| 230988 |
Картридж T2 лазерный, 055H M/3018C002 для Canon i-SENSYS LBP663/664/MF742/744 (6000 стр.) Пурпурный, с чипом (TC-C055H M) |
unicomps |
P |
0 |
| 238401 |
Тонер-картридж SHARP голубой уменьшенной емкости (BPGT30CB) |
unicomps |
P |
0 |
| 258620 |
Тонер-картридж CET (CPP) 842135 для RICOH MP2014/2014D , 390г, 12000 стр., 6606 (CET6606) |
unicomps |
P |
0 |
| 285162 |
Картридж KYOCERA лазерный TK-5370M пурпурный (5000стр.) для PA3500cx/MA3500cix/MA3500cifx (1T02YJBNL0) |
unicomps |
P |
0 |
| 295645 |
Kартридж TRENDART черный (1,2К) для HP LaserJet Pro CP1025/CP1025NW/M153/M176/M177 Canon LBP 7010C/7018C Universal (TrA_CE310ACF350A-729) |
unicomps |
P |
0 |
| 308206 |
Картридж CACTUS лазерный 069 пурпурный (1900стр.) для Canon i-SENSYS MF752Cdw MF752/MF754Cdw MF754 (CS-C069M) |
unicomps |
P |
0 |
| 308208 |
Картридж CACTUS лазерный 069H пурпурный (5500стр.) для Canon i-SENSYS MF752Cdw MF752/MF754Cdw MF754 (CS-C069HM) |
unicomps |
P |
0 |
| 308216 |
Картридж CACTUS лазерный 067HC голубой (2350стр.) для Canon i-SENSYS LBP631Cw/LBP633Cdw/MF651Cw/MF655Cdw/MF657Cdw (CS-C067HC) |
unicomps |
P |
0 |
| 308235 |
Картридж CACTUS лазерный W1510A черный (3050стр.) для HP LJ Pro 4003dw/MFP 4103dw/4103fdw (CS-W1510A) |
unicomps |
P |
0 |
| 308270 |
Картридж G&G лазерный 069H Yellow желтый (5500стр.) для Canon I_sensys LBP673CDW/MF754CDW/MF752CDW(EUR)/imageCLASS MF756Cx(AP)/LBP674CDW/MF753CDW/MF751CDW(US) (GG-C069HY) |
unicomps |
P |
0 |
| 308296 |
Картридж G&G лазерный TN-1050/1075/1060/1070 черный (1000стр.) для Brother HL-1110/1112A/1210/1212;DCP-1510/1512/1610/1612;MFC-1810/1815/1910 (GG-TN1075) |
unicomps |
P |
0 |
| 311250 |
Картридж CACTUS лазерный TK-8118BK ASIA CN черный (12000стр.) для Kyocera Mita Ecosys M8124cidn/M8130cidn (CS-TK8118BK) |
unicomps |
P |
0 |