Query time 0.00120
JSON explain
{
"query_block": {
"select_id": 1,
"cost_info": {
"query_cost": "92.81"
},
"ordering_operation": {
"using_filesort": true,
"cost_info": {
"sort_cost": "16.00"
},
"nested_loop": [
{
"table": {
"table_name": "q_images_links",
"access_type": "range",
"possible_keys": [
"object_id"
],
"key": "object_id",
"used_key_parts": [
"object_id",
"object_type",
"type"
],
"key_length": "81",
"rows_examined_per_scan": 16,
"rows_produced_per_join": 16,
"filtered": "100.00",
"index_condition": "((`portal`.`q_images_links`.`object_type` = 'product') and (`portal`.`q_images_links`.`type` = 'M') and (`portal`.`q_images_links`.`object_id` in ('6137','6138','6139','6140','6141','6142','6143','6144','6145','6146','6147','6148','6149','6150','6151','6152')))",
"cost_info": {
"read_cost": "35.21",
"eval_cost": "3.20",
"prefix_cost": "38.41",
"data_read_per_join": "1K"
},
"used_columns": [
"pair_id",
"object_id",
"object_type",
"image_id",
"detailed_id",
"type",
"position"
]
}
},
{
"table": {
"table_name": "q_images",
"access_type": "eq_ref",
"possible_keys": [
"PRIMARY"
],
"key": "PRIMARY",
"used_key_parts": [
"image_id"
],
"key_length": "4",
"ref": [
"portal.q_images_links.detailed_id"
],
"rows_examined_per_scan": 1,
"rows_produced_per_join": 16,
"filtered": "100.00",
"cost_info": {
"read_cost": "16.00",
"eval_cost": "3.20",
"prefix_cost": "57.61",
"data_read_per_join": "12K"
},
"used_columns": [
"image_id",
"image_path",
"image_x",
"image_y",
"is_high_res"
],
"attached_condition": "<if>(is_not_null_compl(q_images), (`portal`.`q_images_links`.`detailed_id` = `portal`.`q_images`.`image_id`), true)"
}
},
{
"table": {
"table_name": "q_common_descriptions",
"access_type": "eq_ref",
"possible_keys": [
"PRIMARY"
],
"key": "PRIMARY",
"used_key_parts": [
"object_id",
"lang_code",
"object_holder"
],
"key_length": "107",
"ref": [
"portal.q_images.image_id",
"const",
"const"
],
"rows_examined_per_scan": 1,
"rows_produced_per_join": 16,
"filtered": "100.00",
"cost_info": {
"read_cost": "16.00",
"eval_cost": "3.20",
"prefix_cost": "76.81",
"data_read_per_join": "9K"
},
"used_columns": [
"object_id",
"description",
"lang_code",
"object_holder"
],
"attached_condition": "<if>(is_not_null_compl(q_common_descriptions), (`portal`.`q_common_descriptions`.`object_id` = `portal`.`q_images`.`image_id`), true)"
}
}
]
}
}
}
Result
image_id |
image_path |
image_x |
image_y |
is_high_res |
pair_id |
object_id |
object_type |
detailed_id |
type |
position |
alt |
images_image_id |
0 |
BKN-F3Y017BT3M-BLK__1_.jpg |
500 |
500 |
N |
11550 |
6137 |
product |
13512 |
M |
0 |
|
13512 |
0 |
BKN-F7U006BT04-BLK_1_db3ca7c4-167e-436b-a429-0a3fad1891f0.jpg |
372 |
372 |
N |
11556 |
6139 |
product |
13518 |
M |
0 |
|
13518 |
0 |
BKN-F3Y021BT10M.png |
225 |
225 |
N |
11557 |
6138 |
product |
13519 |
M |
0 |
|
13519 |
0 |
BKN-F8J023BT04-WHT.jpg |
372 |
372 |
N |
11559 |
6144 |
product |
13521 |
M |
0 |
|
13521 |
0 |
BKN-F8J023BT04-BLK.jpg |
372 |
372 |
N |
11560 |
6143 |
product |
13522 |
M |
0 |
|
13522 |
0 |
BKN-F7U034DR04-SLV.jpeg |
1000 |
1000 |
N |
11561 |
6142 |
product |
13523 |
M |
0 |
|
13523 |
0 |
BKN-F7U032BT04-BLK.jpeg |
372 |
371 |
N |
11562 |
6141 |
product |
13524 |
M |
0 |
|
13524 |
0 |
BKN-F8J144BT04-BLK_8bdfb25b-2c7d-4fa0-82bf-021c0c423a86.jpg |
385 |
385 |
N |
11563 |
6146 |
product |
13525 |
M |
0 |
|
13525 |
0 |
BKN-F8J144BT04-C00.jpg |
300 |
400 |
N |
11564 |
6147 |
product |
13526 |
M |
0 |
|
13526 |
0 |
BKN-F8J147BT04-BLK.jpg |
372 |
372 |
N |
11565 |
6148 |
product |
13527 |
M |
0 |
|
13527 |
0 |
BKN-F8J147BT04-BLU.jpg |
372 |
372 |
N |
11566 |
6149 |
product |
13528 |
M |
0 |
|
13528 |
0 |
BKN-F8J147BT04-WHT.jpg |
372 |
372 |
N |
11567 |
6150 |
product |
13529 |
M |
0 |
|
13529 |
0 |
BKN-F8J207BT04-BLK_LS.jpg |
800 |
800 |
N |
11568 |
6151 |
product |
13530 |
M |
0 |
|
13530 |
0 |
BKN-F8J207BT04-C00_LS.jpg |
800 |
800 |
N |
11569 |
6152 |
product |
13531 |
M |
0 |
|
13531 |
0 |
2_fsum-p8.jpg |
640 |
626 |
N |
82863 |
6145 |
product |
84806 |
M |
0 |
|
84806 |
0 |
2_d605-ov.jpg |
640 |
626 |
N |
83059 |
6140 |
product |
85002 |
M |
0 |
|
85002 |