Query time 0.00156
JSON explain
{
"query_block": {
"select_id": 1,
"cost_info": {
"query_cost": "174.01"
},
"ordering_operation": {
"using_filesort": true,
"cost_info": {
"sort_cost": "30.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": 30,
"rows_produced_per_join": 30,
"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 ('3621','3622','3623','3625','3626','3628','3629','3630','3631','3632','3633','3634','3635','3636','3637','3638','3639','3640','3641','3642','3643','3644','3645','3646','3647','3648','3649','3650','3651','3652')))",
"cost_info": {
"read_cost": "66.01",
"eval_cost": "6.00",
"prefix_cost": "72.01",
"data_read_per_join": "2K"
},
"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": 30,
"filtered": "100.00",
"cost_info": {
"read_cost": "30.00",
"eval_cost": "6.00",
"prefix_cost": "108.01",
"data_read_per_join": "22K"
},
"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": 30,
"filtered": "100.00",
"cost_info": {
"read_cost": "30.00",
"eval_cost": "6.00",
"prefix_cost": "144.01",
"data_read_per_join": "17K"
},
"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 |
|
|
|
|
8819 |
3621 |
product |
10784 |
M |
0 |
|
|
0 |
|
|
|
|
8820 |
3622 |
product |
10785 |
M |
0 |
|
|
0 |
|
|
|
|
8821 |
3623 |
product |
10786 |
M |
0 |
|
|
0 |
|
|
|
|
8823 |
3625 |
product |
10788 |
M |
0 |
|
|
0 |
|
|
|
|
8824 |
3626 |
product |
10789 |
M |
0 |
|
|
0 |
|
|
|
|
8826 |
3628 |
product |
10791 |
M |
0 |
|
|
0 |
|
|
|
|
8827 |
3629 |
product |
10792 |
M |
0 |
|
|
0 |
|
|
|
|
8828 |
3630 |
product |
10793 |
M |
0 |
|
|
0 |
|
|
|
|
8829 |
3631 |
product |
10794 |
M |
0 |
|
|
0 |
|
|
|
|
8830 |
3632 |
product |
10795 |
M |
0 |
|
|
0 |
|
|
|
|
8831 |
3633 |
product |
10796 |
M |
0 |
|
|
0 |
|
|
|
|
8832 |
3634 |
product |
10797 |
M |
0 |
|
|
0 |
|
|
|
|
8833 |
3637 |
product |
10798 |
M |
0 |
|
|
0 |
|
|
|
|
8834 |
3638 |
product |
10799 |
M |
0 |
|
|
0 |
|
|
|
|
8835 |
3639 |
product |
10800 |
M |
0 |
|
|
0 |
|
|
|
|
8836 |
3640 |
product |
10801 |
M |
0 |
|
|
0 |
|
|
|
|
8837 |
3641 |
product |
10802 |
M |
0 |
|
|
0 |
|
|
|
|
8838 |
3642 |
product |
10803 |
M |
0 |
|
|
0 |
|
|
|
|
8839 |
3643 |
product |
10804 |
M |
0 |
|
|
0 |
|
|
|
|
8840 |
3644 |
product |
10805 |
M |
0 |
|
|
0 |
|
|
|
|
8841 |
3645 |
product |
10806 |
M |
0 |
|
|
0 |
|
|
|
|
8842 |
3646 |
product |
10807 |
M |
0 |
|
|
0 |
|
|
|
|
8843 |
3647 |
product |
10808 |
M |
0 |
|
|
0 |
|
|
|
|
8844 |
3648 |
product |
10809 |
M |
0 |
|
|
0 |
|
|
|
|
8845 |
3649 |
product |
10810 |
M |
0 |
|
|
0 |
|
|
|
|
8846 |
3650 |
product |
10811 |
M |
0 |
|
|
0 |
|
|
|
|
8847 |
3651 |
product |
10812 |
M |
0 |
|
|
0 |
|
|
|
|
8848 |
3652 |
product |
10813 |
M |
0 |
|
|
0 |
|
|
|
|
10031 |
3635 |
product |
11996 |
M |
0 |
|
|
0 |
|
|
|
|
10032 |
3636 |
product |
11997 |
M |
0 |
|
|