Query time 0.00143
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 ('9645','9646','9647','9648','9649','9650','9651','9652','9653','9654','9655','9656','9657','9658','9659','9660')))",
"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 |
516WF2PXZ7L._SL1000_.jpg |
1000 |
1000 |
N |
26076 |
9646 |
product |
28038 |
A |
1 |
|
28038 |
0 |
61RUmzCfWML._SL1500_.jpg |
1500 |
1500 |
N |
26078 |
9645 |
product |
28040 |
A |
1 |
|
28040 |
0 |
71f2VNJxjpL._SL1500_.jpg |
1500 |
1500 |
N |
26276 |
9655 |
product |
28238 |
A |
1 |
|
28238 |
0 |
01_8vg0-5c.jpg |
1600 |
1600 |
N |
26364 |
9659 |
product |
28326 |
A |
1 |
|
28326 |
0 |
01_9d3t-so.jpg |
1600 |
1600 |
N |
26367 |
9657 |
product |
28329 |
A |
1 |
|
28329 |
0 |
category_01.jpg |
720 |
1080 |
N |
26369 |
9658 |
product |
28331 |
A |
1 |
|
28331 |
0 |
02_obr6-um.jpg |
1600 |
1600 |
N |
26370 |
9656 |
product |
28332 |
A |
1 |
|
28332 |
0 |
51h9Js9oi_L._SL1000_.jpg |
1000 |
1000 |
N |
26077 |
9646 |
product |
28039 |
A |
2 |
|
28039 |
0 |
71RjlWzEdHL._SL1500_.jpg |
1500 |
1500 |
N |
26079 |
9645 |
product |
28041 |
A |
2 |
|
28041 |
0 |
81bacdpxwuL._SL1500_.jpg |
1500 |
1500 |
N |
26277 |
9655 |
product |
28239 |
A |
2 |
|
28239 |
0 |
05_srri-n4.jpg |
1600 |
1600 |
N |
26362 |
9660 |
product |
28324 |
A |
2 |
|
28324 |
0 |
02_q9nw-yb.jpg |
1600 |
1600 |
N |
26368 |
9657 |
product |
28330 |
A |
2 |
|
28330 |
0 |
04_m3cr-bd.jpg |
1600 |
1600 |
N |
26371 |
9656 |
product |
28333 |
A |
2 |
|
28333 |
0 |
91ZCIO3o8BL._SL1500_.jpg |
1500 |
1500 |
N |
26278 |
9655 |
product |
28240 |
A |
3 |
|
28240 |
0 |
03_1kmn-k8.jpg |
1600 |
1600 |
N |
26363 |
9660 |
product |
28325 |
A |
3 |
|
28325 |