{
"query_block": {
"select_id": 1,
"cost_info": {
"query_cost": "18.19"
},
"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 (385234,385743,385759,386519,386543,387062,387067,387083,387085,387090,387093,387867,389162,390517,391802,393120,393149,393683,393694,394420,394433,394436,394441,394471))",
"cost_info": {
"read_cost": "17.95",
"eval_cost": "0.24",
"prefix_cost": "18.19",
"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 |
|---|---|
| 385234 | 18.00000000 |
| 385743 | 18.00000000 |
| 385759 | 18.00000000 |
| 386519 | 18.00000000 |
| 386543 | 3.55000000 |
| 387062 | 2.45000000 |
| 387067 | 15.00000000 |
| 387083 | 18.00000000 |
| 387085 | 15.00000000 |
| 387090 | 18.00000000 |
| 387093 | 18.00000000 |
| 387867 | 18.00000000 |
| 389162 | 18.00000000 |
| 390517 | 18.00000000 |
| 391802 | 18.00000000 |
| 393120 | 18.00000000 |
| 393149 | 15.00000000 |
| 393683 | 18.00000000 |
| 393694 | 15.00000000 |
| 394420 | 3.55000000 |
| 394433 | 2.45000000 |
| 394436 | 18.00000000 |
| 394441 | 15.00000000 |
| 394471 | 2.45000000 |