Query time 0.00129
JSON explain
{
"query_block": {
"select_id": 1,
"filesort": {
"sort_key": "popularity.total desc, products.product_id",
"temporary_table": {
"table": {
"table_name": "cscart_categories",
"access_type": "const",
"possible_keys": ["PRIMARY", "c_status", "p_category_id"],
"key": "PRIMARY",
"key_length": "3",
"used_key_parts": ["category_id"],
"ref": ["const"],
"rows": 1,
"filtered": 100
},
"table": {
"table_name": "products_categories",
"access_type": "ref",
"possible_keys": ["PRIMARY", "pt"],
"key": "PRIMARY",
"key_length": "3",
"used_key_parts": ["category_id"],
"ref": ["const"],
"rows": 29,
"filtered": 100,
"attached_condition": "products_categories.category_id <=> 3781",
"using_index": true
},
"table": {
"table_name": "products",
"access_type": "eq_ref",
"possible_keys": ["PRIMARY", "status"],
"key": "PRIMARY",
"key_length": "3",
"used_key_parts": ["product_id"],
"ref": ["rfswire_cart.products_categories.product_id"],
"rows": 1,
"filtered": 87.96884918,
"attached_condition": "(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": "shared_descr",
"access_type": "eq_ref",
"possible_keys": ["PRIMARY", "product_id", "company_id"],
"key": "PRIMARY",
"key_length": "13",
"used_key_parts": ["product_id", "lang_code", "company_id"],
"ref": ["rfswire_cart.products_categories.product_id", "const", "const"],
"rows": 1,
"filtered": 100,
"attached_condition": "trigcond(shared_descr.lang_code = 'en')"
},
"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": ["rfswire_cart.products_categories.product_id", "const"],
"rows": 1,
"filtered": 100,
"attached_condition": "trigcond(descr1.lang_code = 'en')"
},
"table": {
"table_name": "popularity",
"access_type": "eq_ref",
"possible_keys": ["PRIMARY", "total"],
"key": "PRIMARY",
"key_length": "3",
"used_key_parts": ["product_id"],
"ref": ["rfswire_cart.products_categories.product_id"],
"rows": 1,
"filtered": 100
},
"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": ["rfswire_cart.products_categories.product_id"],
"rows": 88,
"filtered": 64.24570465,
"attached_condition": "prices.lower_limit = 1 and prices.usergroup_id in (0,0,1)",
"using_index": true
}
}
}
}
}
Result
| product_id |
product |
| 4078 |
Motorola 5080384F72 - Replacement Foam Plugs |
| 4779 |
Motorola RLN6282 - Replacement Ear Tips, Clear - Pack of 50 |
| 5006 |
Motorola RLN6242 - Low Noise Kit with Translucent Tube and 1 Clear Rubber Eartip |
| 5108 |
Motorola PMLN7560 - Receive Only Earpiece with translucent tube and rubber eartip |
| 4103 |
Motorola PMLN7189 Swivel Earpiece, In-Line Mic & PTT |
| 4104 |
Motorola PMLN7156 - Earbud w/ In-Line PTT, Mag One |
| 3983 |
Motorola 32012144003 - Green Antenna ID Band |
| 4106 |
Motorola PMLN7158 - 1-Wire Surveillance Kit with Translucent Tube, Black |
| 4105 |
Motorola PMLN7157 - 2-Wire Surveillance Kit with Translucent Tube, Black |
| 3984 |
Motorola 32012144004 - Blue Antenna ID Band |
| 4107 |
Motorola PMLN7159 - Adjustable D-Style Earpiece w/ In-Line PTT/Mic, Black |
| 3981 |
Motorola 32012144001 - Gray Antenna ID Band |
| 3985 |
Motorola 32012144005 - Purple Antenna ID Band |
| 3982 |
Motorola 32012144002 - Yellow Antenna ID Band |
| 4034 |
Motorola PMLN7128 - Belt Clip (Heavy Duty) |
| 4491 |
Motorola PMLN6074 - Nylon Wrist Strap |
| 5616 |
Motorola WM500 Bluetooth Remote Speaker Mic |
| 5246 |
PMMN4125A - Wired Speaker Mic with Power (rechargeable) |
| 6825 |
Motorola PMLN8298A - Wireless Bluetooth PTT Pod |
| 6826 |
Motorola PMLN8332 - Vehicle Mount For WP300 |
| 4996 |
Motorola PMNN4578 - Li-ion 2500 mAh, 3.7v Li-ion 2500 mAh, 3.7v Battery |
| 6827 |
Motorola PMLN8401 - WP300 Wireless Bluetooth Push-To-Talk Pod With Translucent Tube Earpiece |
| 6136 |
Motorola PMLN8123 - EP910W Op Critical Wireless Earpiece with PTT |
| 6814 |
Motorola PMKN4294 - USB-A to USB-C Charging Cable |