Query time 0.00135
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": 8,
"filtered": "3.48",
"index_condition": "(`rajansecarter_single_store_19_jan`.`cscart_ult_product_prices`.`company_id` <=> 1)",
"cost_info": {
"read_cost": "12.00",
"eval_cost": "1.67",
"prefix_cost": "60.00",
"data_read_per_join": "267"
},
"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 (147,148,149,150,151,152,153,154,155,156,157,158,159,160,161,162,163,164,165,167,168,169,170,171,172,173,174,175,176,177,178,179)) and (`rajansecarter_single_store_19_jan`.`cscart_ult_product_prices`.`usergroup_id` in (0,0,1)))"
}
}
}
}
Result
| product_id |
price |
| 147 |
44.990000 |
| 148 |
130.000000 |
| 149 |
53.990000 |
| 150 |
120.000000 |
| 151 |
500.000000 |
| 152 |
700.000000 |
| 153 |
49.990000 |
| 154 |
399.990000 |
| 155 |
79.990000 |
| 157 |
499.000000 |
| 158 |
4750.000000 |
| 159 |
11375.000000 |
| 160 |
200.000000 |
| 161 |
279.990000 |
| 162 |
32750.000000 |
| 163 |
899.990000 |
| 164 |
249.990000 |
| 165 |
599.950000 |
| 167 |
549.950000 |
| 168 |
1.000000 |
| 169 |
749.950000 |
| 170 |
145.990000 |
| 171 |
499.000000 |
| 172 |
299.990000 |
| 173 |
349.990000 |
| 174 |
100.750000 |
| 175 |
179.990000 |
| 176 |
648.950000 |
| 177 |
400.000000 |
| 178 |
6.830000 |
| 179 |
299.970000 |