Query time 0.04678
JSON explain
{
"query_block": {
"select_id": 1,
"filesort": {
"sort_key": "descr1.product, products.product_id",
"temporary_table": {
"nested_loop": [
{
"table": {
"table_name": "cscart_categories",
"access_type": "range",
"possible_keys": ["PRIMARY", "c_status", "p_category_id"],
"key": "PRIMARY",
"key_length": "3",
"used_key_parts": ["category_id"],
"rows": 8,
"filtered": 100,
"index_condition": "cscart_categories.category_id in (175,176,185,186,187,188,189,202)",
"attached_condition": "(cscart_categories.usergroup_ids = '' or find_in_set(0,cscart_categories.usergroup_ids) or find_in_set(1,cscart_categories.usergroup_ids)) and cscart_categories.`status` in ('A','H') and cscart_categories.storefront_id in (0,1)"
}
},
{
"table": {
"table_name": "products_categories",
"access_type": "ref",
"possible_keys": ["PRIMARY", "pt"],
"key": "PRIMARY",
"key_length": "3",
"used_key_parts": ["category_id"],
"ref": ["cscart.cscart_categories.category_id"],
"rows": 2,
"filtered": 100,
"using_index": true
}
},
{
"table": {
"table_name": "products",
"access_type": "eq_ref",
"possible_keys": ["PRIMARY", "status", "idx_parent_product_id"],
"key": "PRIMARY",
"key_length": "3",
"used_key_parts": ["product_id"],
"ref": ["cscart.products_categories.product_id"],
"rows": 1,
"filtered": 94.64575195,
"attached_condition": "products.parent_product_id = 0 and (products.usergroup_ids = '' or find_in_set(0,products.usergroup_ids) or find_in_set(1,products.usergroup_ids)) and products.`status` = 'A' and products.product_type <> 'D'"
}
},
{
"table": {
"table_name": "companies",
"access_type": "eq_ref",
"possible_keys": ["PRIMARY"],
"key": "PRIMARY",
"key_length": "4",
"used_key_parts": ["company_id"],
"ref": ["cscart.products.company_id"],
"rows": 1,
"filtered": 100,
"attached_condition": "companies.`status` = 'A'"
}
},
{
"table": {
"table_name": "ec",
"access_type": "eq_ref",
"possible_keys": ["PRIMARY"],
"key": "PRIMARY",
"key_length": "4",
"used_key_parts": ["product_id"],
"ref": ["cscart.products_categories.product_id"],
"rows": 1,
"filtered": 100,
"attached_condition": "trigcond(ec.product_id = products.product_id)"
}
},
{
"table": {
"table_name": "descr1",
"access_type": "eq_ref",
"possible_keys": ["PRIMARY", "product_id"],
"key": "PRIMARY",
"key_length": "9",
"used_key_parts": ["product_id", "lang_code"],
"ref": ["cscart.products_categories.product_id", "const"],
"rows": 1,
"filtered": 100,
"attached_condition": "trigcond(descr1.lang_code = 'ru')"
}
},
{
"table": {
"table_name": "prices",
"access_type": "ref",
"possible_keys": [
"usergroup",
"product_id",
"lower_limit",
"usergroup_id"
],
"key": "usergroup",
"key_length": "3",
"used_key_parts": ["product_id"],
"ref": ["cscart.products_categories.product_id"],
"rows": 2,
"filtered": 93.62086487,
"attached_condition": "prices.lower_limit = 1 and prices.usergroup_id in (0,0,1)",
"using_index": true
}
}
]
}
}
}
}
Result
| product_id |
product |
company_name |
product_type |
parent_product_id |
energy_class |
energy_label_path |
energy_datasheet_value |
| 65 |
Cobra XRS 9370 |
Гаджет |
P |
0 |
|
|
|
| 64 |
Cobra XRS 9745 |
Гаджет |
P |
0 |
|
|
|
| 62 |
Cobra XRS 9945 |
Гаджет |
P |
0 |
|
|
|
| 30 |
GO 2535 TM WTE |
Гаджет |
P |
0 |
|
|
|
| 29 |
GPS-навигатор TomTom GO LIVE Top Gear edition |
Гаджет |
P |
0 |
|
|
|
| 37 |
Kenwood DPX308U |
Гаджет |
P |
0 |
|
|
|
| 53 |
Kenwood KFC-W3012 |
Гаджет |
P |
0 |
|
|
|
| 52 |
Kenwood KFC-W3013PS |
Гаджет |
P |
0 |
|
|
|
| 33 |
nüvi® 2455LT |
Гаджет |
P |
0 |
|
|
|
| 32 |
nüvi® 3450 |
Гаджет |
P |
0 |
|
|
|
| 49 |
Pioneer TS-MR1640 |
Гаджет |
P |
0 |
|
|
|
| 59 |
Pioneer AVH-P4400BH |
Гаджет |
P |
0 |
|
|
|
| 58 |
Pioneer AVH-P8400BH |
Гаджет |
P |
0 |
|
|
|
| 60 |
Pioneer AVIC-Z130BT |
Гаджет |
P |
0 |
|
|
|
| 42 |
Pioneer DEH-1300MP |
Гаджет |
P |
0 |
|
|
|
| 39 |
Pioneer DEH-80PRS |
Гаджет |
P |
0 |
|
|
|
| 40 |
Pioneer DEH-P8400BH |
Гаджет |
P |
0 |
|
|
|
| 43 |
Pioneer FH-P8000BT |
Гаджет |
P |
0 |
|
|
|
| 56 |
Pioneer GM-6500F |
Гаджет |
P |
0 |
|
|
|
| 57 |
Pioneer GM-D8500M |
Гаджет |
P |
0 |
|
|
|
| 55 |
Pioneer PRS-D800 |
Гаджет |
P |
0 |
|
|
|
| 50 |
Pioneer TS-D1720C |
Гаджет |
P |
0 |
|
|
|
| 51 |
Pioneer TS-D6902R |
Гаджет |
P |
0 |
|
|
|
| 48 |
Pioneer TS-MR2040 |
Гаджет |
P |
0 |
|
|
|
| 54 |
Pioneer TS-W3002D2|D4 |
Гаджет |
P |
0 |
|
|
|
| 63 |
Анти-радар XRS 9770 |
Гаджет |
P |
0 |
|
|
|
| 66 |
Анти-радар XRS 9970G |
Гаджет |
P |
0 |
|
|
|