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 ('6121','6122','6123','6124','6125','6126','6127','6128','6129','6130','6131','6132','6133','6134','6135','6136')))",
"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-A3L981BT05MBKHS__1_.jpg |
238 |
387 |
N |
11538 |
6121 |
product |
13500 |
M |
0 |
|
13500 |
0 |
BKN-AV10126CW06-BLK_LS.jpg |
800 |
800 |
N |
11539 |
6122 |
product |
13501 |
M |
0 |
|
13501 |
0 |
BKN-AV10128CW03-BLK.jpeg |
372 |
372 |
N |
11540 |
6123 |
product |
13502 |
M |
0 |
|
13502 |
0 |
BKN-AV10128CW03-WHT.jpeg |
372 |
372 |
N |
11541 |
6124 |
product |
13503 |
M |
0 |
|
13503 |
0 |
BKN-AV10164BT04-C00_661f5a4c-ff82-4c09-a9f2-b57dcdeec45c__1_.jpg |
372 |
372 |
N |
11542 |
6125 |
product |
13504 |
M |
0 |
|
13504 |
0 |
BKN-AV10164BT04-GLD_feb819d0-f663-4e1f-b24e-128d1b4ce393.jpg |
372 |
372 |
N |
11543 |
6126 |
product |
13505 |
M |
0 |
|
13505 |
0 |
BKN-AV10175BT2M-BLK.jpeg |
372 |
372 |
N |
11544 |
6127 |
product |
13506 |
M |
0 |
|
13506 |
0 |
BKN-F2CD080BT06_1.jpg |
372 |
372 |
N |
11545 |
6128 |
product |
13507 |
M |
0 |
|
13507 |
0 |
BKN-F2CU012BT2M-BLK_1_9a761f86-aad6-4cb5-9585-12786a2ff276__1_.jpg |
372 |
372 |
N |
11546 |
6129 |
product |
13508 |
M |
0 |
|
13508 |
0 |
BKN-F2CU012BT2M-WHT__1_.jpeg |
372 |
372 |
N |
11547 |
6130 |
product |
13509 |
M |
0 |
|
13509 |
0 |
BKN-F2CU021BT04-BLK__1_.jpg |
372 |
372 |
N |
11548 |
6131 |
product |
13510 |
M |
0 |
|
13510 |
0 |
BKN-F2CU021BT04-C00_ac72bf22-7009-4fae-a966-7a9b576ef938__1_.jpg |
372 |
372 |
N |
11549 |
6132 |
product |
13511 |
M |
0 |
|
13511 |
0 |
https-__cdn.shopify.com_s_files_1_0009_5354_8852_products_BKN-F3Y017BT1.5MBLK.jpg |
437 |
704 |
N |
11551 |
6136 |
product |
13513 |
M |
0 |
|
13513 |
0 |
BKN-F2CU050BT04-SLV.jpeg |
1000 |
1000 |
N |
11552 |
6135 |
product |
13514 |
M |
0 |
|
13514 |
0 |
BKN-F2CU021BT04-GRY_6dc622a4-3403-4630-a93f-767e237ada4c.jpg |
372 |
372 |
N |
11553 |
6134 |
product |
13515 |
M |
0 |
|
13515 |
0 |
BKN-F2CU021BT04-GLD_86dcd555-eb23-4374-8039-9031e6606fa6.jpg |
372 |
372 |
N |
11554 |
6133 |
product |
13516 |
M |
0 |
|
13516 |