Query time 0.00120
JSON explain
{
"query_block": {
"select_id": 1,
"cost_info": {
"query_cost": "184.01"
},
"ordering_operation": {
"using_filesort": true,
"cost_info": {
"sort_cost": "35.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": 35,
"rows_produced_per_join": 35,
"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 ('36754','36758','36759','36760','36761','36762','36763','36764','36765','36766','36767','36768','36769','36770','36771','36772')))",
"cost_info": {
"read_cost": "58.01",
"eval_cost": "7.00",
"prefix_cost": "65.01",
"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": 35,
"filtered": "100.00",
"cost_info": {
"read_cost": "35.00",
"eval_cost": "7.00",
"prefix_cost": "107.01",
"data_read_per_join": "26K"
},
"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": 35,
"filtered": "100.00",
"cost_info": {
"read_cost": "35.00",
"eval_cost": "7.00",
"prefix_cost": "149.01",
"data_read_per_join": "20K"
},
"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 |
51-BvlF0DbL._SL1500_.jpg |
595 |
1500 |
N |
61859 |
36766 |
product |
63815 |
M |
0 |
|
63815 |
0 |
51j8BGrW43L._SL1500_.jpg |
1500 |
1412 |
N |
61861 |
36765 |
product |
63817 |
M |
0 |
|
63817 |
0 |
61EciMyeDgL._SL1200_.jpg |
1200 |
1200 |
N |
61862 |
36764 |
product |
63818 |
M |
0 |
|
63818 |
0 |
61AzNJxo7JL._SL1500_.jpg |
643 |
1500 |
N |
61864 |
36763 |
product |
63820 |
M |
0 |
|
63820 |
0 |
71FDkjMhbYL._SL1500_.jpg |
1500 |
1500 |
N |
61865 |
36762 |
product |
63821 |
M |
0 |
|
63821 |
0 |
71HJgaXnCpL._SL1500_.jpg |
1066 |
1500 |
N |
61867 |
36760 |
product |
63823 |
M |
0 |
|
63823 |
0 |
61BocKu0D4L._SL1200_.jpg |
1200 |
1200 |
N |
61868 |
36759 |
product |
63824 |
M |
0 |
|
63824 |
0 |
5107j-pXvcL._SL1282_.jpg |
1000 |
1282 |
N |
61870 |
36758 |
product |
63826 |
M |
0 |
|
63826 |
0 |
61GoI_7uoaL._SL1500_.jpg |
445 |
1500 |
N |
61875 |
36754 |
product |
63831 |
M |
0 |
|
63831 |
0 |
71nnwz0d4KL._SL1500_.jpg |
1500 |
1500 |
N |
61914 |
36772 |
product |
63870 |
M |
0 |
|
63870 |
0 |
41sOGkJs8mL.jpg |
500 |
500 |
N |
61915 |
36771 |
product |
63871 |
M |
0 |
|
63871 |
0 |
Hugo-Boss-Element-for-Men-Eau-de-Toilette-90ml-1000x1000.jpg |
1000 |
1000 |
N |
62020 |
36767 |
product |
63976 |
M |
0 |
|
63976 |
0 |
Hugo-Boss-Energise-for-Men-Eau-De-Toilette-125ml-550x550.jpg |
550 |
550 |
N |
62021 |
36768 |
product |
63977 |
M |
0 |
|
63977 |
0 |
81Pmcj9CP4L._SL1500_.jpg |
1500 |
1500 |
N |
62023 |
36770 |
product |
63979 |
M |
0 |
|
63979 |
0 |
aa9a47a8a14c4a65d1b85c947280609b.png |
280 |
280 |
N |
67709 |
36761 |
product |
69660 |
M |
0 |
|
69660 |
0 |
4_eflh-ty.jpg |
640 |
626 |
N |
79138 |
36769 |
product |
81081 |
M |
0 |
|
81081 |