Query time 0.07697
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 |
| 308250 |
Картридж CACTUS лазерный Q2612A/Canon FX10/703 черный (8000стр.) (CS-Q2612X-MPSXL) |
unicomps |
P |
0 |
| 308253 |
Картридж CACTUS лазерный CF259X черный (20000стр.) для HP LJ M304/M404/MFP M428 (CSP-CF259X-MPSXL) |
unicomps |
P |
0 |
| 308271 |
Картридж G&G лазерный 069H Magenta пурпурный (5500стр.) для Canon I_sensys LBP673CDW/MF754CDW/MF752CDW(EUR)/imageCLASS MF756Cx(AP)/LBP674CDW/MF753CDW/MF751CDW(US) (GG-C069HM) |
unicomps |
P |
0 |
| 154479 |
Картридж NVPRINT NV-TK-580 Yellow для Kyocera Ecosys P6021/ P6021cdn/ FS C5150/ C5150DN (2800k) (NV-TK580Y) |
unicomps |
P |
0 |
| 155225 |
Картридж NVPRINT NV-CE741A Cyan для HP Color LaserJet CP5225/ CP5225n/ CP5225dn (7300k) (NV-CE741AC) |
unicomps |
P |
0 |
| 162940 |
Картридж HI-BLACK TK-5150 M для Kyocera ECOSYS M6535cidn /P6035cdn , M, 10K (98960700216) |
unicomps |
P |
0 |
| 183314 |
Тонер-картридж ELP Canon iR Adv C250i/C255i/C350i/C351i/C355i (C-EXV47M) Magenta, 21.5K (CT-CAN-C-EXV47M) |
unicomps |
P |
0 |
| 183803 |
Картридж HP лазерный желтый (12000 стр) (белая корпоративная коробка) (C9732AC) |
unicomps |
P |
0 |
| 230989 |
Картридж T2 Cartridge 055H C/3019C002 для Canon i-SENSYS LBP663/664/MF742/744 (6000 стр.) Голубой, с чипом (TC-C055H C) |
unicomps |
P |
0 |
| 238557 |
Тонер-картридж ELP для Xerox VERSALink C7020/C7025/C7030 (106R03748) cyan 16.5K ( Imaging) (CT-XE-VLC7020C) |
unicomps |
P |
0 |
| 242642 |
Картридж CACTUS лазерный 408184 черный (7000стр.) для Ricoh SP C360DNw/SP C360SNw/SP C360SF (CS-SPC360EBK) |
unicomps |
P |
0 |
| 251715 |
Картридж CACTUS лазерный 106R03767 пурпурный (10100стр.) для Xerox VersaLink C7000 (CS-VLC7000M) |
unicomps |
P |
0 |
| 311257 |
Картридж BION лазерный TL-5120X для Pantum BP5100DN/BP5100DW/BM5100ADN/BM5100ADW/BM5100FDN/BM5100FDW/BM5110AD/BM5130FDW черный, (15000стр.) (BCR-TL-5120X) |
unicomps |
P |
0 |
| 317943 |
Картридж G&G лазерный W1420A черный (950стр.) для HP LJ M110w/MFP M140w (GG-W1420A) |
unicomps |
P |
0 |
| 30150 |
Тонер-картридж HP (двойная упаковка) для CLJ CP1215/CP1515/CP1518 (2 200 стр) (CB540AD) |
unicomps |
P |
0 |
| 163242 |
Картридж EASYPRINT CC533A/413A/383A LH-533 U для HP CLJ CP2025/M451/M476/LBP7200Cdn 718M (2900 стр.) пурпурный, с чипом (LH-533U) |
unicomps |
P |
0 |
| 163892 |
Картридж T2 CN046AE/№951XL №951XL для HP Officejet Pro 8100/8600/8600 Plus/251dw/276dw, голубой, 1500 стр. (IC-H046) |
unicomps |
P |
0 |
| 170742 |
Тонер-картридж BION TK-6115 для Kyocera ECOSYS M4132idn/M4125idn (15000 стр.) Черный (BCR-TK-6115) |
unicomps |
P |
0 |
| 175508 |
Картридж BION лазерный, CF361X Тонер для HP Color LaserJet Enterprise M553n/553X/553dn (9500 стр.) Голубой (BCR-CF361X) |
unicomps |
P |
0 |
| 182500 |
Тонер-картридж KYOCERA TK-8735K для TASKalfa 7052ci/8052ci/7353ci/8353ci черный (70000 стр.) (1T02XN0NL0) |
unicomps |
P |
0 |
| 183620 |
Тонер-картридж ELP для Kyocera P2040DN/DW TK-1160 7.2K Imaging (CT-KYO-TK-1160) |
unicomps |
P |
0 |
| 183941 |
Картридж EASYPRINT лазерный, MLT-D103L для Samsung ML-2950ND/2955ND/SCX-4727FD (2500 стр.) с чипом (LS-103L) |
unicomps |
P |
0 |
| 204777 |
Картридж HP лазерный 658X желтый (28000стр.) для CLJ Enterprise M751 (техн.упак) (W2002XC) |
unicomps |
P |
0 |
| 225113 |
Картридж HI-BLACK W2211X для HP CLJ Pro M255dw/MFP M282nw/M283fdn, C, 2,45K, без чипа (98927855) |
unicomps |
P |
0 |