Query time 0.00128
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 ('6934','6935','6936','6937','6938','6939','6940','6941','6942','6943','6944','6945','6946','6947','6948','6949')))",
"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 |
image_7jlt-jm.jpg |
2512 |
1931 |
N |
13841 |
6934 |
product |
15803 |
M |
0 |
|
15803 |
0 |
s-l300_ld5t-fp.jpg |
300 |
300 |
N |
13845 |
6935 |
product |
15807 |
M |
0 |
|
15807 |
0 |
a9d501770cf84bf2afd5c1b840af5a32.jpg |
500 |
500 |
N |
13848 |
6936 |
product |
15810 |
M |
0 |
|
15810 |
0 |
item_XL_23332871_33181636.jpg |
560 |
450 |
N |
13849 |
6937 |
product |
15811 |
M |
0 |
|
15811 |
0 |
e3910c53-a162-49ac-80f1-065369a33522_1.ab6bd7b8ed6d941b09a001c2df2526a3.jpeg |
500 |
500 |
N |
13852 |
6938 |
product |
15814 |
M |
0 |
|
15814 |
0 |
51aZ8jc-nTL.jpg |
500 |
375 |
N |
13853 |
6939 |
product |
15815 |
M |
0 |
|
15815 |
0 |
s-l300_vx8h-hu.jpg |
300 |
300 |
N |
13855 |
6940 |
product |
15817 |
M |
0 |
|
15817 |
0 |
s-l300_3c5a-6m.jpg |
300 |
300 |
N |
13857 |
6941 |
product |
15819 |
M |
0 |
|
15819 |
0 |
https-__cdn.shopify.com_s_files_1_0009_5354_8852_products_b1_a859e3d4-1a9a-4b4d-bf1a-1dd9663034e2.jpg |
516 |
500 |
N |
15130 |
6943 |
product |
17092 |
M |
0 |
|
17092 |
0 |
https-__cdn.shopify.com_s_files_1_0009_5354_8852_products_CL-LAPS113PEA.jpg |
436 |
500 |
N |
15132 |
6944 |
product |
17094 |
M |
0 |
|
17094 |
0 |
https-__cdn.shopify.com_s_files_1_0009_5354_8852_products_C1_38a6b4e9-d14a-426b-8212-f60e4e0d269f.jpg |
500 |
500 |
N |
15135 |
6945 |
product |
17097 |
M |
0 |
|
17097 |
0 |
CL-QNS113K_1_ed8de845-30ae-4983-a109-20fff9f095b7.jpg |
415 |
500 |
N |
15137 |
6946 |
product |
17099 |
M |
0 |
|
17099 |
0 |
https-__cdn.shopify.com_s_files_1_0009_5354_8852_products_CL-QNS113K_1.jpg |
415 |
500 |
N |
15138 |
6947 |
product |
17100 |
M |
0 |
|
17100 |
0 |
https-__cdn.shopify.com_s_files_1_0009_5354_8852_products_CL-SLRC200_2.jpg |
500 |
500 |
N |
15140 |
6948 |
product |
17102 |
M |
0 |
|
17102 |
0 |
https-__cdn.shopify.com_s_files_1_0009_5354_8852_products_0046_CL-SLRC202_1.jpg |
800 |
800 |
N |
15142 |
6949 |
product |
17104 |
M |
0 |
|
17104 |
0 |
58122531384e1f2fb7258412.jpg |
500 |
360 |
N |
13859 |
6942 |
product |
15821 |
M |
1 |
|
15821 |