Query time 0.00143
JSON explain
{
"query_block": {
"select_id": 1,
"cost_info": {
"query_cost": "246.01"
},
"ordering_operation": {
"using_filesort": true,
"cost_info": {
"sort_cost": "45.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": 45,
"rows_produced_per_join": 45,
"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 ('332','333','334','335','336','337','338','339','340','341','342','343','344','345','346','347','348','349','350','351','352','354','355','356','357','358','359','360','361','362')))",
"cost_info": {
"read_cost": "84.01",
"eval_cost": "9.00",
"prefix_cost": "93.01",
"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": 45,
"filtered": "100.00",
"cost_info": {
"read_cost": "45.00",
"eval_cost": "9.00",
"prefix_cost": "147.01",
"data_read_per_join": "34K"
},
"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": 45,
"filtered": "100.00",
"cost_info": {
"read_cost": "45.00",
"eval_cost": "9.00",
"prefix_cost": "201.01",
"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 |
|
|
|
|
713 |
346 |
product |
2690 |
A |
1 |
|
|
0 |
|
|
|
|
731 |
355 |
product |
2708 |
A |
1 |
|
|
0 |
|
|
|
|
735 |
357 |
product |
2712 |
A |
1 |
|
|
0 |
|
|
|
|
714 |
346 |
product |
2691 |
A |
2 |
|
|
0 |
|
|
|
|
732 |
355 |
product |
2709 |
A |
2 |
|
|
0 |
|
|
|
|
736 |
357 |
product |
2713 |
A |
2 |
|
|
0 |
|
|
|
|
686 |
332 |
product |
2663 |
A |
10 |
|
|
0 |
|
|
|
|
688 |
333 |
product |
2665 |
A |
10 |
|
|
0 |
|
|
|
|
690 |
334 |
product |
2667 |
A |
10 |
|
|
0 |
|
|
|
|
692 |
335 |
product |
2669 |
A |
10 |
|
|
0 |
|
|
|
|
694 |
336 |
product |
2671 |
A |
10 |
|
|
0 |
|
|
|
|
696 |
337 |
product |
2673 |
A |
10 |
|
|
0 |
|
|
|
|
698 |
338 |
product |
2675 |
A |
10 |
|
|
0 |
|
|
|
|
700 |
339 |
product |
2677 |
A |
10 |
|
|
0 |
|
|
|
|
702 |
340 |
product |
2679 |
A |
10 |
|
|
0 |
|
|
|
|
704 |
341 |
product |
2681 |
A |
10 |
|
|
0 |
|
|
|
|
706 |
342 |
product |
2683 |
A |
10 |
|
|
0 |
|
|
|
|
708 |
343 |
product |
2685 |
A |
10 |
|
|
0 |
|
|
|
|
710 |
344 |
product |
2687 |
A |
10 |
|
|
0 |
|
|
|
|
712 |
345 |
product |
2689 |
A |
10 |
|
|
0 |
|
|
|
|
716 |
347 |
product |
2693 |
A |
10 |
|
|
0 |
|
|
|
|
718 |
348 |
product |
2695 |
A |
10 |
|
|
0 |
|
|
|
|
720 |
349 |
product |
2697 |
A |
10 |
|
|
0 |
|
|
|
|
722 |
350 |
product |
2699 |
A |
10 |
|
|
0 |
|
|
|
|
724 |
351 |
product |
2701 |
A |
10 |
|
|
0 |
|
|
|
|
726 |
352 |
product |
2703 |
A |
10 |
|
|
0 |
|
|
|
|
730 |
354 |
product |
2707 |
A |
10 |
|
|
0 |
|
|
|
|
734 |
356 |
product |
2711 |
A |
10 |
|
|
0 |
|
|
|
|
738 |
358 |
product |
2715 |
A |
10 |
|
|
0 |
|
|
|
|
740 |
359 |
product |
2717 |
A |
10 |
|
|
0 |
|
|
|
|
742 |
360 |
product |
2719 |
A |
10 |
|
|
0 |
|
|
|
|
744 |
361 |
product |
2721 |
A |
10 |
|
|
0 |
|
|
|
|
746 |
362 |
product |
2723 |
A |
10 |
|
|