Query time 0.01679
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 (291,313,1618,1644,1645,1647,1650,1652,1654,1655,1660,1662,1663,1671,1672,1679,1680,1682,1683,1684)",
"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 |
| 12995 |
Akcent col.01 |
NoFrames |
P |
0 |
| 12996 |
Akcent col.02 |
NoFrames |
P |
0 |
| 12997 |
Akcent col.03 |
NoFrames |
P |
0 |
| 12998 |
Akcent col.04 |
NoFrames |
P |
0 |
| 10713 |
Del vento col.01 |
NoFrames |
P |
0 |
| 10714 |
Del vento col.02 |
NoFrames |
P |
0 |
| 10715 |
Del vento col.03 |
NoFrames |
P |
0 |
| 10716 |
Del vento col.04 |
NoFrames |
P |
0 |
| 10717 |
Del vento col.05 |
NoFrames |
P |
0 |
| 10718 |
Del vento col.06 |
NoFrames |
P |
0 |
| 10719 |
Del vento col.07 |
NoFrames |
P |
0 |
| 10720 |
Del vento col.08 |
NoFrames |
P |
0 |
| 10721 |
Del vento col.09 |
NoFrames |
P |
0 |
| 10722 |
Del vento col.10 |
NoFrames |
P |
0 |
| 10723 |
Del vento col.11 |
NoFrames |
P |
0 |
| 10305 |
Devotion col.01 |
NoFrames |
P |
0 |
| 10306 |
Devotion col.02 |
NoFrames |
P |
0 |
| 10307 |
Devotion col.03 |
NoFrames |
P |
0 |
| 10308 |
Devotion col.04 |
NoFrames |
P |
0 |
| 10309 |
Devotion col.05 |
NoFrames |
P |
0 |
| 10310 |
Devotion col.06 |
NoFrames |
P |
0 |
| 10311 |
Devotion col.07 |
NoFrames |
P |
0 |
| 10312 |
Devotion col.08 |
NoFrames |
P |
0 |
| 12999 |
Divo col.01 |
NoFrames |
P |
0 |
| 13000 |
Divo col.02 |
NoFrames |
P |
0 |
| 13001 |
Divo col.03 |
NoFrames |
P |
0 |
| 13002 |
Divo col.04 |
NoFrames |
P |
0 |
| 13003 |
Divo col.05 |
NoFrames |
P |
0 |
| 13004 |
Divo col.06 |
NoFrames |
P |
0 |
| 13005 |
Divo col.07 |
NoFrames |
P |
0 |
| 13006 |
Divo col.08 |
NoFrames |
P |
0 |
| 13007 |
Divo col.09 |
NoFrames |
P |
0 |
| 13008 |
Divo col.10 |
NoFrames |
P |
0 |
| 13009 |
Divo col.11 |
NoFrames |
P |
0 |
| 13010 |
Divo col.12 |
NoFrames |
P |
0 |
| 13011 |
Divo col.13 |
NoFrames |
P |
0 |
| 13012 |
Divo col.14 |
NoFrames |
P |
0 |
| 9874 |
Empire col.01 |
NoFrames |
P |
0 |
| 9875 |
Empire col.02 |
NoFrames |
P |
0 |
| 9887 |
Empire col.03 |
NoFrames |
P |
0 |
| 9879 |
Empire col.04 |
NoFrames |
P |
0 |
| 9796 |
Empire col.05 |
NoFrames |
P |
0 |
| 9942 |
Empire col.06 |
NoFrames |
P |
0 |
| 9943 |
Empire col.07 |
NoFrames |
P |
0 |
| 9941 |
Empire col.08 |
NoFrames |
P |
0 |
| 9944 |
Empire col.09 |
NoFrames |
P |
0 |
| 10813 |
Empire col.10 |
NoFrames |
P |
0 |
| 10814 |
Empire col.11 |
NoFrames |
P |
0 |
| 10815 |
Empire col.12 |
NoFrames |
P |
0 |
| 10816 |
Empire col.13 |
NoFrames |
P |
0 |
| 10817 |
Empire col.14 |
NoFrames |
P |
0 |
| 10818 |
Empire col.15 |
NoFrames |
P |
0 |
| 10819 |
Empire col.16 |
NoFrames |
P |
0 |
| 10820 |
Empire col.17 |
NoFrames |
P |
0 |
| 10821 |
Empire col.18 |
NoFrames |
P |
0 |
| 10822 |
Empire col.19 |
NoFrames |
P |
0 |
| 10823 |
Empire col.20 |
NoFrames |
P |
0 |
| 10824 |
Empire col.21 |
NoFrames |
P |
0 |
| 10825 |
Empire col.22 |
NoFrames |
P |
0 |
| 10826 |
Empire col.23 |
NoFrames |
P |
0 |
| 10704 |
Flame col.01 |
NoFrames |
P |
0 |
| 10705 |
Flame col.02 |
NoFrames |
P |
0 |
| 10706 |
Flame col.03 |
NoFrames |
P |
0 |
| 10707 |
Flame col.04 |
NoFrames |
P |
0 |
| 10708 |
Flame col.05 |
NoFrames |
P |
0 |
| 10709 |
Flame col.06 |
NoFrames |
P |
0 |
| 10710 |
Flame col.07 |
NoFrames |
P |
0 |
| 10711 |
Flame col.08 |
NoFrames |
P |
0 |
| 10712 |
Flame col.09 |
NoFrames |
P |
0 |
| 10301 |
Flashback col.01 |
NoFrames |
P |
0 |
| 10302 |
Flashback col.02 |
NoFrames |
P |
0 |
| 10303 |
Flashback col.03 |
NoFrames |
P |
0 |
| 10304 |
Flashback col.04 |
NoFrames |
P |
0 |
| 9945 |
For rest col.01 |
NoFrames |
P |
0 |
| 10601 |
For rest col.02 |
NoFrames |
P |
0 |
| 9727 |
For rest col.03 |
NoFrames |
P |
0 |
| 9728 |
For rest col.04 |
NoFrames |
P |
0 |
| 9729 |
For rest col.05 |
NoFrames |
P |
0 |
| 9730 |
For rest col.06 |
NoFrames |
P |
0 |
| 9731 |
For rest col.07 |
NoFrames |
P |
0 |
| 9732 |
For rest col.08 |
NoFrames |
P |
0 |
| 9733 |
For rest col.09 |
NoFrames |
P |
0 |
| 10181 |
For rest col.10 |
NoFrames |
P |
0 |
| 9734 |
For rest col.11 |
NoFrames |
P |
0 |
| 9735 |
For rest col.12 |
NoFrames |
P |
0 |
| 9724 |
For rest col.13 |
NoFrames |
P |
0 |
| 10370 |
Impulse col.01 |
NoFrames |
P |
0 |
| 10372 |
Impulse col.02 |
NoFrames |
P |
0 |
| 10374 |
Impulse col.03 |
NoFrames |
P |
0 |
| 10376 |
Impulse col.04 |
NoFrames |
P |
0 |
| 10377 |
Impulse col.05 |
NoFrames |
P |
0 |
| 10378 |
Impulse col.06 |
NoFrames |
P |
0 |
| 10379 |
Impulse col.07 |
NoFrames |
P |
0 |
| 10380 |
Impulse col.08 |
NoFrames |
P |
0 |
| 10381 |
Impulse col.09 |
NoFrames |
P |
0 |
| 10371 |
Impulse I col.01 |
NoFrames |
P |
0 |
| 10373 |
Impulse I col.02 |
NoFrames |
P |
0 |
| 10375 |
Impulse I col.03 |
NoFrames |
P |
0 |
| 10387 |
Inspiration col.03 |
NoFrames |
P |
0 |
| 10395 |
Inspiration leave col.01 |
NoFrames |
P |
0 |
| 10390 |
Inspiration leave col.02 |
NoFrames |
P |
0 |
| 10394 |
Inspiration plain col.01 |
NoFrames |
P |
0 |
| 10393 |
Inspiration plain col.02 |
NoFrames |
P |
0 |
| 10392 |
Inspiration plain col.03 |
NoFrames |
P |
0 |
| 10386 |
Inspiration plain col.04 |
NoFrames |
P |
0 |
| 10389 |
Inspiration plain col.05 |
NoFrames |
P |
0 |
| 10388 |
Inspiration plain col.06 |
NoFrames |
P |
0 |
| 10637 |
Inspiration plain col.08 |
NoFrames |
P |
0 |
| 10638 |
Inspiration plain col.09 |
NoFrames |
P |
0 |
| 10639 |
Inspiration plain col.10 |
NoFrames |
P |
0 |
| 10640 |
Inspiration plain col.11 |
NoFrames |
P |
0 |
| 10641 |
Inspiration plain col.12 |
NoFrames |
P |
0 |
| 13013 |
Les col.01 |
NoFrames |
P |
0 |
| 13014 |
Les col.02 |
NoFrames |
P |
0 |
| 13015 |
Les col.03 |
NoFrames |
P |
0 |
| 13016 |
Les col.04 |
NoFrames |
P |
0 |
| 13017 |
Les col.05 |
NoFrames |
P |
0 |
| 13018 |
Les col.06 |
NoFrames |
P |
0 |
| 13019 |
Les col.07 |
NoFrames |
P |
0 |
| 13020 |
Les col.08 |
NoFrames |
P |
0 |
| 13021 |
Les col.09 |
NoFrames |
P |
0 |
| 13022 |
Les plain col.01 |
NoFrames |
P |
0 |
| 13023 |
Les plain col.02 |
NoFrames |
P |
0 |
| 13024 |
Les plain col.03 |
NoFrames |
P |
0 |
| 13025 |
Les plain col.04 |
NoFrames |
P |
0 |
| 13026 |
Les plain col.05 |
NoFrames |
P |
0 |
| 13027 |
Les plain col.06 |
NoFrames |
P |
0 |
| 13028 |
Les plain col.07 |
NoFrames |
P |
0 |