Query time 0.00139
JSON explain
{
"query_block": {
"select_id": 1,
"cost_info": {
"query_cost": "236.41"
},
"ordering_operation": {
"using_filesort": true,
"cost_info": {
"sort_cost": "43.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": 43,
"rows_produced_per_join": 43,
"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 ('533','534','535','536','537','538','539','540','541','542','543','544','545','546','547','548','549','500','501','502','503','504','505','506','507','508','509','510','511','512')))",
"cost_info": {
"read_cost": "81.61",
"eval_cost": "8.60",
"prefix_cost": "90.21",
"data_read_per_join": "4K"
},
"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.image_id"
],
"rows_examined_per_scan": 1,
"rows_produced_per_join": 43,
"filtered": "100.00",
"cost_info": {
"read_cost": "43.00",
"eval_cost": "8.60",
"prefix_cost": "141.81",
"data_read_per_join": "32K"
},
"used_columns": [
"image_id",
"image_path",
"image_x",
"image_y",
"is_high_res"
]
}
},
{
"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": 43,
"filtered": "100.00",
"cost_info": {
"read_cost": "43.00",
"eval_cost": "8.60",
"prefix_cost": "193.41",
"data_read_per_join": "25K"
},
"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 |
|
|
|
|
1033 |
500 |
product |
3010 |
M |
0 |
|
|
0 |
|
|
|
|
1035 |
501 |
product |
3012 |
M |
0 |
|
|
0 |
|
|
|
|
1037 |
502 |
product |
3014 |
M |
0 |
|
|
0 |
|
|
|
|
1039 |
503 |
product |
3016 |
M |
0 |
|
|
0 |
|
|
|
|
1041 |
504 |
product |
3018 |
M |
0 |
|
|
0 |
|
|
|
|
1043 |
505 |
product |
3020 |
M |
0 |
|
|
0 |
|
|
|
|
1045 |
506 |
product |
3022 |
M |
0 |
|
|
0 |
|
|
|
|
1047 |
507 |
product |
3024 |
M |
0 |
|
|
0 |
|
|
|
|
1049 |
508 |
product |
3026 |
M |
0 |
|
|
0 |
|
|
|
|
1051 |
509 |
product |
3028 |
M |
0 |
|
|
0 |
|
|
|
|
1053 |
510 |
product |
3030 |
M |
0 |
|
|
0 |
|
|
|
|
1055 |
511 |
product |
3032 |
M |
0 |
|
|
0 |
|
|
|
|
1057 |
512 |
product |
3034 |
M |
0 |
|
|
0 |
|
|
|
|
1098 |
533 |
product |
3075 |
M |
0 |
|
|
0 |
|
|
|
|
1100 |
534 |
product |
3077 |
M |
0 |
|
|
0 |
|
|
|
|
1102 |
535 |
product |
3079 |
M |
0 |
|
|
0 |
|
|
|
|
1104 |
536 |
product |
3081 |
M |
0 |
|
|
0 |
|
|
|
|
1106 |
537 |
product |
3083 |
M |
0 |
|
|
0 |
|
|
|
|
1108 |
538 |
product |
3085 |
M |
0 |
|
|
0 |
|
|
|
|
1110 |
539 |
product |
3087 |
M |
0 |
|
|
0 |
|
|
|
|
1112 |
540 |
product |
3089 |
M |
0 |
|
|
0 |
|
|
|
|
1114 |
541 |
product |
3091 |
M |
0 |
|
|
0 |
|
|
|
|
1116 |
542 |
product |
3093 |
M |
0 |
|
|
0 |
|
|
|
|
1119 |
544 |
product |
3096 |
M |
0 |
|
|
0 |
|
|
|
|
1121 |
545 |
product |
3098 |
M |
0 |
|
|
0 |
|
|
|
|
1123 |
546 |
product |
3100 |
M |
0 |
|
|
0 |
|
|
|
|
1125 |
547 |
product |
3102 |
M |
0 |
|
|
0 |
|
|
|
|
1127 |
548 |
product |
3104 |
M |
0 |
|
|
0 |
|
|
|
|
1133 |
543 |
product |
3110 |
M |
0 |
|
|
0 |
|
|
|
|
81494 |
549 |
product |
83437 |
M |
0 |
|
|