Query time 0.02229
JSON explain
{
"query_block": {
"select_id": 1,
"filesort": {
"sort_key": "if(NULL is not null,NULL,descr1.product), products.product_id",
"temporary_table": {
"table": {
"table_name": "shared_descr",
"access_type": "system",
"possible_keys": ["PRIMARY", "product_id", "company_id"],
"rows": 0,
"filtered": 0,
"const_row_not_found": true
},
"table": {
"table_name": "prices",
"access_type": "index",
"possible_keys": [
"usergroup",
"product_id",
"lower_limit",
"usergroup_id"
],
"key": "usergroup",
"key_length": "9",
"used_key_parts": ["product_id", "usergroup_id", "lower_limit"],
"rows": 1699,
"filtered": 99.23484039,
"attached_condition": "prices.lower_limit = 1 and prices.usergroup_id in (0,0,1)",
"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": ["noframes_angrybeaver.prices.product_id"],
"rows": 1,
"filtered": 96.7084198,
"attached_condition": "products.parent_product_id = 0 and (products.amount > 0 or products.tracking = 'D') and (products.usergroup_ids = '' or find_in_set(0,products.usergroup_ids) or find_in_set(1,products.usergroup_ids)) and products.`status` = 'A'"
},
"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": ["noframes_angrybeaver.prices.product_id", "const"],
"rows": 1,
"filtered": 100,
"attached_condition": "trigcond(descr1.lang_code = 'ru')"
},
"table": {
"table_name": "products_categories",
"access_type": "ref",
"possible_keys": ["PRIMARY", "pt"],
"key": "pt",
"key_length": "3",
"used_key_parts": ["product_id"],
"ref": ["noframes_angrybeaver.prices.product_id"],
"rows": 1,
"filtered": 100
},
"table": {
"table_name": "cscart_categories",
"access_type": "eq_ref",
"possible_keys": ["PRIMARY", "c_status", "p_category_id"],
"key": "PRIMARY",
"key_length": "3",
"used_key_parts": ["category_id"],
"ref": ["noframes_angrybeaver.products_categories.category_id"],
"rows": 1,
"filtered": 100,
"index_condition": "cscart_categories.category_id in (265,266,267,268,269,270,271,272,273,275,277,278,279,280,283,285,286,291,294,299,301,308,309,313,323,325,327,334,351,370,393,431,432,434,439,442,455,459,1151,667,700,708,775,784,787,1555,1559,1560,1561,1562,1565,1567,1570,1571,1574,1579,1584,1585,1589,1590,1591,1598,1601,1602,1606,1607,1612,1614,1618,1619,1621,1622,1628,1629,1630,1636,1637,1638,1641,1688,1643,1644,1645,1646,1647,1648,1649,1650,1651,1652,1654,1655,1656,1657,1658,1659,1660,1661,1662,1663,1664,1665,1666,1668,1669,1671,1672,1673,1674,1675,1676,1677,1678,1679,1680,1681,1682,1683,1684,1685,1687)",
"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)"
},
"block-nl-join": {
"table": {
"table_name": "companies",
"access_type": "ALL",
"possible_keys": ["PRIMARY"],
"rows": 2,
"filtered": 100,
"attached_condition": "companies.`status` = 'A'"
},
"buffer_type": "flat",
"buffer_size": "2048Kb",
"join_type": "BNL",
"attached_condition": "companies.company_id = products.company_id"
}
}
}
}
}
Result
| product_id |
product |
company_name |
product_type |
parent_product_id |
| 10071 |
Simmetrika col.18 |
NoFrames |
P |
0 |
| 10067 |
Simmetrika col.20 |
NoFrames |
P |
0 |
| 10051 |
Simmetrika col.21 |
NoFrames |
P |
0 |
| 10060 |
Simmetrika | col.01 |
NoFrames |
P |
0 |
| 10055 |
Simmetrika | col.03 |
NoFrames |
P |
0 |
| 10043 |
Simmetrika | col.05 |
NoFrames |
P |
0 |
| 10068 |
Simmetrika | col.06 |
NoFrames |
P |
0 |
| 10065 |
Simmetrika | col.07 |
NoFrames |
P |
0 |
| 10061 |
Simmetrika || col.01 |
NoFrames |
P |
0 |
| 10050 |
Simmetrika || col.02 |
NoFrames |
P |
0 |
| 10056 |
Simmetrika || col.03 |
NoFrames |
P |
0 |
| 10044 |
Simmetrika || col.05 |
NoFrames |
P |
0 |
| 10069 |
Simmetrika || col.06 |
NoFrames |
P |
0 |
| 10066 |
Simmetrika || col.07 |
NoFrames |
P |
0 |
| 12671 |
Solo col.01 |
NoFrames |
P |
0 |
| 12672 |
Solo col.02 |
NoFrames |
P |
0 |
| 15779 |
Solo col.03 |
NoFrames |
P |
0 |
| 12673 |
Solo col.04 |
NoFrames |
P |
0 |
| 12674 |
Solo col.05 |
NoFrames |
P |
0 |
| 12675 |
Solo col.06 |
NoFrames |
P |
0 |
| 12676 |
Solo col.07 |
NoFrames |
P |
0 |
| 12677 |
Solo col.08 |
NoFrames |
P |
0 |
| 12678 |
Solo col.09 |
NoFrames |
P |
0 |
| 12679 |
Solo col.10 |
NoFrames |
P |
0 |
| 9687 |
STOCKHOLM |
NoFrames |
P |
0 |
| 10024 |
Target col.01 |
NoFrames |
P |
0 |
| 10025 |
Target col.02 |
NoFrames |
P |
0 |
| 10026 |
Target col.03 |
NoFrames |
P |
0 |
| 10027 |
Target col.04 |
NoFrames |
P |
0 |
| 10028 |
Target soft col.01 |
NoFrames |
P |
0 |
| 10029 |
Target soft col.02 |
NoFrames |
P |
0 |
| 10030 |
Target soft col.03 |
NoFrames |
P |
0 |
| 10031 |
Target soft col.04 |
NoFrames |
P |
0 |
| 10032 |
Target soft col.05 |
NoFrames |
P |
0 |
| 10033 |
Target soft col.06 |
NoFrames |
P |
0 |
| 10034 |
Target soft col.07 |
NoFrames |
P |
0 |
| 10035 |
Target soft col.08 |
NoFrames |
P |
0 |
| 10036 |
Target soft col.09 |
NoFrames |
P |
0 |
| 10037 |
Target soft col.10 |
NoFrames |
P |
0 |
| 10038 |
Target soft col.11 |
NoFrames |
P |
0 |
| 10039 |
Target soft col.12 |
NoFrames |
P |
0 |
| 10040 |
Target soft col.13 |
NoFrames |
P |
0 |
| 10756 |
Vista col.01 |
NoFrames |
P |
0 |
| 10757 |
Vista col.02 |
NoFrames |
P |
0 |
| 10758 |
Vista col.03 |
NoFrames |
P |
0 |
| 10397 |
Winnie col.01 |
NoFrames |
P |
0 |
| 10398 |
Winnie col.02 |
NoFrames |
P |
0 |
| 10399 |
Winnie col.03 |
NoFrames |
P |
0 |
| 10400 |
Winnie col.04 |
NoFrames |
P |
0 |
| 10401 |
Winnie col.05 |
NoFrames |
P |
0 |
| 10402 |
Winnie col.06 |
NoFrames |
P |
0 |
| 12700 |
Winnie col.08 |
NoFrames |
P |
0 |
| 12546 |
Бельгийский ковер AGAT 200x300 |
NoFrames |
P |
0 |
| 12633 |
Бельгийский ковер Air 200x300 |
NoFrames |
P |
0 |
| 12573 |
Бельгийский ковер ANDROMEDA 200x300 |
NoFrames |
P |
0 |
| 12548 |
Бельгийский ковер ANTIQUE 160x230 |
NoFrames |
P |
0 |
| 12580 |
Бельгийский ковер ANTIQUE 80x125 |
NoFrames |
P |
0 |
| 12576 |
Бельгийский ковер APATITE 160x230 |
NoFrames |
P |
0 |
| 12565 |
Бельгийский ковер APATITE 200x300 |
NoFrames |
P |
0 |
| 12567 |
Бельгийский ковер APATITE 80x125 |
NoFrames |
P |
0 |
| 12549 |
Бельгийский ковер BASALT 160x230 |
NoFrames |
P |
0 |
| 12581 |
Бельгийский ковер BASALT 200x300 |
NoFrames |
P |
0 |
| 12557 |
Бельгийский ковер BAUHAUS 160х230 |
NoFrames |
P |
0 |
| 12558 |
Бельгийский ковер BAUHAUS 200x300 |
NoFrames |
P |
0 |