Query time 0.00045
JSON explain
{
"query_block": {
"select_id": 1,
"cost_info": {
"query_cost": "9.08"
},
"grouping_operation": {
"using_filesort": false,
"nested_loop": [
{
"table": {
"table_name": "ctl",
"access_type": "range",
"possible_keys": [
"PRIMARY",
"tag_id",
"ids",
"idx_tag_links_object_id"
],
"key": "idx_tag_links_object_id",
"used_key_parts": [
"object_id"
],
"key_length": "4",
"rows_examined_per_scan": 11,
"rows_produced_per_join": 11,
"filtered": "100.00",
"using_index": true,
"cost_info": {
"read_cost": "2.07",
"eval_cost": "1.10",
"prefix_cost": "3.17",
"data_read_per_join": "176"
},
"used_columns": [
"tag_id",
"object_type",
"object_id"
],
"attached_condition": "(`cscart_db`.`ctl`.`object_id` in (2440,2422,2449,2445,2417,2418,2413,2415,2414,2416))"
}
},
{
"table": {
"table_name": "ct",
"access_type": "eq_ref",
"possible_keys": [
"PRIMARY"
],
"key": "PRIMARY",
"used_key_parts": [
"tag_id"
],
"key_length": "3",
"ref": [
"cscart_db.ctl.tag_id"
],
"rows_examined_per_scan": 1,
"rows_produced_per_join": 11,
"filtered": "100.00",
"cost_info": {
"read_cost": "4.81",
"eval_cost": "1.10",
"prefix_cost": "9.08",
"data_read_per_join": "8K"
},
"used_columns": [
"tag_id",
"tag"
]
}
}
]
}
}
}
Result
| video_id |
tags |
| 2413 |
hairfall |
| 2416 |
dandruff, Premature Greying Hair |
| 2417 |
dandruff |
| 2418 |
Frizzy Hair |
| 2445 |
Chemically Straightened Hair |