Query time 0.00141
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` = 'A') and (`portal`.`q_images_links`.`object_id` in ('294','295','296','297','298','299','300','301','302','303','304','305','306','307','246','247','248','249','250','251','252','253','254','255','256','257','258','259','260','261')))",
"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 |
|
|
|
|
528 |
257 |
product |
2505 |
A |
1 |
|
|
0 |
|
|
|
|
529 |
258 |
product |
2506 |
A |
1 |
|
|
0 |
|
|
|
|
508 |
246 |
product |
2485 |
A |
10 |
|
|
0 |
|
|
|
|
510 |
247 |
product |
2487 |
A |
10 |
|
|
0 |
|
|
|
|
512 |
248 |
product |
2489 |
A |
10 |
|
|
0 |
|
|
|
|
515 |
250 |
product |
2492 |
A |
10 |
|
|
0 |
|
|
|
|
517 |
251 |
product |
2494 |
A |
10 |
|
|
0 |
|
|
|
|
519 |
252 |
product |
2496 |
A |
10 |
|
|
0 |
|
|
|
|
521 |
253 |
product |
2498 |
A |
10 |
|
|
0 |
|
|
|
|
523 |
254 |
product |
2500 |
A |
10 |
|
|
0 |
|
|
|
|
525 |
255 |
product |
2502 |
A |
10 |
|
|
0 |
|
|
|
|
527 |
256 |
product |
2504 |
A |
10 |
|
|
0 |
|
|
|
|
531 |
259 |
product |
2508 |
A |
10 |
|
|
0 |
|
|
|
|
533 |
260 |
product |
2510 |
A |
10 |
|
|
0 |
|
|
|
|
535 |
261 |
product |
2512 |
A |
10 |
|
|
0 |
|
|
|
|
610 |
294 |
product |
2587 |
A |
10 |
|
|
0 |
|
|
|
|
612 |
295 |
product |
2589 |
A |
10 |
|
|
0 |
|
|
|
|
614 |
296 |
product |
2591 |
A |
10 |
|
|
0 |
|
|
|
|
616 |
297 |
product |
2593 |
A |
10 |
|
|
0 |
|
|
|
|
618 |
298 |
product |
2595 |
A |
10 |
|
|
0 |
|
|
|
|
620 |
299 |
product |
2597 |
A |
10 |
|
|
0 |
|
|
|
|
622 |
300 |
product |
2599 |
A |
10 |
|
|
0 |
|
|
|
|
624 |
301 |
product |
2601 |
A |
10 |
|
|
0 |
|
|
|
|
626 |
302 |
product |
2603 |
A |
10 |
|
|
0 |
|
|
|
|
628 |
303 |
product |
2605 |
A |
10 |
|
|
0 |
|
|
|
|
630 |
304 |
product |
2607 |
A |
10 |
|
|
0 |
|
|
|
|
632 |
305 |
product |
2609 |
A |
10 |
|
|
0 |
|
|
|
|
634 |
306 |
product |
2611 |
A |
10 |
|
|
0 |
|
|
|
|
636 |
307 |
product |
2613 |
A |
10 |
|
|