Query time 0.00144
JSON explain
{
"query_block": {
"select_id": 1,
"cost_info": {
"query_cost": "241.21"
},
"ordering_operation": {
"using_filesort": true,
"cost_info": {
"sort_cost": "44.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": 44,
"rows_produced_per_join": 44,
"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 ('611','612','613','614','615','616','581','582','583','584','585','586','565','566','567','568','569','570','571','572','573','574','575','576','577','578','579','580','551','552')))",
"cost_info": {
"read_cost": "82.81",
"eval_cost": "8.80",
"prefix_cost": "91.61",
"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": 44,
"filtered": "100.00",
"cost_info": {
"read_cost": "44.00",
"eval_cost": "8.80",
"prefix_cost": "144.41",
"data_read_per_join": "33K"
},
"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": 44,
"filtered": "100.00",
"cost_info": {
"read_cost": "44.00",
"eval_cost": "8.80",
"prefix_cost": "197.21",
"data_read_per_join": "26K"
},
"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 |
|
|
|
|
1169 |
569 |
product |
3146 |
A |
1 |
|
|
0 |
|
|
|
|
1203 |
581 |
product |
3180 |
A |
1 |
|
|
0 |
|
|
|
|
1170 |
569 |
product |
3147 |
A |
2 |
|
|
0 |
|
|
|
|
39926 |
581 |
product |
41888 |
A |
2 |
|
|
0 |
|
|
|
|
1135 |
551 |
product |
3112 |
A |
10 |
|
|
0 |
|
|
|
|
1137 |
552 |
product |
3114 |
A |
10 |
|
|
0 |
|
|
|
|
1163 |
565 |
product |
3140 |
A |
10 |
|
|
0 |
|
|
|
|
1166 |
567 |
product |
3143 |
A |
10 |
|
|
0 |
|
|
|
|
1168 |
568 |
product |
3145 |
A |
10 |
|
|
0 |
|
|
|
|
1172 |
570 |
product |
3149 |
A |
10 |
|
|
0 |
|
|
|
|
1174 |
571 |
product |
3151 |
A |
10 |
|
|
0 |
|
|
|
|
1176 |
572 |
product |
3153 |
A |
10 |
|
|
0 |
|
|
|
|
1178 |
573 |
product |
3155 |
A |
10 |
|
|
0 |
|
|
|
|
1180 |
574 |
product |
3157 |
A |
10 |
|
|
0 |
|
|
|
|
1182 |
575 |
product |
3159 |
A |
10 |
|
|
0 |
|
|
|
|
1184 |
576 |
product |
3161 |
A |
10 |
|
|
0 |
|
|
|
|
1186 |
577 |
product |
3163 |
A |
10 |
|
|
0 |
|
|
|
|
1188 |
578 |
product |
3165 |
A |
10 |
|
|
0 |
|
|
|
|
1190 |
579 |
product |
3167 |
A |
10 |
|
|
0 |
|
|
|
|
1192 |
580 |
product |
3169 |
A |
10 |
|
|
0 |
|
|
|
|
1194 |
582 |
product |
3171 |
A |
10 |
|
|
0 |
|
|
|
|
1196 |
583 |
product |
3173 |
A |
10 |
|
|
0 |
|
|
|
|
1198 |
584 |
product |
3175 |
A |
10 |
|
|
0 |
|
|
|
|
1200 |
585 |
product |
3177 |
A |
10 |
|
|
0 |
|
|
|
|
1202 |
586 |
product |
3179 |
A |
10 |
|
|
0 |
|
|
|
|
1254 |
611 |
product |
3231 |
A |
10 |
|
|
0 |
|
|
|
|
1256 |
612 |
product |
3233 |
A |
10 |
|
|
0 |
|
|
|
|
1258 |
613 |
product |
3235 |
A |
10 |
|
|
0 |
|
|
|
|
1260 |
614 |
product |
3237 |
A |
10 |
|
|
0 |
|
|
|
|
1262 |
615 |
product |
3239 |
A |
10 |
|
|
0 |
|
|
|
|
1264 |
616 |
product |
3241 |
A |
10 |
|
|
0 |
|
|
|
|
1289 |
611 |
product |
3266 |
A |
10 |
|
|
0 |
|
|
|
|
1290 |
612 |
product |
3267 |
A |
10 |
|
|
0 |
|
|
|
|
1291 |
613 |
product |
3268 |
A |
10 |
|
|
0 |
|
|
|
|
1292 |
614 |
product |
3269 |
A |
10 |
|
|
0 |
|
|
|
|
1293 |
615 |
product |
3270 |
A |
10 |
|
|
0 |
|
|
|
|
1294 |
616 |
product |
3271 |
A |
10 |
|
|