Query time 0.00054
JSON explain
{
"query_block": {
"select_id": 1,
"cost_info": {
"query_cost": "57.61"
},
"grouping_operation": {
"using_filesort": false,
"table": {
"table_name": "cscart_ult_product_prices",
"access_type": "range",
"possible_keys": [
"usergroup",
"product_id",
"company_id",
"lower_limit",
"usergroup_id"
],
"key": "usergroup",
"used_key_parts": [
"product_id",
"usergroup_id",
"lower_limit",
"company_id"
],
"key_length": "13",
"rows_examined_per_scan": 24,
"rows_produced_per_join": 24,
"filtered": "100.00",
"index_condition": "((`rajansecarter_single_store_19_jan`.`cscart_ult_product_prices`.`company_id` = 1) and (`rajansecarter_single_store_19_jan`.`cscart_ult_product_prices`.`lower_limit` = 1) and (`rajansecarter_single_store_19_jan`.`cscart_ult_product_prices`.`product_id` in (187,248,282,12,280,197,278,1,149,238,6,25)) and (`rajansecarter_single_store_19_jan`.`cscart_ult_product_prices`.`usergroup_id` in (0,0,1)))",
"cost_info": {
"read_cost": "52.81",
"eval_cost": "4.80",
"prefix_cost": "57.61",
"data_read_per_join": "768"
},
"used_columns": [
"product_id",
"price",
"percentage_discount",
"lower_limit",
"company_id",
"usergroup_id"
]
}
}
}
}
Result
| product_id |
price |
| 1 |
5399.990000 |
| 6 |
329.990000 |
| 12 |
1000.000000 |
| 25 |
599.990000 |
| 149 |
53.990000 |
| 187 |
1000.000000 |
| 197 |
14.980000 |
| 238 |
499.990000 |
| 248 |
372.270000 |
| 278 |
30.000000 |
| 280 |
36.000000 |
| 282 |
27.990000 |