Query time 0.00099
JSON explain
{
"query_block": {
"select_id": 1,
"cost_info": {
"query_cost": "188.81"
},
"ordering_operation": {
"using_filesort": true,
"cost_info": {
"sort_cost": "36.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": 36,
"rows_produced_per_join": 36,
"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 ('30255','30256','30257','30258','30259','30260','30261','30262','30263','30264','30265','30266','30267','30268','30269','30270')))",
"cost_info": {
"read_cost": "59.21",
"eval_cost": "7.20",
"prefix_cost": "66.41",
"data_read_per_join": "3K"
},
"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": 36,
"filtered": "100.00",
"cost_info": {
"read_cost": "36.00",
"eval_cost": "7.20",
"prefix_cost": "109.61",
"data_read_per_join": "27K"
},
"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": 36,
"filtered": "100.00",
"cost_info": {
"read_cost": "36.00",
"eval_cost": "7.20",
"prefix_cost": "152.81",
"data_read_per_join": "21K"
},
"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 |
815SJScmpAL._SY445_.jpg |
297 |
445 |
N |
49043 |
30270 |
product |
51004 |
M |
0 |
|
51004 |
0 |
81U1jpTtVQL._SX385_.jpg |
385 |
385 |
N |
49045 |
30269 |
product |
51006 |
M |
0 |
|
51006 |
0 |
71Llx1LymkL._SX385_.jpg |
385 |
385 |
N |
49047 |
30268 |
product |
51008 |
M |
0 |
|
51008 |
0 |
61zEU8-W0qL._SY445_.jpg |
334 |
445 |
N |
49048 |
30267 |
product |
51009 |
M |
0 |
|
51009 |
0 |
61F9mOJHlRL._SY445_.jpg |
334 |
445 |
N |
49049 |
30266 |
product |
51010 |
M |
0 |
|
51010 |
0 |
71ulUxgLBkL._SX385_.jpg |
385 |
385 |
N |
49050 |
30265 |
product |
51011 |
M |
0 |
|
51011 |
0 |
81VrAnft63L._SY445_.jpg |
297 |
445 |
N |
49052 |
30264 |
product |
51013 |
M |
0 |
|
51013 |
0 |
41IC0X5GTmL._SX342_.jpg |
342 |
342 |
N |
49053 |
30263 |
product |
51014 |
M |
0 |
|
51014 |
0 |
81zGXnvxkpL._SY445_.jpg |
297 |
445 |
N |
49054 |
30262 |
product |
51015 |
M |
0 |
|
51015 |
0 |
81HskW_ra4L._SY445_.jpg |
297 |
445 |
N |
49056 |
30261 |
product |
51017 |
M |
0 |
|
51017 |
0 |
41AjHlWxo7L._SX342_.jpg |
342 |
342 |
N |
49057 |
30260 |
product |
51018 |
M |
0 |
|
51018 |
0 |
81Iv8ukAyoL._SY445_.jpg |
297 |
445 |
N |
49059 |
30259 |
product |
51020 |
M |
0 |
|
51020 |
0 |
61eD46Go1FL._SY445__7z96-fy.jpg |
334 |
445 |
N |
49060 |
30258 |
product |
51021 |
M |
0 |
|
51021 |
0 |
61F9mOJHlRL._SY445__2ss6-ha.jpg |
334 |
445 |
N |
49061 |
30257 |
product |
51022 |
M |
0 |
|
51022 |
0 |
612O89JNtqL._SY445_.jpg |
334 |
445 |
N |
49062 |
30256 |
product |
51023 |
M |
0 |
|
51023 |
0 |
61mIWgmf6EL._SY445_.jpg |
334 |
445 |
N |
49064 |
30255 |
product |
51025 |
M |
0 |
|
51025 |