Query time 0.00105
JSON explain
{
"query_block": {
"select_id": 1,
"cost_info": {
"query_cost": "121.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` = 'A') and (`portal`.`q_images_links`.`object_id` in ('45974','45975','45976','45977','45978','45982')))",
"cost_info": {
"read_cost": "34.81",
"eval_cost": "4.80",
"prefix_cost": "39.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": "68.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": "97.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 |
41fJrOzrxNL._AC_.jpg |
476 |
299 |
N |
75780 |
45974 |
product |
77723 |
A |
1 |
|
77723 |
0 |
41fJrOzrxNL._AC__ewfm-cf.jpg |
476 |
299 |
N |
75783 |
45974 |
product |
77726 |
A |
1 |
|
77726 |
0 |
41Q0bI1BtWL._AC_.jpg |
428 |
434 |
N |
75785 |
45975 |
product |
77728 |
A |
1 |
|
77728 |
0 |
41GaAZpWAnL._AC_.jpg |
468 |
363 |
N |
75789 |
45976 |
product |
77732 |
A |
1 |
|
77732 |
0 |
41GaAZpWAnL._AC__w6wl-cc.jpg |
468 |
363 |
N |
75794 |
45976 |
product |
77737 |
A |
1 |
|
77737 |
0 |
31NNrhStxhL._AC_.jpg |
468 |
345 |
N |
75799 |
45977 |
product |
77742 |
A |
1 |
|
77742 |
0 |
31TQAWmrMmL._AC_.jpg |
476 |
206 |
N |
75802 |
45978 |
product |
77745 |
A |
1 |
|
77745 |
0 |
31TQAWmrMmL._AC__45ll-4k.jpg |
476 |
206 |
N |
75805 |
45978 |
product |
77748 |
A |
1 |
|
77748 |
0 |
N12834347A_2.jpg |
800 |
1091 |
N |
75828 |
45982 |
product |
77771 |
A |
1 |
|
77771 |
0 |
N12834347A_2_1z0v-mq.jpg |
800 |
1091 |
N |
75831 |
45982 |
product |
77774 |
A |
1 |
|
77774 |
0 |
41_kLHokb8L._AC_.jpg |
418 |
494 |
N |
75781 |
45974 |
product |
77724 |
A |
2 |
|
77724 |
0 |
41_kLHokb8L._AC__1j95-2x.jpg |
418 |
494 |
N |
75784 |
45974 |
product |
77727 |
A |
2 |
|
77727 |
0 |
415Ie1ZP0kL._AC_.jpg |
404 |
468 |
N |
75786 |
45975 |
product |
77729 |
A |
2 |
|
77729 |
0 |
311aWppCe3L._AC_.jpg |
398 |
487 |
N |
75790 |
45976 |
product |
77733 |
A |
2 |
|
77733 |
0 |
311aWppCe3L._AC__s1xn-a3.jpg |
398 |
487 |
N |
75795 |
45976 |
product |
77738 |
A |
2 |
|
77738 |
0 |
41_BHCmPXFL._AC_.jpg |
412 |
482 |
N |
75800 |
45977 |
product |
77743 |
A |
2 |
|
77743 |
0 |
41s8FSAdlAL._AC_.jpg |
379 |
498 |
N |
75803 |
45978 |
product |
77746 |
A |
2 |
|
77746 |
0 |
41s8FSAdlAL._AC__qizo-mn.jpg |
379 |
498 |
N |
75806 |
45978 |
product |
77749 |
A |
2 |
|
77749 |
0 |
N12834347A_7.jpg |
800 |
1091 |
N |
75829 |
45982 |
product |
77772 |
A |
2 |
|
77772 |
0 |
N12834347A_7_owp7-kb.jpg |
800 |
1091 |
N |
75832 |
45982 |
product |
77775 |
A |
2 |
|
77775 |
0 |
41gfUKJqOEL._AC_.jpg |
237 |
460 |
N |
75787 |
45975 |
product |
77730 |
A |
3 |
|
77730 |
0 |
41XTJQbb2GL._AC_.jpg |
466 |
454 |
N |
75791 |
45976 |
product |
77734 |
A |
3 |
|
77734 |
0 |
41XTJQbb2GL._AC__2x6x-mi.jpg |
466 |
454 |
N |
75796 |
45976 |
product |
77739 |
A |
3 |
|
77739 |
0 |
41JKIZcSTNL._AC_.jpg |
498 |
500 |
N |
75792 |
45976 |
product |
77735 |
A |
4 |
|
77735 |
0 |
41JKIZcSTNL._AC__xbfq-a6.jpg |
498 |
500 |
N |
75797 |
45976 |
product |
77740 |
A |
4 |
|
77740 |