Query time 0.00108
JSON explain
{
"query_block": {
"select_id": 1,
"cost_info": {
"query_cost": "184.01"
},
"ordering_operation": {
"using_filesort": true,
"cost_info": {
"sort_cost": "35.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": 35,
"rows_produced_per_join": 35,
"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 ('29698','29699','29700','29701','29702','29703','29704','29705','29706','29707','29708','29709','29710','29711','29712','29713')))",
"cost_info": {
"read_cost": "58.01",
"eval_cost": "7.00",
"prefix_cost": "65.01",
"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": 35,
"filtered": "100.00",
"cost_info": {
"read_cost": "35.00",
"eval_cost": "7.00",
"prefix_cost": "107.01",
"data_read_per_join": "26K"
},
"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": 35,
"filtered": "100.00",
"cost_info": {
"read_cost": "35.00",
"eval_cost": "7.00",
"prefix_cost": "149.01",
"data_read_per_join": "20K"
},
"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 |
41wLnVel-5L.jpg |
500 |
500 |
N |
45682 |
29708 |
product |
47644 |
M |
0 |
|
47644 |
0 |
41iskmoZkAL.jpg |
500 |
499 |
N |
45692 |
29707 |
product |
47654 |
M |
0 |
|
47654 |
0 |
41EE8x1IBNL.jpg |
500 |
376 |
N |
45702 |
29706 |
product |
47664 |
M |
0 |
|
47664 |
0 |
31d_7E9d53L.jpg |
500 |
419 |
N |
45711 |
29705 |
product |
47673 |
M |
0 |
|
47673 |
0 |
51ytHiahGbL.jpg |
500 |
476 |
N |
45724 |
29704 |
product |
47686 |
M |
0 |
|
47686 |
0 |
51vEYhRaPLL.jpg |
500 |
464 |
N |
45737 |
29703 |
product |
47699 |
M |
0 |
|
47699 |
0 |
513sj-1hPFL.jpg |
461 |
500 |
N |
45750 |
29702 |
product |
47712 |
M |
0 |
|
47712 |
0 |
41uejz_jzYL.jpg |
500 |
495 |
N |
45771 |
29701 |
product |
47733 |
M |
0 |
|
47733 |
0 |
41OCF6Rm6KL.jpg |
493 |
500 |
N |
45788 |
29700 |
product |
47750 |
M |
0 |
|
47750 |
0 |
41z7dtU82ZL.jpg |
500 |
500 |
N |
45801 |
29699 |
product |
47763 |
M |
0 |
|
47763 |
0 |
41E_WhfdGXL.jpg |
500 |
500 |
N |
45813 |
29698 |
product |
47775 |
M |
0 |
|
47775 |
0 |
412OIuElHlL.jpg |
500 |
500 |
N |
47673 |
29713 |
product |
49634 |
M |
0 |
|
49634 |
0 |
41v50O31smL.jpg |
500 |
478 |
N |
47674 |
29712 |
product |
49635 |
M |
0 |
|
49635 |
0 |
41vm5COxTGL.jpg |
500 |
489 |
N |
47675 |
29711 |
product |
49636 |
M |
0 |
|
49636 |
0 |
31EDHuMM_ZL.jpg |
500 |
444 |
N |
47676 |
29710 |
product |
49637 |
M |
0 |
|
49637 |
0 |
2_k1iu-xw.jpg |
640 |
626 |
N |
82460 |
29709 |
product |
84403 |
M |
0 |
|
84403 |