Query time 0.00105
JSON explain
{
"query_block": {
"select_id": 1,
"cost_info": {
"query_cost": "63.81"
},
"ordering_operation": {
"using_filesort": true,
"cost_info": {
"sort_cost": "11.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": 11,
"rows_produced_per_join": 11,
"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 ('8195','3781','3782','3783','3784','3773','3774','3775','3776','3777','3778')))",
"cost_info": {
"read_cost": "24.21",
"eval_cost": "2.20",
"prefix_cost": "26.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": 11,
"filtered": "100.00",
"cost_info": {
"read_cost": "11.00",
"eval_cost": "2.20",
"prefix_cost": "39.61",
"data_read_per_join": "8K"
},
"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": 11,
"filtered": "100.00",
"cost_info": {
"read_cost": "11.00",
"eval_cost": "2.20",
"prefix_cost": "52.81",
"data_read_per_join": "6K"
},
"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 |
item_XL_23107672_32595538.jpg |
543 |
600 |
N |
8970 |
3773 |
product |
10935 |
M |
0 |
|
10935 |
0 |
item_XL_43456992_f38e53beb0f37.jpg |
600 |
352 |
N |
8981 |
3777 |
product |
10946 |
M |
0 |
|
10946 |
0 |
67bad081d7b443e0ab680cd7ddc531c7.jpg |
500 |
500 |
N |
9031 |
3781 |
product |
10996 |
M |
0 |
|
10996 |
0 |
ac0a96376ffe4688b77f78cfe1cad552.jpg |
500 |
500 |
N |
9035 |
3782 |
product |
11000 |
M |
0 |
|
11000 |
0 |
6d7f805348024bf89021ef2894f03795.jpg |
500 |
500 |
N |
9036 |
3783 |
product |
11001 |
M |
0 |
|
11001 |
0 |
148828e006054d19bbbbee45ef9a11fa.jpg |
500 |
500 |
N |
9038 |
3784 |
product |
11003 |
M |
0 |
|
11003 |
0 |
1111.jpg |
842 |
632 |
N |
16226 |
3778 |
product |
18188 |
M |
0 |
|
18188 |
0 |
111.jpg |
742 |
718 |
N |
16227 |
3776 |
product |
18189 |
M |
0 |
|
18189 |
0 |
41kvjHckIYL._SS160_.jpg |
160 |
160 |
N |
17085 |
8195 |
product |
19047 |
M |
0 |
|
19047 |
0 |
Rubik's_cube_Web.jpg |
640 |
626 |
N |
37438 |
3774 |
product |
39400 |
M |
0 |
|
39400 |
0 |
kids_lego_orhv-58.jpg |
640 |
626 |
N |
38748 |
3775 |
product |
40710 |
M |
0 |
|
40710 |