Query time 0.00483
JSON explain
{
"query_block": {
"select_id": 1,
"cost_info": {
"query_cost": "25.28"
},
"nested_loop": [
{
"table": {
"table_name": "b",
"access_type": "range",
"possible_keys": [
"PRIMARY"
],
"key": "PRIMARY",
"used_key_parts": [
"page_id"
],
"key_length": "3",
"rows_examined_per_scan": 45,
"rows_produced_per_join": 45,
"filtered": "100.00",
"using_index": true,
"cost_info": {
"read_cost": "5.04",
"eval_cost": "4.50",
"prefix_cost": "9.54",
"data_read_per_join": "360"
},
"used_columns": [
"page_id",
"user_id"
],
"attached_condition": "(`wearethehelpful_scalesta_net`.`b`.`page_id` in (150,148,146,147,145,143,144,142,141,140))"
}
},
{
"table": {
"table_name": "u",
"access_type": "eq_ref",
"possible_keys": [
"PRIMARY"
],
"key": "PRIMARY",
"used_key_parts": [
"user_id"
],
"key_length": "3",
"ref": [
"wearethehelpful_scalesta_net.b.user_id"
],
"rows_examined_per_scan": 1,
"rows_produced_per_join": 45,
"filtered": "100.00",
"cost_info": {
"read_cost": "11.25",
"eval_cost": "4.50",
"prefix_cost": "25.29",
"data_read_per_join": "289K"
},
"used_columns": [
"user_id",
"firstname",
"lastname"
]
}
}
]
}
}
Result
| author |
page_id |
| Kate Hamilton |
140 |
| Kate Hamilton |
141 |
| Kate Hamilton |
142 |
| Kate Hamilton |
143 |
| Kate Hamilton |
144 |
| Kate Hamilton |
145 |
| Kate Hamilton |
146 |
| Kate Hamilton |
147 |
| Kate Hamilton |
148 |
| Kate Hamilton |
150 |