Query time 0.00118
JSON explain
{
"query_block": {
"select_id": 1,
"cost_info": {
"query_cost": "246.41"
},
"ordering_operation": {
"using_filesort": true,
"cost_info": {
"sort_cost": "48.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": 48,
"rows_produced_per_join": 48,
"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 ('30191','30192','30193','30194','30195','30196','30197','30198','30199','30200','30201','30202','30203','30204','30205','30206')))",
"cost_info": {
"read_cost": "73.61",
"eval_cost": "9.60",
"prefix_cost": "83.21",
"data_read_per_join": "4K"
},
"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": 48,
"filtered": "100.00",
"cost_info": {
"read_cost": "48.00",
"eval_cost": "9.60",
"prefix_cost": "140.81",
"data_read_per_join": "36K"
},
"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": 48,
"filtered": "100.00",
"cost_info": {
"read_cost": "48.00",
"eval_cost": "9.60",
"prefix_cost": "198.41",
"data_read_per_join": "28K"
},
"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 |
41oiumgPLZL._AC_UL436_SEARCH212385_.jpg |
436 |
436 |
N |
48991 |
30191 |
product |
50952 |
M |
0 |
|
50952 |
0 |
81r1MYH-0eL._AC_UL436_SEARCH212385_.jpg |
291 |
436 |
N |
48992 |
30192 |
product |
50953 |
M |
0 |
|
50953 |
0 |
61Dnb1Qw8IL._AC_UL436_SEARCH212385_.jpg |
298 |
436 |
N |
48993 |
30193 |
product |
50954 |
M |
0 |
|
50954 |
0 |
61Dnb1Qw8IL._AC_UL436_SEARCH212385__qa9m-in.jpg |
298 |
436 |
N |
48994 |
30193 |
product |
50955 |
M |
0 |
|
50955 |
0 |
61-om0m9UML._AC_UL436_SEARCH212385_.jpg |
298 |
436 |
N |
48995 |
30194 |
product |
50956 |
M |
0 |
|
50956 |
0 |
71uyr366E5L._AC_UL320__g2nu-bf.jpg |
123 |
320 |
N |
48996 |
30195 |
product |
50957 |
M |
0 |
|
50957 |
0 |
71sWmEsboLL._AC_UL436_SEARCH212385_.jpg |
310 |
436 |
N |
48997 |
30196 |
product |
50958 |
M |
0 |
|
50958 |
0 |
71sWmEsboLL._AC_UL436_SEARCH212385__mpvt-59.jpg |
310 |
436 |
N |
48998 |
30197 |
product |
50959 |
M |
0 |
|
50959 |
0 |
61m304NWgFL._AC_UL436_SEARCH212385_.jpg |
298 |
436 |
N |
48999 |
30198 |
product |
50960 |
M |
0 |
|
50960 |
0 |
51_OjpMmJmL._AC_UL436_SEARCH212385_.jpg |
115 |
436 |
N |
49000 |
30199 |
product |
50961 |
M |
0 |
|
50961 |
0 |
71bYIm1zJgL._SX385__fyo1-vr.jpg |
385 |
385 |
N |
49132 |
30206 |
product |
51093 |
M |
0 |
|
51093 |
0 |
41AjHlWxo7L._SX342__rk6j-mn.jpg |
342 |
342 |
N |
49135 |
30205 |
product |
51096 |
M |
0 |
|
51096 |
0 |
71jFdo8pq8L._SX385_.jpg |
385 |
385 |
N |
49137 |
30204 |
product |
51098 |
M |
0 |
|
51098 |
0 |
61zB7uVxU1L._SX385_.jpg |
385 |
385 |
N |
49138 |
30203 |
product |
51099 |
M |
0 |
|
51099 |
0 |
61W3QsvAA7L._SX385_.jpg |
385 |
385 |
N |
49140 |
30202 |
product |
51101 |
M |
0 |
|
51101 |
0 |
61zB7uVxU1L._SX385__uo6y-jt.jpg |
385 |
385 |
N |
49141 |
30201 |
product |
51102 |
M |
0 |
|
51102 |
0 |
71srusStg7L._SX385__tgl8-w3.jpg |
385 |
385 |
N |
49142 |
30200 |
product |
51103 |
M |
0 |
|
51103 |