Query time 0.00108
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": 30,
"filtered": 100,
"attached_condition": "products_categories.category_id <=> 3356",
"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 |
| 5390 |
P5-10DE1-C5-001 - 136-174 MHz 10-20 In, 50 Out Amplifier |
| 5388 |
P5-2DE1-C5-001 - 136-174 MHz 2-5 In, 50 Out Amplifier |
| 5387 |
P5-1DE1-C5-001 - 136-174 MHz 1-2 In, 50 Out Amplifier |
| 5386 |
P5-R5DE1-C5-001 - 136-174 MHz .500-1 In, 50 Out Amplifier |
| 5389 |
P5-5DE1-C5-001 - 136-174 MHz 5-10 In, 50 Out Amplifier |
| 5384 |
P5-R1DE1-C5-001 - 764-870 MHz .100-.200 In, 50 Out Amplifier |
| 5385 |
P5-R2DE1-C5-001 - 136-174 MHz .200-.500 In, 50 Out Amplifier |
| 6685 |
P10-20DE1-C5-001 - 136-174 MHz20-50 In,100 Out Amplifier |
| 6759 |
P5-xDE1-C5-BP1 - Amplifier with ByPass Relay |
| 6712 |
P10-xDE1-C5-PS1 - Amplifier with Power Supply Option |
| 6677 |
P10-10DE1-C5-001 - 136-174 MHz10-20 In,100 Out Amplifier |
| 6697 |
P10-R1DE1-C5-001 - 136-174 MHz.100-.200 In,100 Out Amplifier |
| 6736 |
P25-xVHF1-C6-BP1 - Amplifier with ByPass Relay |
| 6693 |
P10-5DE1-C5-001 - 136-174 MHz5-10 In,100 Out Amplifier |
| 6761 |
P5-xDE1-C5-PC1 - Amplifier with Factory installed Power Control |
| 6762 |
P5-xDE1-C5-PS1 - Amplifier with Power Supply Option |
| 6681 |
P10-1DE1-C5-001 - 136-174 MHz1-2 In,100 Out Amplifier |
| 6710 |
P10-xDE1-C5-DCBP1 - Amplifier with DC ByPass |
| 6701 |
P10-R2DE1-C5-001 - 136-174 MHz.200-.500 In,100 Out Amplifier |
| 6689 |
P10-2DE1-C5-001 - 136-174 MHz2-5 In,100 Out Amplifier |
| 6737 |
P25-xVHF1-C6-TR1 - Amplifier with TR Switch |
| 6763 |
P5-xDE1-C5-TR1 - Amplifier with TR Switch |
| 6760 |
P5-xDE1-C5-DCBP1 - Amplifier with DC ByPass |
| 6709 |
P10-xDE1-C5-BP1 - Amplifier with ByPass Relay |