Query time 0.00150
JSON explain
{
"query_block": {
"select_id": 1,
"cost_info": {
"query_cost": "116.81"
},
"ordering_operation": {
"using_filesort": true,
"cost_info": {
"sort_cost": "21.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": 21,
"rows_produced_per_join": 21,
"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 ('9565','9566','9567','9568','9569','9570','9571','9572','9573','9574','9575','9576','9577','9578','9579','9580')))",
"cost_info": {
"read_cost": "41.21",
"eval_cost": "4.20",
"prefix_cost": "45.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": 21,
"filtered": "100.00",
"cost_info": {
"read_cost": "21.00",
"eval_cost": "4.20",
"prefix_cost": "70.61",
"data_read_per_join": "16K"
},
"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": 21,
"filtered": "100.00",
"cost_info": {
"read_cost": "21.00",
"eval_cost": "4.20",
"prefix_cost": "95.81",
"data_read_per_join": "12K"
},
"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 |
iring-l52-ft1_72692_1.gif |
379 |
379 |
N |
26045 |
9566 |
product |
28007 |
A |
1 |
|
28007 |
0 |
she-iring-l52-tb1-iring-premium-disney-art-in-tinker-bell-1525586823.jpg |
60 |
70 |
N |
26047 |
9568 |
product |
28009 |
A |
1 |
|
28009 |
0 |
IM-DTS1_1024x.png |
1024 |
978 |
N |
26048 |
9569 |
product |
28010 |
A |
1 |
|
28010 |
0 |
719i5uQtkIL._SL1500_.jpg |
1500 |
1500 |
N |
26060 |
9576 |
product |
28022 |
A |
1 |
|
28022 |
0 |
gt-pov-standmodeandroid-case.jpg |
150 |
150 |
N |
26063 |
9577 |
product |
28025 |
A |
1 |
|
28025 |
0 |
1489464121000_IMG_759422.jpg |
500 |
500 |
N |
26067 |
9578 |
product |
28029 |
A |
1 |
|
28029 |
0 |
21I1-LNOnnL.jpg |
300 |
300 |
N |
26070 |
9579 |
product |
28032 |
A |
1 |
|
28032 |
0 |
UAE_2048x.jpg |
302 |
383 |
N |
26081 |
9572 |
product |
28043 |
A |
1 |
|
28043 |
0 |
61WUW1AacOL._SL1500_.jpg |
1500 |
1500 |
N |
26082 |
9573 |
product |
28044 |
A |
1 |
|
28044 |
0 |
IM-DMC1_1024x.png |
1024 |
978 |
N |
26046 |
9567 |
product |
28008 |
A |
2 |
|
28008 |
0 |
71rTheFTaCL._SL1500_.jpg |
1500 |
1500 |
N |
26061 |
9576 |
product |
28023 |
A |
2 |
|
28023 |
0 |
pov-photo-mode-lefthand.jpg |
150 |
150 |
N |
26064 |
9577 |
product |
28026 |
A |
2 |
|
28026 |
0 |
1489464121000_IMG_759423.jpg |
500 |
500 |
N |
26068 |
9578 |
product |
28030 |
A |
2 |
|
28030 |
0 |
61bL1_xMYIL._SL1200_.jpg |
1200 |
1096 |
N |
26071 |
9579 |
product |
28033 |
A |
2 |
|
28033 |
0 |
21iDHyfnHOL.jpg |
500 |
333 |
N |
26072 |
9580 |
product |
28034 |
A |
2 |
|
28034 |
0 |
91oWzRkduJL._SL1500_.jpg |
1500 |
1500 |
N |
26083 |
9573 |
product |
28045 |
A |
2 |
|
28045 |
0 |
81ABqYzSbPL._SL1500_.jpg |
1500 |
1500 |
N |
26062 |
9576 |
product |
28024 |
A |
3 |
|
28024 |
0 |
gt-pov-photomodeandroid.jpg |
150 |
150 |
N |
26065 |
9577 |
product |
28027 |
A |
3 |
|
28027 |
0 |
1489464121000_IMG_759424.jpg |
500 |
500 |
N |
26069 |
9578 |
product |
28031 |
A |
3 |
|
28031 |
0 |
action-video-mounts-tripods-gp2c-action-tripod-product-hero-jb01300-bww.jpg |
700 |
700 |
N |
26052 |
9574 |
product |
28014 |
A |
4 |
|
28014 |
0 |
61MO7y2RSRL._SL1295_.jpg |
1123 |
1295 |
N |
26057 |
9575 |
product |
28019 |
A |
4 |
|
28019 |
0 |
gt-pov-videomodeandroid-case.jpg |
150 |
150 |
N |
26066 |
9577 |
product |
28028 |
A |
4 |
|
28028 |
0 |
GorillaPod_ActionTripod_hotpoints.jpg |
650 |
650 |
N |
26053 |
9574 |
product |
28015 |
A |
5 |
|
28015 |
0 |
61kCG4TQ43L._SL1500_.jpg |
1500 |
1077 |
N |
26058 |
9575 |
product |
28020 |
A |
5 |
|
28020 |
0 |
61oxfBBMo6L._SL1476_.jpg |
1414 |
1476 |
N |
26059 |
9575 |
product |
28021 |
A |
6 |
|
28021 |