Query time 0.00054
JSON explain
{
"query_block": {
"select_id": 1,
"cost_info": {
"query_cost": "1.79"
},
"ordering_operation": {
"using_filesort": true,
"grouping_operation": {
"using_temporary_table": true,
"using_filesort": false,
"nested_loop": [
{
"table": {
"table_name": "cv",
"access_type": "ref",
"possible_keys": [
"status_idx",
"user_id_idx",
"idx_cp_videos_status_userid_videoid",
"idx_status_timestamp"
],
"key": "user_id_idx",
"used_key_parts": [
"user_id"
],
"key_length": "4",
"ref": [
"const"
],
"rows_examined_per_scan": 1,
"rows_produced_per_join": 0,
"filtered": "57.34",
"cost_info": {
"read_cost": "0.25",
"eval_cost": "0.06",
"prefix_cost": "0.35",
"data_read_per_join": "917"
},
"used_columns": [
"video_id",
"timestamp",
"status",
"user_id",
"community_url",
"community_thumbnail",
"community_video_url"
],
"attached_condition": "(`cscart_db`.`cv`.`status` = 'A')"
}
},
{
"table": {
"table_name": "cvd",
"access_type": "eq_ref",
"possible_keys": [
"PRIMARY"
],
"key": "PRIMARY",
"used_key_parts": [
"video_id",
"lang_code"
],
"key_length": "9",
"ref": [
"cscart_db.cv.video_id",
"const"
],
"rows_examined_per_scan": 1,
"rows_produced_per_join": 0,
"filtered": "100.00",
"cost_info": {
"read_cost": "0.14",
"eval_cost": "0.06",
"prefix_cost": "0.55",
"data_read_per_join": "2K"
},
"used_columns": [
"video_id",
"lang_code",
"youtube_id",
"video",
"description",
"short_description",
"like_count",
"comment_count"
]
}
},
{
"table": {
"table_name": "cu",
"access_type": "const",
"possible_keys": [
"PRIMARY"
],
"key": "PRIMARY",
"used_key_parts": [
"user_id"
],
"key_length": "3",
"ref": [
"const"
],
"rows_examined_per_scan": 1,
"rows_produced_per_join": 0,
"filtered": "100.00",
"cost_info": {
"read_cost": "0.56",
"eval_cost": "0.06",
"prefix_cost": "1.17",
"data_read_per_join": "3K"
},
"used_columns": [
"user_id",
"firstname"
]
}
},
{
"table": {
"table_name": "mum",
"access_type": "const",
"possible_keys": [
"PRIMARY"
],
"key": "PRIMARY",
"used_key_parts": [
"user_id"
],
"key_length": "3",
"ref": [
"const"
],
"rows_examined_per_scan": 1,
"rows_produced_per_join": 0,
"filtered": "100.00",
"cost_info": {
"read_cost": "0.57",
"eval_cost": "0.06",
"prefix_cost": "1.79",
"data_read_per_join": "10K"
},
"used_columns": [
"user_id",
"avatar"
]
}
}
]
}
}
}
}