Query time 0.00101
JSON explain
{
"query_block": {
"select_id": 1,
"cost_info": {
"query_cost": "60.00"
},
"grouping_operation": {
"using_temporary_table": true,
"using_filesort": true,
"table": {
"table_name": "cscart_ult_product_prices",
"access_type": "ref",
"possible_keys": [
"usergroup",
"product_id",
"company_id",
"lower_limit",
"usergroup_id"
],
"key": "company_id",
"used_key_parts": [
"company_id"
],
"key_length": "4",
"ref": [
"const"
],
"rows_examined_per_scan": 240,
"rows_produced_per_join": 5,
"filtered": "2.38",
"index_condition": "(`rajansecarter_single_store_19_jan`.`cscart_ult_product_prices`.`company_id` <=> 1)",
"cost_info": {
"read_cost": "12.00",
"eval_cost": "1.14",
"prefix_cost": "60.00",
"data_read_per_join": "182"
},
"used_columns": [
"product_id",
"price",
"percentage_discount",
"lower_limit",
"company_id",
"usergroup_id"
],
"attached_condition": "((`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 (245,238,239,74,73,71,75,72,70,76,67,86,106,105,101,69,125,120,117,113,68)) and (`rajansecarter_single_store_19_jan`.`cscart_ult_product_prices`.`usergroup_id` in (0,0,1)))"
}
}
}
}
Result
| product_id |
price |
| 67 |
339.990000 |
| 68 |
799.990000 |
| 69 |
529.990000 |
| 70 |
499.990000 |
| 71 |
529.990000 |
| 72 |
599.990000 |
| 73 |
589.990000 |
| 74 |
524.990000 |
| 75 |
489.990000 |
| 76 |
439.990000 |
| 86 |
359.000000 |
| 101 |
188.880000 |
| 105 |
169.990000 |
| 106 |
179.990000 |
| 113 |
449.990000 |
| 117 |
729.990000 |
| 120 |
199.990000 |
| 125 |
149.990000 |
| 238 |
499.990000 |
| 239 |
509.990000 |
| 245 |
699.000000 |