Query time 0.00079
JSON explain
{
"query_block": {
"select_id": 1,
"cost_info": {
"query_cost": "12.60"
},
"nested_loop": [
{
"table": {
"table_name": "b",
"access_type": "index",
"possible_keys": [
"PRIMARY"
],
"key": "PRIMARY",
"used_key_parts": [
"page_id",
"user_id"
],
"key_length": "6",
"rows_examined_per_scan": 16,
"rows_produced_per_join": 7,
"filtered": "43.75",
"using_index": true,
"cost_info": {
"read_cost": "2.80",
"eval_cost": "1.40",
"prefix_cost": "4.20",
"data_read_per_join": "56"
},
"used_columns": [
"page_id",
"user_id"
],
"attached_condition": "(`webmarco`.`b`.`page_id` in (411,58,61,59,60,62,442))"
}
},
{
"table": {
"table_name": "u",
"access_type": "eq_ref",
"possible_keys": [
"PRIMARY"
],
"key": "PRIMARY",
"used_key_parts": [
"user_id"
],
"key_length": "3",
"ref": [
"webmarco.b.user_id"
],
"rows_examined_per_scan": 1,
"rows_produced_per_join": 7,
"filtered": "100.00",
"cost_info": {
"read_cost": "7.00",
"eval_cost": "1.40",
"prefix_cost": "12.60",
"data_read_per_join": "45K"
},
"used_columns": [
"user_id",
"firstname",
"lastname"
]
}
}
]
}
}
Result
author |
page_id |
Stefano Roberto Leto |
58 |
Stefano Roberto Leto |
59 |
Stefano Roberto Leto |
60 |
Stefano Roberto Leto |
61 |
Stefano Roberto Leto |
62 |
test ewqew |
411 |
Vangjelio Trifka |
442 |