Query time 0.06012
JSON explain
{
"query_block": {
"select_id": 1,
"filesort": {
"sort_key": "products.`timestamp` desc, 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 |
| 12944 |
Philosophy Jute сol.01 |
NoFrames |
P |
0 |
| 10043 |
Simmetrika | col.05 |
NoFrames |
P |
0 |
| 10044 |
Simmetrika || col.05 |
NoFrames |
P |
0 |
| 10045 |
Simmetrika col.15 |
NoFrames |
P |
0 |
| 10046 |
Simmetrika col.06 |
NoFrames |
P |
0 |
| 10047 |
Simmetrika col.17 |
NoFrames |
P |
0 |
| 10048 |
Simmetrika col.10 |
NoFrames |
P |
0 |
| 10050 |
Simmetrika || col.02 |
NoFrames |
P |
0 |
| 10051 |
Simmetrika col.21 |
NoFrames |
P |
0 |
| 10052 |
Simmetrika col.03 |
NoFrames |
P |
0 |
| 10054 |
Simmetrika col.16 |
NoFrames |
P |
0 |
| 10055 |
Simmetrika | col.03 |
NoFrames |
P |
0 |
| 10056 |
Simmetrika || col.03 |
NoFrames |
P |
0 |
| 10057 |
Simmetrika col.09 |
NoFrames |
P |
0 |
| 10058 |
Simmetrika col.13 |
NoFrames |
P |
0 |
| 10059 |
Simmetrika col.07 |
NoFrames |
P |
0 |
| 10060 |
Simmetrika | col.01 |
NoFrames |
P |
0 |
| 10061 |
Simmetrika || col.01 |
NoFrames |
P |
0 |
| 10062 |
Simmetrika col.11 |
NoFrames |
P |
0 |
| 10063 |
Simmetrika col.01 |
NoFrames |
P |
0 |
| 10064 |
Simmetrika col.08 |
NoFrames |
P |
0 |
| 10065 |
Simmetrika | col.07 |
NoFrames |
P |
0 |
| 10066 |
Simmetrika || col.07 |
NoFrames |
P |
0 |
| 10067 |
Simmetrika col.20 |
NoFrames |
P |
0 |
| 10068 |
Simmetrika | col.06 |
NoFrames |
P |
0 |
| 10069 |
Simmetrika || col.06 |
NoFrames |
P |
0 |
| 10070 |
Simmetrika col.12 |
NoFrames |
P |
0 |
| 10071 |
Simmetrika col.18 |
NoFrames |
P |
0 |
| 10072 |
Simmetrika col.05 |
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 |
| 9984 |
Abitare col.02 |
NoFrames |
P |
0 |
| 9985 |
Abitare col.03 |
NoFrames |
P |
0 |
| 9986 |
Abitare col.04 |
NoFrames |
P |
0 |
| 9987 |
Abitare col.05 |
NoFrames |
P |
0 |
| 9988 |
Abitare col.06 |
NoFrames |
P |
0 |
| 9989 |
Abitare col.07 |
NoFrames |
P |
0 |
| 9990 |
Abitare col.08 |
NoFrames |
P |
0 |
| 9991 |
Abitare col.09 |
NoFrames |
P |
0 |
| 9992 |
Abitare col.10 |
NoFrames |
P |
0 |
| 9993 |
Abitare col.11 |
NoFrames |
P |
0 |
| 9994 |
Abitare col.12 |
NoFrames |
P |
0 |
| 9995 |
Abitare col.13 |
NoFrames |
P |
0 |
| 9996 |
Abitare col.14 |
NoFrames |
P |
0 |
| 9997 |
Abitare col.15 |
NoFrames |
P |
0 |
| 9998 |
Abitare col.16 |
NoFrames |
P |
0 |
| 9999 |
Abitare col.17 |
NoFrames |
P |
0 |
| 9972 |
Continent col.03 |
NoFrames |
P |
0 |
| 9973 |
Continent col.04 |
NoFrames |
P |
0 |