Query time 0.00024
JSON explain
{
"query_block": {
"select_id": 1,
"cost_info": {
"query_cost": "5.82"
},
"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": 10,
"rows_produced_per_join": 10,
"filtered": "100.00",
"using_index": true,
"cost_info": {
"read_cost": "1.32",
"eval_cost": "1.00",
"prefix_cost": "2.32",
"data_read_per_join": "80"
},
"used_columns": [
"page_id",
"user_id"
],
"attached_condition": "(`wearethehelpful_scalesta_net`.`b`.`page_id` in (122,121,120,119,118,117,116,114,113,112))"
}
},
{
"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": 10,
"filtered": "100.00",
"cost_info": {
"read_cost": "2.50",
"eval_cost": "1.00",
"prefix_cost": "5.82",
"data_read_per_join": "64K"
},
"used_columns": [
"user_id",
"firstname",
"lastname"
]
}
}
]
}
}
Result
| author |
page_id |
| Kate Hamilton |
112 |
| Kate Hamilton |
113 |
| Kate Hamilton |
114 |
| Kate Hamilton |
116 |
| Kate Hamilton |
117 |
| Kate Hamilton |
118 |
| Kate Hamilton |
119 |
| Kate Hamilton |
120 |
| Kate Hamilton |
121 |
| Kate Hamilton |
122 |