Query time 0.00069
JSON explain
{
"query_block": {
"select_id": 1,
"cost_info": {
"query_cost": "40.61"
},
"ordering_operation": {
"using_filesort": true,
"cost_info": {
"sort_cost": "7.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": 7,
"rows_produced_per_join": 7,
"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 ('50214','50215','50216','45840','50264','50265','50266')))",
"cost_info": {
"read_cost": "15.41",
"eval_cost": "1.40",
"prefix_cost": "16.81",
"data_read_per_join": "672"
},
"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": 7,
"filtered": "100.00",
"cost_info": {
"read_cost": "7.00",
"eval_cost": "1.40",
"prefix_cost": "25.21",
"data_read_per_join": "5K"
},
"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": 7,
"filtered": "100.00",
"cost_info": {
"read_cost": "7.00",
"eval_cost": "1.40",
"prefix_cost": "33.61",
"data_read_per_join": "4K"
},
"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 |
61VMJ7TZbLL._AC_SL1500_.jpg |
609 |
1500 |
N |
81114 |
50214 |
product |
83057 |
M |
0 |
|
83057 |
0 |
611M8RL1OlL._AC_SL1500_.jpg |
593 |
1500 |
N |
81119 |
50215 |
product |
83062 |
M |
0 |
|
83062 |
0 |
51d0vSjhfUL._AC_SL1500_.jpg |
586 |
1500 |
N |
81121 |
50216 |
product |
83064 |
M |
0 |
|
83064 |
0 |
41Ion_5pFlL._AC_SY450_.jpg |
450 |
450 |
N |
81685 |
50264 |
product |
83628 |
M |
0 |
|
83628 |
0 |
41UEM1BGFPL._AC_SY450_.jpg |
374 |
450 |
N |
81687 |
50265 |
product |
83630 |
M |
0 |
|
83630 |
0 |
71Ys__sB7qL._AC_SL1500_.jpg |
1363 |
1284 |
N |
81689 |
50266 |
product |
83632 |
M |
0 |
|
83632 |
0 |
41QJz_iOmKL._AC_.jpg |
498 |
442 |
N |
85896 |
45840 |
product |
83626 |
M |
0 |
|
83626 |