Query time 0.00119
JSON explain
{
"query_block": {
"select_id": 1,
"cost_info": {
"query_cost": "131.21"
},
"ordering_operation": {
"using_filesort": true,
"cost_info": {
"sort_cost": "24.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": 24,
"rows_produced_per_join": 24,
"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 ('30912','30913','30914','30915','30916','30917','30918','30919','30920','30921','30922','30923','30924','30925','30926','30927')))",
"cost_info": {
"read_cost": "44.81",
"eval_cost": "4.80",
"prefix_cost": "49.61",
"data_read_per_join": "2K"
},
"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": 24,
"filtered": "100.00",
"cost_info": {
"read_cost": "24.00",
"eval_cost": "4.80",
"prefix_cost": "78.41",
"data_read_per_join": "18K"
},
"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": 24,
"filtered": "100.00",
"cost_info": {
"read_cost": "24.00",
"eval_cost": "4.80",
"prefix_cost": "107.21",
"data_read_per_join": "14K"
},
"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 |
61yzR0PR2lL._SL1000_.jpg |
1000 |
1000 |
N |
48942 |
30927 |
product |
50903 |
M |
0 |
|
50903 |
0 |
811f-zCm24L._SL1000_.jpg |
1000 |
1000 |
N |
48943 |
30926 |
product |
50904 |
M |
0 |
|
50904 |
0 |
61kk3fYFt4L._SL1000_.jpg |
1000 |
1000 |
N |
48944 |
30925 |
product |
50905 |
M |
0 |
|
50905 |
0 |
71hhxQaDpGL._SL1024_.jpg |
1024 |
1024 |
N |
48946 |
30924 |
product |
50907 |
M |
0 |
|
50907 |
0 |
61PLpae039L._SL1000_.jpg |
1000 |
1000 |
N |
48948 |
30923 |
product |
50909 |
M |
0 |
|
50909 |
0 |
51jWQZPizNL._SL1488_.jpg |
1488 |
885 |
N |
48951 |
30922 |
product |
50912 |
M |
0 |
|
50912 |
0 |
412Y2hPv1qL.jpg |
500 |
477 |
N |
48956 |
30919 |
product |
50917 |
M |
0 |
|
50917 |
0 |
61zn8UJSslL._SL1000_.jpg |
1000 |
1000 |
N |
48958 |
30918 |
product |
50919 |
M |
0 |
|
50919 |
0 |
61gJ3VjM8UL._SL1000_.jpg |
1000 |
1000 |
N |
48969 |
30917 |
product |
50930 |
M |
0 |
|
50930 |
0 |
61dg-FFXAVL._SL1000_.jpg |
1000 |
1000 |
N |
48971 |
30915 |
product |
50932 |
M |
0 |
|
50932 |
0 |
51r3rv3S0IL._SL1024_.jpg |
1024 |
1024 |
N |
48972 |
30914 |
product |
50933 |
M |
0 |
|
50933 |
0 |
61_SZr6V9GL._SL1000_.jpg |
1000 |
1000 |
N |
48975 |
30913 |
product |
50936 |
M |
0 |
|
50936 |
0 |
515KLhX1oaL.jpg |
500 |
500 |
N |
48977 |
30912 |
product |
50938 |
M |
0 |
|
50938 |
0 |
2_92sz-b6.jpg |
640 |
626 |
N |
81744 |
30921 |
product |
83687 |
M |
0 |
|
83687 |
0 |
2_be8u-tf.jpg |
640 |
626 |
N |
81829 |
30920 |
product |
83772 |
M |
0 |
|
83772 |
0 |
2_65k3-08.jpg |
640 |
626 |
N |
82545 |
30916 |
product |
84488 |
M |
0 |
|
84488 |