Query time 0.00054
JSON explain
{
"query_block": {
"select_id": 1,
"cost_info": {
"query_cost": "17.19"
},
"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": 22,
"rows_produced_per_join": 22,
"filtered": "100.00",
"using_index": true,
"cost_info": {
"read_cost": "3.16",
"eval_cost": "2.20",
"prefix_cost": "5.36",
"data_read_per_join": "352"
},
"used_columns": [
"tag_id",
"object_type",
"object_id"
],
"attached_condition": "(`cscart_db`.`ctl`.`object_id` in (2331,2333,2226,2228,2230,2236,2238,2239))"
}
},
{
"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": 22,
"filtered": "100.00",
"cost_info": {
"read_cost": "9.62",
"eval_cost": "2.20",
"prefix_cost": "17.19",
"data_read_per_join": "16K"
},
"used_columns": [
"tag_id",
"tag"
]
}
}
]
}
}
}
Result
| video_id |
tags |
| 2228 |
#all skin types, immunity booster |
| 2230 |
#all skin types, #brightening, #pigmentation, #sensitive skin, #Skin Hydration |
| 2236 |
immunity booster, respiratory health |
| 2238 |
diabetes |
| 2239 |
digestive, Lifestyle Concerns |
| 2331 |
#all skin types, #brightening, #Even Skin Tone, #Skin Hydration |
| 2333 |
#all skin types, #brightening, #Dull Skin, #General Wellness, #Skin Hydration |