Query time 0.00055
JSON explain
{
"query_block": {
"select_id": 1,
"cost_info": {
"query_cost": "7.38"
},
"ordering_operation": {
"using_filesort": true,
"cost_info": {
"sort_cost": "2.69"
},
"nested_loop": [
{
"table": {
"table_name": "cscart_cp_videos",
"access_type": "range",
"possible_keys": [
"PRIMARY",
"status_idx",
"video_id_idx",
"idx_cp_videos_status_userid_videoid",
"idx_status_timestamp"
],
"key": "PRIMARY",
"used_key_parts": [
"video_id"
],
"key_length": "3",
"rows_examined_per_scan": 4,
"rows_produced_per_join": 2,
"filtered": "67.15",
"index_condition": "(`cscart_db`.`cscart_cp_videos`.`video_id` in (2180,2181,2182,2183))",
"cost_info": {
"read_cost": "2.54",
"eval_cost": "0.27",
"prefix_cost": "2.81",
"data_read_per_join": "4K"
},
"used_columns": [
"video_id",
"video_type",
"company_id",
"usergroup_ids",
"position",
"timestamp",
"status",
"user_id",
"extra_params",
"community_video_id",
"community_url",
"community_thumbnail",
"community_video_url",
"community_last_sync_timestamp"
],
"attached_condition": "(`cscart_db`.`cscart_cp_videos`.`status` = 'A')"
}
},
{
"table": {
"table_name": "cscart_cp_video_descriptions",
"access_type": "eq_ref",
"possible_keys": [
"PRIMARY"
],
"key": "PRIMARY",
"used_key_parts": [
"video_id",
"lang_code"
],
"key_length": "9",
"ref": [
"cscart_db.cscart_cp_videos.video_id",
"const"
],
"rows_examined_per_scan": 1,
"rows_produced_per_join": 2,
"filtered": "100.00",
"cost_info": {
"read_cost": "0.67",
"eval_cost": "0.27",
"prefix_cost": "3.75",
"data_read_per_join": "11K"
},
"used_columns": [
"video_id",
"lang_code",
"youtube_id",
"video",
"description",
"short_description",
"privacy",
"like_count",
"dislike_count",
"comment_count",
"meta_keywords",
"meta_description",
"page_title",
"tagged_brands"
]
}
},
{
"table": {
"table_name": "cscart_cp_video_category_links",
"access_type": "ref",
"possible_keys": [
"pt"
],
"key": "pt",
"used_key_parts": [
"video_id"
],
"key_length": "3",
"ref": [
"cscart_db.cscart_cp_videos.video_id"
],
"rows_examined_per_scan": 1,
"rows_produced_per_join": 2,
"filtered": "100.00",
"cost_info": {
"read_cost": "0.67",
"eval_cost": "0.27",
"prefix_cost": "4.69",
"data_read_per_join": "42"
},
"used_columns": [
"video_id",
"category_id",
"link_type",
"position"
]
}
}
]
}
}
}
Result
| video_id |
video_type |
company_id |
usergroup_ids |
position |
timestamp |
status |
user_id |
extra_params |
community_video_id |
community_url |
community_thumbnail |
community_video_url |
community_last_sync_timestamp |
lang_code |
youtube_id |
video |
description |
short_description |
privacy |
like_count |
dislike_count |
comment_count |
meta_keywords |
meta_description |
page_title |
tagged_brands |
category_id |
link_type |
| 2183 |
A |
0 |
0 |
0 |
1763658451 |
A |
21551 |
|
0 |
https://www.kindlife.in/pdrn-reedle-300 |
https://www.kindlife.in/images/video_library/2183_1000248585_preview.jpg |
https://www.kindlife.in/images/video_library/2183_1000248585.mp4 |
0 |
en |
|
PDRN Reedle 300 |
|
|
1 |
0 |
0 |
0 |
|
|
|
53750 |
7 |
M |
| 2182 |
A |
0 |
0 |
0 |
1763658308 |
A |
21551 |
|
0 |
https://www.kindlife.in/pdrn-reedle-shot-300-en |
https://www.kindlife.in/images/video_library/_preview.jpg |
https://www.kindlife.in/ |
0 |
en |
|
PDRN Reedle Shot 300 |
|
|
1 |
0 |
0 |
0 |
|
|
|
53750 |
7 |
M |
| 2181 |
A |
0 |
0 |
0 |
1763658198 |
A |
21551 |
|
0 |
https://www.kindlife.in/pdrn-reedle-shot-300 |
https://www.kindlife.in/images/video_library/2181_1000248582_preview.jpg |
https://www.kindlife.in/images/video_library/2181_1000248582.mp4 |
0 |
en |
|
PDRN Reedle Shot 300 |
|
|
1 |
0 |
0 |
0 |
|
|
|
53750 |
7 |
M |
| 2180 |
A |
0 |
0 |
0 |
1763658107 |
A |
21551 |
|
0 |
https://www.kindlife.in/pdrn-reddle-shot-300 |
https://www.kindlife.in/images/video_library/2180_1000248583_preview.jpg |
https://www.kindlife.in/images/video_library/2180_1000248583.mp4 |
0 |
en |
|
PDRN Reddle Shot 300 |
|
|
1 |
0 |
0 |
0 |
|
|
|
|
7 |
M |