Query time 0.00117
JSON explain
{
"query_block": {
"select_id": 1,
"cost_info": {
"query_cost": "150.41"
},
"ordering_operation": {
"using_filesort": true,
"cost_info": {
"sort_cost": "28.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": 28,
"rows_produced_per_join": 28,
"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 ('37470','37471','37472','37473','37474','37475','37476','37477','37478','37479','37480','37481','37482','37483','37484','37485')))",
"cost_info": {
"read_cost": "49.61",
"eval_cost": "5.60",
"prefix_cost": "55.21",
"data_read_per_join": "2K"
},
"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": 28,
"filtered": "100.00",
"cost_info": {
"read_cost": "28.00",
"eval_cost": "5.60",
"prefix_cost": "88.81",
"data_read_per_join": "21K"
},
"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": 28,
"filtered": "100.00",
"cost_info": {
"read_cost": "28.00",
"eval_cost": "5.60",
"prefix_cost": "122.41",
"data_read_per_join": "16K"
},
"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 |
41mYudWY-jL.jpg |
500 |
500 |
N |
58580 |
37485 |
product |
60536 |
M |
0 |
|
60536 |
0 |
718oTcvN68L._SL1500_.jpg |
1000 |
1500 |
N |
58583 |
37484 |
product |
60539 |
M |
0 |
|
60539 |
0 |
51OVyDtvRRL.jpg |
500 |
500 |
N |
58584 |
37483 |
product |
60540 |
M |
0 |
|
60540 |
0 |
61zUY4s3grL._SL1000_.jpg |
1000 |
881 |
N |
58586 |
37481 |
product |
60542 |
M |
0 |
|
60542 |
0 |
s-l1600_4tme-9q.jpg |
1000 |
1000 |
N |
58592 |
37480 |
product |
60548 |
M |
0 |
|
60548 |
0 |
s-l500_vays-ql.jpg |
500 |
500 |
N |
58595 |
37479 |
product |
60551 |
M |
0 |
|
60551 |
0 |
81nmeY9QSvL._SL1500_.jpg |
797 |
1500 |
N |
58596 |
37478 |
product |
60552 |
M |
0 |
|
60552 |
0 |
81hHemwWmEL._SL1500_.jpg |
824 |
1500 |
N |
58597 |
37477 |
product |
60553 |
M |
0 |
|
60553 |
0 |
81sPSg6izwL._SL1500_.jpg |
941 |
1500 |
N |
58599 |
37476 |
product |
60555 |
M |
0 |
|
60555 |
0 |
81wi-4a8ErL._SL1500_.jpg |
919 |
1500 |
N |
58600 |
37475 |
product |
60556 |
M |
0 |
|
60556 |
0 |
81kxBpRqsAL._SL1500_.jpg |
775 |
1500 |
N |
58602 |
37474 |
product |
60558 |
M |
0 |
|
60558 |
0 |
505554078_1_TableTop.jpg |
400 |
376 |
N |
58608 |
37473 |
product |
60564 |
M |
0 |
|
60564 |
0 |
61NrjFD3XvL._SL1000_.jpg |
1000 |
1000 |
N |
58610 |
37472 |
product |
60566 |
M |
0 |
|
60566 |
0 |
81MIEIGX_gL._SL1500_.jpg |
1500 |
1125 |
N |
58612 |
37471 |
product |
60568 |
M |
0 |
|
60568 |
0 |
51IL6BcfmML._SL1000_.jpg |
1000 |
1000 |
N |
58614 |
37470 |
product |
60570 |
M |
0 |
|
60570 |
0 |
375x500.24035.jpg |
375 |
500 |
N |
62054 |
37482 |
product |
64010 |
M |
0 |
|
64010 |