Query time 0.00124
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 ('8653','8654','8655','8656','8657','8658','8659','8660','8661','8203','8204','8205','8207','8208','8209','8210')))",
"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 |
41Cza76kEML._SY450_.jpg |
450 |
450 |
N |
17119 |
8203 |
product |
19081 |
M |
0 |
|
19081 |
0 |
41NrWEz5UML._SY450_.jpg |
450 |
450 |
N |
17124 |
8204 |
product |
19086 |
M |
0 |
|
19086 |
0 |
41zqsUHqdnL._SY450_.jpg |
450 |
450 |
N |
17129 |
8205 |
product |
19091 |
M |
0 |
|
19091 |
0 |
41ANmJTRT2L._SY450_.jpg |
450 |
450 |
N |
17134 |
8207 |
product |
19096 |
M |
0 |
|
19096 |
0 |
41tUbSl_vEL._SY450_.jpg |
450 |
450 |
N |
17137 |
8208 |
product |
19099 |
M |
0 |
|
19099 |
0 |
41aufXATuTL._SY450_.jpg |
450 |
450 |
N |
17138 |
8209 |
product |
19100 |
M |
0 |
|
19100 |
0 |
414lhcmxRPL._SY450_.jpg |
450 |
450 |
N |
17139 |
8210 |
product |
19101 |
M |
0 |
|
19101 |
0 |
51NierXMqHL.jpg |
500 |
472 |
N |
18128 |
8653 |
product |
20090 |
M |
0 |
|
20090 |
0 |
61H7bKfxr2L._SL1500_.jpg |
1500 |
1000 |
N |
18132 |
8654 |
product |
20094 |
M |
0 |
|
20094 |
0 |
61mE0rSIe-L._SL1500_.jpg |
1500 |
1000 |
N |
18137 |
8655 |
product |
20099 |
M |
0 |
|
20099 |
0 |
41L9zHkHzkL.jpg |
500 |
500 |
N |
18142 |
8656 |
product |
20104 |
M |
0 |
|
20104 |
0 |
51t0GPByIWL.jpg |
500 |
500 |
N |
18147 |
8657 |
product |
20109 |
M |
0 |
|
20109 |
0 |
41LXLu1ZBBL.jpg |
500 |
500 |
N |
18156 |
8658 |
product |
20118 |
M |
0 |
|
20118 |
0 |
715WpIAgFGL._SL1500_.jpg |
1500 |
1000 |
N |
18157 |
8659 |
product |
20119 |
M |
0 |
|
20119 |
0 |
71u5pf5CCIL._SL1500_.jpg |
1500 |
1000 |
N |
18162 |
8660 |
product |
20124 |
M |
0 |
|
20124 |
0 |
41NlQRr1DhL.jpg |
500 |
500 |
N |
18167 |
8661 |
product |
20129 |
M |
0 |
|
20129 |