Query time 0.00043
JSON explain
{
"query_block": {
"select_id": 1,
"cost_info": {
"query_cost": "14.67"
},
"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": 25,
"rows_produced_per_join": 25,
"filtered": "100.00",
"using_index": true,
"cost_info": {
"read_cost": "3.42",
"eval_cost": "2.50",
"prefix_cost": "5.92",
"data_read_per_join": "400"
},
"used_columns": [
"tag_id",
"object_type",
"object_id"
],
"attached_condition": "(`cscart_db`.`ctl`.`object_id` in (2012,2013,2014,2007,2006,2000,2001,1998,1997,1993))"
}
},
{
"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": 25,
"filtered": "100.00",
"cost_info": {
"read_cost": "6.25",
"eval_cost": "2.50",
"prefix_cost": "14.67",
"data_read_per_join": "19K"
},
"used_columns": [
"tag_id",
"tag"
]
}
}
]
}
}
}
Result
| video_id |
tags |
| 1993 |
#korean beauty, #KOREAN SKINCARE, #skincare |
| 1997 |
#all skin types, #kindlife, #Lifestyle Concerns |
| 1998 |
#all skin types, #kindlife, #Lifestyle Concerns |
| 2000 |
#korean beauty, #makeup |
| 2001 |
#all skin types, #General Wellness, #kindlife |
| 2006 |
##glowymakeup, #all skin types, #makeup |
| 2007 |
#all skin types, #brightening, #Skin Hydration |
| 2014 |
diabetes, immunity booster, joint support |