Query time 0.05539
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": "cscart_categories",
"access_type": "range",
"possible_keys": ["PRIMARY", "c_status", "p_category_id"],
"key": "PRIMARY",
"key_length": "3",
"used_key_parts": ["category_id"],
"rows": 15,
"filtered": 100,
"index_condition": "cscart_categories.category_id in (286,308,323,327,1607,1614,1622,1648,1651,1657,1659,1661,1665,1666,1676)",
"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": ["noframes_angrybeaver.cscart_categories.category_id"],
"rows": 53,
"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": ["noframes_angrybeaver.products_categories.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.products_categories.product_id", "const"],
"rows": 1,
"filtered": 100,
"attached_condition": "trigcond(descr1.lang_code = 'ru')"
},
"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": "1878Kb",
"join_type": "BNL",
"attached_condition": "companies.company_id = products.company_id"
},
"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": ["noframes_angrybeaver.products_categories.product_id"],
"rows": 16,
"filtered": 99.23484039,
"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 |
| 10095 |
Kingsman Games col.05 |
NoFrames |
P |
0 |
| 9904 |
Kingsman Spy col.01 |
NoFrames |
P |
0 |
| 10178 |
Kingsman Spy col.02 |
NoFrames |
P |
0 |
| 10644 |
Kingsman Spy col.03 |
NoFrames |
P |
0 |
| 10093 |
Kingsman Spy col.04 |
NoFrames |
P |
0 |
| 10096 |
Kingsman Spy col.05 |
NoFrames |
P |
0 |
| 10167 |
Kingsman Spy col.06 |
NoFrames |
P |
0 |
| 10525 |
Krasota col.01 |
NoFrames |
P |
0 |
| 10526 |
Krasota col.02 |
NoFrames |
P |
0 |
| 10527 |
Krasota col.03 |
NoFrames |
P |
0 |
| 10528 |
Krasota col.04 |
NoFrames |
P |
0 |
| 10529 |
Krasota col.05 |
NoFrames |
P |
0 |
| 10530 |
Krasota col.06 |
NoFrames |
P |
0 |
| 10531 |
Krasota col.07 |
NoFrames |
P |
0 |
| 10532 |
Krasota col.08 |
NoFrames |
P |
0 |
| 10533 |
Krasota col.09 |
NoFrames |
P |
0 |
| 10534 |
Krasota col.10 |
NoFrames |
P |
0 |
| 10535 |
Krasota col.11 |
NoFrames |
P |
0 |
| 10536 |
Krasota col.12 |
NoFrames |
P |
0 |
| 10537 |
Krasota col.13 |
NoFrames |
P |
0 |
| 10538 |
Krasota col.14 |
NoFrames |
P |
0 |
| 10539 |
Krasota col.15 |
NoFrames |
P |
0 |
| 10540 |
Krasota col.16 |
NoFrames |
P |
0 |
| 10541 |
Krasota col.17 |
NoFrames |
P |
0 |
| 10542 |
Krasota col.18 |
NoFrames |
P |
0 |
| 10524 |
Krasota col.19 |
NoFrames |
P |
0 |
| 10543 |
Krasota col.20 |
NoFrames |
P |
0 |
| 10544 |
Krasota col.21 |
NoFrames |
P |
0 |
| 10323 |
Mechta col.01 |
NoFrames |
P |
0 |
| 10324 |
Mechta col.02 |
NoFrames |
P |
0 |
| 10325 |
Mechta col.03 |
NoFrames |
P |
0 |
| 10326 |
Mechta col.04 |
NoFrames |
P |
0 |
| 10327 |
Mechta col.05 |
NoFrames |
P |
0 |
| 10328 |
Mechta col.06 |
NoFrames |
P |
0 |
| 10329 |
Mechta col.07 |
NoFrames |
P |
0 |
| 10330 |
Mechta col.08 |
NoFrames |
P |
0 |
| 10331 |
Mechta col.09 |
NoFrames |
P |
0 |
| 10332 |
Mechta col.10 |
NoFrames |
P |
0 |
| 10333 |
Mechta col.11 |
NoFrames |
P |
0 |
| 10334 |
Mechta col.12 |
NoFrames |
P |
0 |
| 10335 |
Mechta col.13 |
NoFrames |
P |
0 |
| 10336 |
Mechta col.14 |
NoFrames |
P |
0 |
| 10337 |
Mechta col.15 |
NoFrames |
P |
0 |
| 10338 |
Mechta col.16 |
NoFrames |
P |
0 |
| 10339 |
Mechta col.17 |
NoFrames |
P |
0 |
| 10340 |
Mechta col.18 |
NoFrames |
P |
0 |
| 10341 |
Mechta col.19 |
NoFrames |
P |
0 |
| 10342 |
Mechta col.20 |
NoFrames |
P |
0 |
| 10792 |
Oasis col.01 |
NoFrames |
P |
0 |
| 10793 |
Oasis col.02 |
NoFrames |
P |
0 |
| 10794 |
Oasis col.03 |
NoFrames |
P |
0 |
| 10795 |
Oasis col.04 |
NoFrames |
P |
0 |
| 10796 |
Oasis col.05 |
NoFrames |
P |
0 |
| 10797 |
Oasis col.06 |
NoFrames |
P |
0 |
| 10798 |
Oasis col.07 |
NoFrames |
P |
0 |
| 10799 |
Oasis col.08 |
NoFrames |
P |
0 |
| 10800 |
Oasis col.09 |
NoFrames |
P |
0 |
| 10801 |
Oasis col.10 |
NoFrames |
P |
0 |
| 10802 |
Oasis col.11 |
NoFrames |
P |
0 |
| 10803 |
Oasis col.12 |
NoFrames |
P |
0 |
| 10804 |
Oasis col.13 |
NoFrames |
P |
0 |
| 10805 |
Oasis col.14 |
NoFrames |
P |
0 |
| 10806 |
Oasis col.15 |
NoFrames |
P |
0 |
| 10807 |
Oasis col.16 |
NoFrames |
P |
0 |
| 10808 |
Oasis col.17 |
NoFrames |
P |
0 |
| 10809 |
Oasis col.18 |
NoFrames |
P |
0 |
| 10810 |
Oasis col.19 |
NoFrames |
P |
0 |
| 10811 |
Oasis col.20 |
NoFrames |
P |
0 |
| 10812 |
Oasis col.21 |
NoFrames |
P |
0 |
| 10827 |
Oasis col.22 |
NoFrames |
P |
0 |
| 10828 |
Oasis col.25 |
NoFrames |
P |
0 |
| 9839 |
Гравитация col.01 |
NoFrames |
P |
0 |
| 12702 |
Гравитация col.02 |
NoFrames |
P |
0 |
| 9841 |
Гравитация col.03 |
NoFrames |
P |
0 |
| 9848 |
Гравитация col.04 |
NoFrames |
P |
0 |
| 9840 |
Гравитация col.05 |
NoFrames |
P |
0 |
| 9844 |
Гравитация col.06 |
NoFrames |
P |
0 |
| 9843 |
Гравитация col.07 |
NoFrames |
P |
0 |
| 9846 |
Гравитация col.08 |
NoFrames |
P |
0 |
| 9845 |
Гравитация col.09 |
NoFrames |
P |
0 |
| 9860 |
Гравитация col.10 |
NoFrames |
P |
0 |
| 9859 |
Гравитация col.11 |
NoFrames |
P |
0 |
| 9858 |
Гравитация col.12 |
NoFrames |
P |
0 |
| 9857 |
Гравитация col.13 |
NoFrames |
P |
0 |
| 9852 |
Гравитация col.14 |
NoFrames |
P |
0 |
| 9861 |
Гравитация col.15 |
NoFrames |
P |
0 |
| 9862 |
Гравитация col.16 |
NoFrames |
P |
0 |
| 9847 |
Гравитация col.17 |
NoFrames |
P |
0 |
| 9863 |
Гравитация col.18 |
NoFrames |
P |
0 |
| 9856 |
Гравитация col.19 |
NoFrames |
P |
0 |
| 9855 |
Гравитация col.20 |
NoFrames |
P |
0 |
| 9838 |
Гравитация col.21 |
NoFrames |
P |
0 |
| 9849 |
Гравитация col.22 |
NoFrames |
P |
0 |
| 9850 |
Гравитация col.23 |
NoFrames |
P |
0 |
| 9853 |
Гравитация col.24 |
NoFrames |
P |
0 |
| 9842 |
Гравитация col.25 |
NoFrames |
P |
0 |
| 9851 |
Гравитация col.26 |
NoFrames |
P |
0 |
| 9854 |
Гравитация col.27 |
NoFrames |
P |
0 |
| 10263 |
Гравитация col.28 |
NoFrames |
P |
0 |
| 10264 |
Гравитация col.29 |
NoFrames |
P |
0 |
| 10265 |
Гравитация col.30 |
NoFrames |
P |
0 |
| 10266 |
Гравитация col.31 |
NoFrames |
P |
0 |
| 10267 |
Гравитация col.32 |
NoFrames |
P |
0 |
| 10268 |
Гравитация col.33 |
NoFrames |
P |
0 |
| 10269 |
Гравитация col.34 |
NoFrames |
P |
0 |
| 10270 |
Гравитация col.35 |
NoFrames |
P |
0 |
| 10271 |
Гравитация col.36 |
NoFrames |
P |
0 |
| 10272 |
Гравитация col.37 |
NoFrames |
P |
0 |
| 10273 |
Гравитация col.38 |
NoFrames |
P |
0 |
| 10478 |
Романтика Античная монета col.514 |
NoFrames |
P |
0 |
| 9883 |
Романтика Ароматная пудра col.61 |
NoFrames |
P |
0 |
| 9901 |
Романтика Бархатный ирис col.98 |
NoFrames |
P |
0 |
| 10493 |
Романтика Благородный сапфир col.529 |
NoFrames |
P |
0 |
| 10485 |
Романтика Бодрящий кофе col.520 |
NoFrames |
P |
0 |
| 10476 |
Романтика Брызги прибоя col.512 |
NoFrames |
P |
0 |
| 10479 |
Романтика Ванильный крем col.515 |
NoFrames |
P |
0 |
| 10494 |
Романтика Виртуальное путешествие col.530 |
NoFrames |
P |
0 |
| 10492 |
Романтика Глубокое озеро col.528 |
NoFrames |
P |
0 |
| 10468 |
Романтика Горные вершины col.504 |
NoFrames |
P |
0 |
| 9903 |
Романтика Гранатовый закат col.89 |
NoFrames |
P |
0 |
| 10487 |
Романтика Дикий кипарис col.523 |
NoFrames |
P |
0 |
| 9899 |
Романтика Душистая лаванда col.86 |
NoFrames |
P |
0 |
| 10473 |
Романтика Дымчатая орхидея col.509 |
NoFrames |
P |
0 |
| 10486 |
Романтика Жареный каштан col.522 |
NoFrames |
P |
0 |
| 9881 |
Романтика Жемчужный берег col.07 |
NoFrames |
P |
0 |
| 9896 |
Романтика Звездная ночь col.53 |
NoFrames |
P |
0 |
| 9892 |
Романтика Зеленый чай col.42 |
NoFrames |
P |
0 |
| 10481 |
Романтика Зыбучие пески col.517 |
NoFrames |
P |
0 |