{
"query_block": {
"select_id": 1,
"cost_info": {
"query_cost": "16.81"
},
"grouping_operation": {
"using_filesort": false,
"table": {
"table_name": "product_prices",
"access_type": "range",
"possible_keys": [
"usergroup",
"product_id",
"lower_limit",
"usergroup_id"
],
"key": "product_id",
"used_key_parts": [
"product_id"
],
"key_length": "3",
"rows_examined_per_scan": 24,
"rows_produced_per_join": 2,
"filtered": "10.00",
"index_condition": "(`goimagine`.`product_prices`.`product_id` in (418214,418755,418774,419514,419519,419527,419537,419540,420061,420071,420073,420075,420082,420096,420106,420821,420841,420857,420862,420868,420878,420881,421390,421391))",
"cost_info": {
"read_cost": "16.57",
"eval_cost": "0.24",
"prefix_cost": "16.81",
"data_read_per_join": "57"
},
"used_columns": [
"id",
"product_id",
"price",
"percentage_discount",
"lower_limit",
"usergroup_id"
],
"attached_condition": "((`goimagine`.`product_prices`.`lower_limit` = 1) and (`goimagine`.`product_prices`.`usergroup_id` in (0,1)))"
}
}
}
}
| product_id | price |
|---|---|
| 418214 | 15.00000000 |
| 418755 | 18.00000000 |
| 418774 | 15.00000000 |
| 419514 | 2.45000000 |
| 419519 | 2.45000000 |
| 419527 | 3.55000000 |
| 419537 | 2.45000000 |
| 419540 | 2.45000000 |
| 420061 | 2.45000000 |
| 420071 | 2.45000000 |
| 420073 | 2.45000000 |
| 420075 | 18.00000000 |
| 420082 | 18.00000000 |
| 420096 | 2.45000000 |
| 420106 | 18.00000000 |
| 420821 | 2.45000000 |
| 420841 | 15.00000000 |
| 420857 | 2.45000000 |
| 420862 | 2.45000000 |
| 420868 | 20.00000000 |
| 420878 | 2.45000000 |
| 420881 | 6.35000000 |
| 421390 | 2.45000000 |
| 421391 | 2.45000000 |