Query time 0.00112
JSON explain
{
"query_block": {
"select_id": 1,
"cost_info": {
"query_cost": "92.81"
},
"ordering_operation": {
"using_filesort": true,
"cost_info": {
"sort_cost": "16.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": 16,
"rows_produced_per_join": 16,
"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 ('2871','2872','2873','2874','2875','2876','2877','2878','2879','2880','2717','2718','2719','2720','2721','2722')))",
"cost_info": {
"read_cost": "35.21",
"eval_cost": "3.20",
"prefix_cost": "38.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": 16,
"filtered": "100.00",
"cost_info": {
"read_cost": "16.00",
"eval_cost": "3.20",
"prefix_cost": "57.61",
"data_read_per_join": "12K"
},
"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": 16,
"filtered": "100.00",
"cost_info": {
"read_cost": "16.00",
"eval_cost": "3.20",
"prefix_cost": "76.81",
"data_read_per_join": "9K"
},
"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 |
mcreedaventus3.3edps.jpg |
500 |
500 |
N |
6058 |
2717 |
product |
8029 |
M |
0 |
|
8029 |
0 |
51-KW1satuL.jpg |
500 |
500 |
N |
6060 |
2718 |
product |
8031 |
M |
0 |
|
8031 |
0 |
3508440505118.jpg |
1500 |
1500 |
N |
6061 |
2719 |
product |
8032 |
M |
0 |
|
8032 |
0 |
461c2a14-0796-4e7e-aa6b-d83e4e9ee827.jpg |
1700 |
1700 |
N |
6062 |
2720 |
product |
8033 |
M |
0 |
|
8033 |
0 |
297566.jpg |
2000 |
2000 |
N |
6064 |
2721 |
product |
8035 |
M |
0 |
|
8035 |
0 |
creed-les_royales_exclusives_jardin_d__039_amalfi_eau_de_parfum_75ml-1-768_1024_75-6973198_1.jpg |
768 |
1024 |
N |
6065 |
2722 |
product |
8036 |
M |
0 |
|
8036 |
0 |
item_XL_45124936_c03364f50e45f.jpg |
600 |
483 |
N |
6302 |
2871 |
product |
8270 |
M |
0 |
|
8270 |
0 |
PRADA65055934.jpg |
500 |
500 |
N |
6303 |
2872 |
product |
8271 |
M |
0 |
|
8271 |
0 |
white.jpg |
400 |
400 |
N |
6304 |
2873 |
product |
8272 |
M |
0 |
|
8272 |
0 |
PRADA65106677.jpg |
500 |
402 |
N |
6305 |
2874 |
product |
8273 |
M |
0 |
|
8273 |
0 |
white_ofpv-aa.jpg |
400 |
400 |
N |
6306 |
2875 |
product |
8274 |
M |
0 |
|
8274 |
0 |
PRADA65096853.jpg |
357 |
500 |
N |
6307 |
2876 |
product |
8275 |
M |
0 |
|
8275 |
0 |
PRADA65021558.jpg |
450 |
500 |
N |
6308 |
2877 |
product |
8276 |
M |
0 |
|
8276 |
0 |
PRADA65105844.jpg |
494 |
500 |
N |
6309 |
2878 |
product |
8277 |
M |
0 |
|
8277 |
0 |
ebay.jpg |
600 |
600 |
N |
6310 |
2879 |
product |
8278 |
M |
0 |
|
8278 |
0 |
s-l1600_xsta-l6.jpg |
645 |
475 |
N |
6311 |
2880 |
product |
8279 |
M |
0 |
|
8279 |