Query time 0.04363
JSON explain
{
"query_block": {
"select_id": 1,
"filesort": {
"sort_key": "products.`timestamp`, 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,
"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 |
| 12551 |
Турецкий ковер BAMBOO CUPRUM 200x300 |
NoFrames |
P |
0 |
| 12544 |
Бельгийский ковер GRANITE 160x230 |
NoFrames |
P |
0 |
| 12546 |
Бельгийский ковер AGAT 200x300 |
NoFrames |
P |
0 |
| 12547 |
Бельгийский ковер CHIC 200x300 |
NoFrames |
P |
0 |
| 12548 |
Бельгийский ковер ANTIQUE 160x230 |
NoFrames |
P |
0 |
| 12549 |
Бельгийский ковер BASALT 160x230 |
NoFrames |
P |
0 |
| 12550 |
Бельгийский ковер FRESCO 160x230 |
NoFrames |
P |
0 |
| 12555 |
Бельгийский ковер ORIGAMI 160х230 |
NoFrames |
P |
0 |
| 12556 |
Бельгийский ковер OSCAR 160х230 |
NoFrames |
P |
0 |
| 12557 |
Бельгийский ковер BAUHAUS 160х230 |
NoFrames |
P |
0 |
| 12558 |
Бельгийский ковер BAUHAUS 200x300 |
NoFrames |
P |
0 |
| 12559 |
Бельгийский ковер SPECTRUM 160х230 |
NoFrames |
P |
0 |
| 12576 |
Бельгийский ковер APATITE 160x230 |
NoFrames |
P |
0 |
| 12577 |
Бельгийский ковер MIRROR 160x230 |
NoFrames |
P |
0 |
| 12578 |
Бельгийский ковер BOREAL 160x230 |
NoFrames |
P |
0 |
| 9683 |
GENEVA |
NoFrames |
P |
0 |
| 9685 |
BRUGGE |
NoFrames |
P |
0 |
| 9686 |
ORLEAN |
NoFrames |
P |
0 |
| 9687 |
STOCKHOLM |
NoFrames |
P |
0 |
| 9688 |
NAPOLI |
NoFrames |
P |
0 |
| 9689 |
PALERMO |
NoFrames |
P |
0 |
| 9690 |
MALAGA |
NoFrames |
P |
0 |
| 12560 |
Бельгийский ковер ORIGAMI 200x300 |
NoFrames |
P |
0 |
| 12561 |
Бельгийский ковер OSCAR 200x300 |
NoFrames |
P |
0 |
| 9775 |
Фантазия col.07 |
NoFrames |
P |
0 |
| 9776 |
Фантазия col.01 |
NoFrames |
P |
0 |
| 9777 |
Фантазия col.02 |
NoFrames |
P |
0 |
| 9778 |
Фантазия col.08 |
NoFrames |
P |
0 |
| 9779 |
Фантазия col.10 |
NoFrames |
P |
0 |
| 9780 |
Фантазия col.17 |
NoFrames |
P |
0 |
| 9781 |
Фантазия col.05 |
NoFrames |
P |
0 |
| 9782 |
Фантазия col.19 |
NoFrames |
P |
0 |
| 9783 |
Фантазия col.42 |
NoFrames |
P |
0 |
| 9784 |
Фантазия col.38 |
NoFrames |
P |
0 |
| 9785 |
Фантазия col.41 |
NoFrames |
P |
0 |
| 9786 |
Фантазия col.46 |
NoFrames |
P |
0 |
| 9787 |
Фантазия col.26 |
NoFrames |
P |
0 |
| 9788 |
Фантазия col.50 |
NoFrames |
P |
0 |
| 9790 |
Фантазия col.22 |
NoFrames |
P |
0 |
| 9791 |
Фантазия col.30 |
NoFrames |
P |
0 |
| 9792 |
Фантазия col.31 |
NoFrames |
P |
0 |
| 9795 |
Фантазия col.37 |
NoFrames |
P |
0 |
| 9797 |
Generation col.101 |
NoFrames |
P |
0 |
| 9798 |
Generation col.107 |
NoFrames |
P |
0 |
| 9799 |
Generation col.106 |
NoFrames |
P |
0 |
| 9800 |
Generation col.105 |
NoFrames |
P |
0 |
| 9801 |
Generation col.108 |
NoFrames |
P |
0 |
| 9802 |
Generation col.109 |
NoFrames |
P |
0 |
| 9803 |
Generation col.04 |
NoFrames |
P |
0 |
| 9804 |
Generation col.110 |
NoFrames |
P |
0 |
| 9805 |
Generation col.06 |
NoFrames |
P |
0 |
| 9806 |
Generation col.11 |
NoFrames |
P |
0 |
| 9807 |
Generation col.12 |
NoFrames |
P |
0 |
| 9808 |
Generation col.13 |
NoFrames |
P |
0 |
| 9809 |
Generation col.111 |
NoFrames |
P |
0 |
| 9810 |
Generation col.112 |
NoFrames |
P |
0 |
| 9811 |
Generation col.115 |
NoFrames |
P |
0 |
| 9812 |
Generation col.116 |
NoFrames |
P |
0 |
| 9814 |
Crush col.01 |
NoFrames |
P |
0 |
| 9815 |
Crush col.02 |
NoFrames |
P |
0 |
| 9816 |
Crush col.03 |
NoFrames |
P |
0 |
| 9817 |
Crush col.04 |
NoFrames |
P |
0 |
| 9818 |
Crush col.05 |
NoFrames |
P |
0 |
| 9820 |
Crush col.07 |
NoFrames |
P |
0 |
| 9821 |
Crush col.08 |
NoFrames |
P |
0 |
| 9822 |
Crush col.09 |
NoFrames |
P |
0 |
| 9823 |
Crush col.10 |
NoFrames |
P |
0 |
| 9824 |
Crush col.11 |
NoFrames |
P |
0 |
| 9825 |
Crush col.12 |
NoFrames |
P |
0 |
| 9826 |
Crush col.13 |
NoFrames |
P |
0 |
| 9827 |
Crush col.14 |
NoFrames |
P |
0 |
| 9828 |
Crush col.15 |
NoFrames |
P |
0 |
| 9829 |
Crush col.16 |
NoFrames |
P |
0 |
| 9830 |
Crush col.17 |
NoFrames |
P |
0 |
| 15732 |
Crush col.06 |
NoFrames |
P |
0 |
| 9838 |
Гравитация col.21 |
NoFrames |
P |
0 |
| 9839 |
Гравитация col.01 |
NoFrames |
P |
0 |
| 9840 |
Гравитация col.05 |
NoFrames |
P |
0 |
| 9841 |
Гравитация col.03 |
NoFrames |
P |
0 |
| 9842 |
Гравитация col.25 |
NoFrames |
P |
0 |
| 9843 |
Гравитация col.07 |
NoFrames |
P |
0 |
| 9844 |
Гравитация col.06 |
NoFrames |
P |
0 |
| 9845 |
Гравитация col.09 |
NoFrames |
P |
0 |
| 9846 |
Гравитация col.08 |
NoFrames |
P |
0 |
| 9847 |
Гравитация col.17 |
NoFrames |
P |
0 |
| 9848 |
Гравитация col.04 |
NoFrames |
P |
0 |
| 9849 |
Гравитация col.22 |
NoFrames |
P |
0 |
| 9850 |
Гравитация col.23 |
NoFrames |
P |
0 |
| 9851 |
Гравитация col.26 |
NoFrames |
P |
0 |
| 9852 |
Гравитация col.14 |
NoFrames |
P |
0 |
| 9853 |
Гравитация col.24 |
NoFrames |
P |
0 |
| 9854 |
Гравитация col.27 |
NoFrames |
P |
0 |
| 9855 |
Гравитация col.20 |
NoFrames |
P |
0 |
| 9856 |
Гравитация col.19 |
NoFrames |
P |
0 |
| 9857 |
Гравитация col.13 |
NoFrames |
P |
0 |
| 9858 |
Гравитация col.12 |
NoFrames |
P |
0 |
| 9859 |
Гравитация col.11 |
NoFrames |
P |
0 |
| 9860 |
Гравитация col.10 |
NoFrames |
P |
0 |
| 9861 |
Гравитация col.15 |
NoFrames |
P |
0 |
| 9862 |
Гравитация col.16 |
NoFrames |
P |
0 |
| 9863 |
Гравитация col.18 |
NoFrames |
P |
0 |
| 9876 |
Романтика Изумрудные холмы col.270 |
NoFrames |
P |
0 |
| 9877 |
Романтика Снежная сказка col.401 |
NoFrames |
P |
0 |
| 9878 |
Романтика Хрустальный звон col.402 |
NoFrames |
P |
0 |
| 9880 |
Романтика Лепесток жасмина col.01 |
NoFrames |
P |
0 |
| 9881 |
Романтика Жемчужный берег col.07 |
NoFrames |
P |
0 |
| 9882 |
Романтика Чайная роза col.10 |
NoFrames |
P |
0 |
| 9883 |
Романтика Ароматная пудра col.61 |
NoFrames |
P |
0 |
| 9885 |
Романтика Магия золота col.63 |
NoFrames |
P |
0 |
| 9886 |
Романтика Цветочный мед col.62 |
NoFrames |
P |
0 |
| 9888 |
Романтика Шоколадный ликер col.33 |
NoFrames |
P |
0 |
| 9889 |
Романтика Речная галька col.43 |
NoFrames |
P |
0 |
| 9890 |
Романтика Серебряный дождь col.23 |
NoFrames |
P |
0 |
| 9891 |
Романтика Степные травы col.18 |
NoFrames |
P |
0 |
| 9892 |
Романтика Зеленый чай col.42 |
NoFrames |
P |
0 |
| 9893 |
Романтика Тропический водопад col.56 |
NoFrames |
P |
0 |
| 9894 |
Романтика Сосновый лес col.80 |
NoFrames |
P |
0 |
| 9895 |
Романтика Морской ветер col.54 |
NoFrames |
P |
0 |
| 9896 |
Романтика Звездная ночь col.53 |
NoFrames |
P |
0 |
| 9897 |
Романтика Морозное утро col.52 |
NoFrames |
P |
0 |
| 9899 |
Романтика Душистая лаванда col.86 |
NoFrames |
P |
0 |
| 9900 |
Романтика Нежное мерцание col.85 |
NoFrames |
P |
0 |
| 9901 |
Романтика Бархатный ирис col.98 |
NoFrames |
P |
0 |
| 9903 |
Романтика Гранатовый закат col.89 |
NoFrames |
P |
0 |
| 9972 |
Continent col.03 |
NoFrames |
P |
0 |
| 9973 |
Continent col.04 |
NoFrames |
P |
0 |
| 9975 |
Continent col.06 |
NoFrames |
P |
0 |
| 9976 |
Continent col.07 |
NoFrames |
P |
0 |