Query time 0.00144
JSON explain
{
"query_block": {
"select_id": 1,
"cost_info": {
"query_cost": "226.81"
},
"ordering_operation": {
"using_filesort": true,
"cost_info": {
"sort_cost": "41.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": 41,
"rows_produced_per_join": 41,
"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 ('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": "79.21",
"eval_cost": "8.20",
"prefix_cost": "87.41",
"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.image_id"
],
"rows_examined_per_scan": 1,
"rows_produced_per_join": 41,
"filtered": "100.00",
"cost_info": {
"read_cost": "41.00",
"eval_cost": "8.20",
"prefix_cost": "136.61",
"data_read_per_join": "31K"
},
"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": 41,
"filtered": "100.00",
"cost_info": {
"read_cost": "41.00",
"eval_cost": "8.20",
"prefix_cost": "185.81",
"data_read_per_join": "24K"
},
"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 |
|
|
|
|
1118 |
543 |
product |
3095 |
A |
1 |
|
|
0 |
|
|
|
|
1129 |
549 |
product |
3106 |
A |
1 |
|
|
0 |
|
|
|
|
1034 |
500 |
product |
3011 |
A |
10 |
|
|
0 |
|
|
|
|
1036 |
501 |
product |
3013 |
A |
10 |
|
|
0 |
|
|
|
|
1038 |
502 |
product |
3015 |
A |
10 |
|
|
0 |
|
|
|
|
1040 |
503 |
product |
3017 |
A |
10 |
|
|
0 |
|
|
|
|
1042 |
504 |
product |
3019 |
A |
10 |
|
|
0 |
|
|
|
|
1044 |
505 |
product |
3021 |
A |
10 |
|
|
0 |
|
|
|
|
1046 |
506 |
product |
3023 |
A |
10 |
|
|
0 |
|
|
|
|
1048 |
507 |
product |
3025 |
A |
10 |
|
|
0 |
|
|
|
|
1050 |
508 |
product |
3027 |
A |
10 |
|
|
0 |
|
|
|
|
1052 |
509 |
product |
3029 |
A |
10 |
|
|
0 |
|
|
|
|
1054 |
510 |
product |
3031 |
A |
10 |
|
|
0 |
|
|
|
|
1056 |
511 |
product |
3033 |
A |
10 |
|
|
0 |
|
|
|
|
1058 |
512 |
product |
3035 |
A |
10 |
|
|
0 |
|
|
|
|
1099 |
533 |
product |
3076 |
A |
10 |
|
|
0 |
|
|
|
|
1101 |
534 |
product |
3078 |
A |
10 |
|
|
0 |
|
|
|
|
1103 |
535 |
product |
3080 |
A |
10 |
|
|
0 |
|
|
|
|
1105 |
536 |
product |
3082 |
A |
10 |
|
|
0 |
|
|
|
|
1107 |
537 |
product |
3084 |
A |
10 |
|
|
0 |
|
|
|
|
1109 |
538 |
product |
3086 |
A |
10 |
|
|
0 |
|
|
|
|
1111 |
539 |
product |
3088 |
A |
10 |
|
|
0 |
|
|
|
|
1113 |
540 |
product |
3090 |
A |
10 |
|
|
0 |
|
|
|
|
1115 |
541 |
product |
3092 |
A |
10 |
|
|
0 |
|
|
|
|
1117 |
542 |
product |
3094 |
A |
10 |
|
|
0 |
|
|
|
|
1120 |
544 |
product |
3097 |
A |
10 |
|
|
0 |
|
|
|
|
1122 |
545 |
product |
3099 |
A |
10 |
|
|
0 |
|
|
|
|
1124 |
546 |
product |
3101 |
A |
10 |
|
|
0 |
|
|
|
|
1126 |
547 |
product |
3103 |
A |
10 |
|
|
0 |
|
|
|
|
1128 |
548 |
product |
3105 |
A |
10 |
|
|