Query time 0.00122
JSON explain
{
"query_block": {
"select_id": 1,
"cost_info": {
"query_cost": "136.01"
},
"ordering_operation": {
"using_filesort": true,
"cost_info": {
"sort_cost": "25.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": 25,
"rows_produced_per_join": 25,
"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 ('9533','9534','9535','9536','9537','9538','9539','9540','9541','9542','9543','9544','9545','9546','9547','9548')))",
"cost_info": {
"read_cost": "46.01",
"eval_cost": "5.00",
"prefix_cost": "51.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": 25,
"filtered": "100.00",
"cost_info": {
"read_cost": "25.00",
"eval_cost": "5.00",
"prefix_cost": "81.01",
"data_read_per_join": "19K"
},
"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": 25,
"filtered": "100.00",
"cost_info": {
"read_cost": "25.00",
"eval_cost": "5.00",
"prefix_cost": "111.01",
"data_read_per_join": "14K"
},
"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 |
|
|
|
|
25877 |
9533 |
product |
27839 |
A |
1 |
|
|
0 |
|
|
|
|
25879 |
9534 |
product |
27841 |
A |
1 |
|
|
0 |
|
|
|
|
25882 |
9535 |
product |
27844 |
A |
1 |
|
|
0 |
|
|
|
|
25885 |
9536 |
product |
27847 |
A |
1 |
|
|
0 |
|
|
|
|
25889 |
9537 |
product |
27851 |
A |
1 |
|
|
0 |
|
|
|
|
25893 |
9540 |
product |
27855 |
A |
1 |
|
|
0 |
|
|
|
|
25894 |
9541 |
product |
27856 |
A |
1 |
|
|
0 |
|
|
|
|
25896 |
9542 |
product |
27858 |
A |
1 |
|
|
0 |
|
|
|
|
25899 |
9543 |
product |
27861 |
A |
1 |
|
|
0 |
|
|
|
|
25903 |
9544 |
product |
27865 |
A |
1 |
|
|
0 |
|
|
|
|
25906 |
9545 |
product |
27868 |
A |
1 |
|
|
0 |
|
|
|
|
25910 |
9546 |
product |
27872 |
A |
1 |
|
|
0 |
|
|
|
|
25912 |
9547 |
product |
27874 |
A |
1 |
|
|
0 |
|
|
|
|
25878 |
9533 |
product |
27840 |
A |
2 |
|
|
0 |
|
|
|
|
25880 |
9534 |
product |
27842 |
A |
2 |
|
|
0 |
|
|
|
|
25883 |
9535 |
product |
27845 |
A |
2 |
|
|
0 |
|
|
|
|
25886 |
9536 |
product |
27848 |
A |
2 |
|
|
0 |
|
|
|
|
25891 |
9538 |
product |
27853 |
A |
2 |
|
|
0 |
|
|
|
|
25895 |
9541 |
product |
27857 |
A |
2 |
|
|
0 |
|
|
|
|
25897 |
9542 |
product |
27859 |
A |
2 |
|
|
0 |
|
|
|
|
25900 |
9543 |
product |
27862 |
A |
2 |
|
|
0 |
|
|
|
|
25904 |
9544 |
product |
27866 |
A |
2 |
|
|
0 |
|
|
|
|
25907 |
9545 |
product |
27869 |
A |
2 |
|
|
0 |
|
|
|
|
25911 |
9546 |
product |
27873 |
A |
2 |
|
|
0 |
|
|
|
|
25913 |
9547 |
product |
27875 |
A |
2 |
|
|
0 |
|
|
|
|
25881 |
9534 |
product |
27843 |
A |
3 |
|
|
0 |
|
|
|
|
25884 |
9535 |
product |
27846 |
A |
3 |
|
|
0 |
|
|
|
|
25887 |
9536 |
product |
27849 |
A |
3 |
|
|
0 |
|
|
|
|
25892 |
9538 |
product |
27854 |
A |
3 |
|
|
0 |
|
|
|
|
25898 |
9542 |
product |
27860 |
A |
3 |
|
|
0 |
|
|
|
|
25901 |
9543 |
product |
27863 |
A |
3 |
|
|
0 |
|
|
|
|
25905 |
9544 |
product |
27867 |
A |
3 |
|
|
0 |
|
|
|
|
25908 |
9545 |
product |
27870 |
A |
3 |
|
|
0 |
|
|
|
|
25909 |
9545 |
product |
27871 |
A |
4 |
|
|
0 |
|
|
|
|
25921 |
9539 |
product |
27883 |
A |
4 |
|
|
0 |
|
|
|
|
25922 |
9539 |
product |
27884 |
A |
5 |
|
|