Query time 0.08313
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 |
| 242663 |
Картридж CACTUS лазерный 106R03396 черный (31000стр.) для Xerox VersaLink B-7025/7030/7045 (CS-B7025XL) |
unicomps |
P |
0 |
| 255961 |
Картридж TRENDART для Samsung ML-1660/65/67/70/75/77/1860/65/67 1500 стр. (TrA_MLT-D104S) |
unicomps |
P |
0 |
| 255970 |
Картридж TRENDART голубой (7K) для HP LaserJet CP3525/CM3530HP LaserJet Enterprise 500 M551/500 MFP M575 (TrA_CE251A_CE401A) |
unicomps |
P |
0 |
| 260992 |
Тонер-картридж EASYPRINT CF259A Canon 057 для HP LaserJet Pro M304/M404/M428/LBP226/MF443 (3100 стр.) черный, БЕЗ ЧИПА (LH-CF259A U_NC) |
unicomps |
P |
0 |
| 261904 |
Тонер-картридж HI-BLACK 006R01694 для Xerox DocuCentre SC2020, C, 3K (4100603201) |
unicomps |
P |
0 |
| 285179 |
Картридж G&G лазерный W2012A(659A) желтый (13000стр.) для HP CLJ Ent M856/MFP M776 (GG-W2012A) |
unicomps |
P |
0 |
| 285196 |
Картридж CANON лазерный 067M пурпурный (1250стр.) для LBP631/633/MF651/655/657 (5100C002) |
unicomps |
P |
0 |
| 295915 |
Тонер-картридж TRENDART (3K) для Xerox B205/B210/B215 (TrA_106R04348) |
unicomps |
P |
0 |
| 308293 |
Картридж G&G лазерный TN-217Y желтый (2300стр.) для Brother HL-L3210CW/L3230CDN/L3230CDW/L3270CDW;DCP-L3550CDW/L3551CDW;MFC-L3750CDW/L3770CDW (GG-TN217Y) |
unicomps |
P |
0 |
| 308343 |
Картридж KYOCERA лазерный TK-3430 черный (25000стр.) для ECOSYS PA5500x/ ECOSYS MA5500ifx (1T0C0W0NL0) |
unicomps |
P |
0 |
| 315813 |
Картридж BION для HP LaserJet Pro 4003dw/4003dn, MFP 4103fdw/4103fdn, с чипом, черный, 9700 стр. (BCR-W1510X) |
unicomps |
P |
0 |
| 141322 |
Картридж NVPRINT CF540X для HP CLJ Pro M254nw/dw/M280nw/M281fdn/M281fdw, Bk, 3,2K (NV-CF540XBk) |
unicomps |
P |
0 |
| 163581 |
Картридж BION CF287A для Hp LaserJet Enterprise MFP M527(f/dn), M506(dn/n/x), M501dn, MFP Flow M527z (9000 стр.) Черный (BCR-CF287A) |
unicomps |
P |
0 |
| 210845 |
Картридж HI-BLACK 106R03623 для Xerox Phaser 3330/WC 3335/3345, 15000K (9911181302) |
unicomps |
P |
0 |
| 223011 |
Картридж CACTUS лазерный 106R03534 голубой (8000стр.) для Xerox VersaLink C400DN/C405DN/C400/405/C400N/C405N/ (CS-VLC400CRU) |
unicomps |
P |
0 |
| 225199 |
Картридж BION Q2612/C703/C303-X 3K для HP LaserJet 1010/1012/1015/3015/3020/3030/1319/3050/3052/3055; Canon LBP 2900/3000 (3000 стр.), Черный (BCR-Q2612/C703/C303-X3K) |
unicomps |
P |
0 |
| 236271 |
Тонер-картридж F+ imaging, пурпурный, 1 000 страниц, для Xerox моделей Phaser 6125 (аналог 106R01336), (FP-X6125M) |
unicomps |
P |
0 |
| 238472 |
Тонер-картридж ELP для Kyocera M2135/M2635/M2735/P2235 TK-1150 3K Imaging (CT-KYO-TK-1150) |
unicomps |
P |
0 |
| 253367 |
Картридж XEROX лазерный, черный с тонером стандартной емкости (3 000 страниц) C310/C315 Toner Schwarz Original (006R04356) |
unicomps |
P |
0 |
| 261902 |
Тонер-картридж HI-BLACK 006R01696 для Xerox DocuCentre SC2020, Y, 3K (4100603203) |
unicomps |
P |
0 |
| 285186 |
Картридж G&G лазерный GG-Q2612A черный (2000стр.) (GG-Q2612A UNIVERSAL) |
unicomps |
P |
0 |
| 285188 |
Картридж G&G лазерный GG-CF283X черный (2200стр.) (GG-CF283X UNIVERSAL) |
unicomps |
P |
0 |
| 295887 |
Тонер-картридж TRENDART чёрный для HP Color LaserJet Ent M776DN/Z/ZS/M856DN с чипом (16K) (C_W2010A_659A) |
unicomps |
P |
0 |
| 308345 |
Картридж KYOCERA лазерный TK-1248 черный (1500стр.) для PA2001/PA2001W (1T02Y80NL0) |
unicomps |
P |
0 |