{
"query_block": {
"select_id": 1,
"cost_info": {
"query_cost": "371.79"
},
"nested_loop": [
{
"table": {
"table_name": "cv",
"access_type": "ref",
"possible_keys": [
"status_idx",
"idx_cp_videos_status_userid_videoid",
"idx_status_timestamp"
],
"key": "idx_cp_videos_status_userid_videoid",
"used_key_parts": [
"status"
],
"key_length": "3",
"ref": [
"const"
],
"rows_examined_per_scan": 812,
"rows_produced_per_join": 812,
"filtered": "100.00",
"using_index": true,
"cost_info": {
"read_cost": "6.39",
"eval_cost": "81.20",
"prefix_cost": "87.59",
"data_read_per_join": "1M"
},
"used_columns": [
"video_id",
"status"
]
}
},
{
"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": 812,
"filtered": "100.00",
"using_index": true,
"cost_info": {
"read_cost": "203.00",
"eval_cost": "81.20",
"prefix_cost": "371.79",
"data_read_per_join": "3M"
},
"used_columns": [
"video_id",
"lang_code"
]
}
}
]
}
}
| COUNT(DISTINCT cv.video_id) |
|---|
| 823 |