Query time 0.00037
JSON explain
{
"query_block": {
"select_id": 1,
"cost_info": {
"query_cost": "0.38"
},
"ordering_operation": {
"using_filesort": false,
"nested_loop": [
{
"table": {
"table_name": "link",
"access_type": "range",
"possible_keys": [
"PRIMARY",
"idx_product_type_position"
],
"key": "idx_product_type_position",
"used_key_parts": [
"product_id",
"type"
],
"key_length": "9",
"rows_examined_per_scan": 1,
"rows_produced_per_join": 0,
"filtered": "100.00",
"using_index": true,
"cost_info": {
"read_cost": "0.25",
"eval_cost": "0.01",
"prefix_cost": "0.35",
"data_read_per_join": "2"
},
"used_columns": [
"video_id",
"product_id",
"type",
"position"
],
"attached_condition": "((`cscart_db`.`link`.`product_id` = 31361) and (`cscart_db`.`link`.`type` = 'T'))"
}
},
{
"table": {
"table_name": "video",
"access_type": "eq_ref",
"possible_keys": [
"PRIMARY",
"video_id_idx"
],
"key": "PRIMARY",
"used_key_parts": [
"video_id"
],
"key_length": "3",
"ref": [
"cscart_db.link.video_id"
],
"rows_examined_per_scan": 1,
"rows_produced_per_join": 0,
"filtered": "100.00",
"using_index": true,
"cost_info": {
"read_cost": "0.03",
"eval_cost": "0.01",
"prefix_cost": "0.39",
"data_read_per_join": "160"
},
"used_columns": [
"video_id"
]
}
}
]
}
}
}