Query time 0.00115
JSON explain
{
"query_block": {
"select_id": 1,
"cost_info": {
"query_cost": "203.21"
},
"ordering_operation": {
"using_filesort": true,
"cost_info": {
"sort_cost": "39.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": 39,
"rows_produced_per_join": 39,
"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 ('38210','38212','38213','38214','38215','38216','38217','38218','38219','38220','38221','38222','38223','38224','38225','35122')))",
"cost_info": {
"read_cost": "62.81",
"eval_cost": "7.80",
"prefix_cost": "70.61",
"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": 39,
"filtered": "100.00",
"cost_info": {
"read_cost": "39.00",
"eval_cost": "7.80",
"prefix_cost": "117.41",
"data_read_per_join": "29K"
},
"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": 39,
"filtered": "100.00",
"cost_info": {
"read_cost": "39.00",
"eval_cost": "7.80",
"prefix_cost": "164.21",
"data_read_per_join": "23K"
},
"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 |
chloe.jpg |
425 |
527 |
N |
56617 |
35122 |
product |
58578 |
M |
0 |
|
58578 |
0 |
71v1NqCH3yL._SL1500_.jpg |
1500 |
1500 |
N |
62548 |
38219 |
product |
64504 |
M |
0 |
|
64504 |
0 |
417531f72ae585f3824f873782b46b7f.png |
280 |
280 |
N |
62549 |
38218 |
product |
64505 |
M |
0 |
|
64505 |
0 |
9fa64afa1e317f8d3dd784b7fb895f9d.png |
280 |
280 |
N |
62550 |
38217 |
product |
64506 |
M |
0 |
|
64506 |
0 |
375x500.36806.jpg |
375 |
500 |
N |
62552 |
38216 |
product |
64508 |
M |
0 |
|
64508 |
0 |
057ac4b9e979855ab04ff019310bd8f8.JPG |
280 |
280 |
N |
62560 |
38215 |
product |
64516 |
M |
0 |
|
64516 |
0 |
8e7c47e6663d4053178ef096c89eac4b.png |
280 |
280 |
N |
62564 |
38214 |
product |
64520 |
M |
0 |
|
64520 |
0 |
9a5384176d594b6cc2b88a5b7808fb65.jpg |
280 |
280 |
N |
62567 |
38213 |
product |
64523 |
M |
0 |
|
64523 |
0 |
9d8117a8ea88f6f520d1a1650f95be1c.jpg |
280 |
280 |
N |
62568 |
38212 |
product |
64524 |
M |
0 |
|
64524 |
0 |
f57ecf4ec3db2f720003787d4261bfa1.png |
280 |
280 |
N |
62571 |
38210 |
product |
64527 |
M |
0 |
|
64527 |
0 |
a179078631c39c0ec81f5d5b3e7faf7d_cqxn-bc.png |
280 |
280 |
N |
65104 |
38222 |
product |
67055 |
M |
0 |
|
67055 |
0 |
3346470137103_G013710_MON_G_19_FDM_COF_EDP_100ML_L-C_75_EDP_10_110_ML_a_1.png |
655 |
655 |
N |
65106 |
38223 |
product |
67057 |
M |
0 |
|
67057 |
0 |
85455_new.jpg |
1200 |
1200 |
N |
65108 |
38224 |
product |
67059 |
M |
0 |
|
67059 |
0 |
s-l1600_vpo5-sp.jpg |
1600 |
1200 |
N |
65330 |
38221 |
product |
67281 |
M |
0 |
|
67281 |
0 |
af60ec9ebb12d7946529c4ef3e7e2fb8.png |
280 |
280 |
N |
65331 |
38225 |
product |
67282 |
M |
0 |
|
67282 |
0 |
carrera-master-bath-collection-m-edt-100ml200ml-asb200ml-sg-set.jpg |
800 |
800 |
N |
67601 |
38220 |
product |
69552 |
M |
0 |
|
69552 |
0 |
2_shai-vr.jpg |
640 |
626 |
N |
83024 |
38222 |
product |
84967 |
M |
0 |
|
84967 |