Query time 0.00150
JSON explain
{
"query_block": {
"select_id": 1,
"cost_info": {
"query_cost": "243.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` = 'M') and (`portal`.`q_images_links`.`object_id` in ('33116','33117','33118','33119','33120','33121','33122','33123','33124','33125','33126','33127','33128','33129','33130','33131','33132','33133','33134','33135','33136','33137','33138','33139','33140','33141','33142','33143','33144','33145','33146','33148')))",
"cost_info": {
"read_cost": "84.81",
"eval_cost": "8.80",
"prefix_cost": "93.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": "146.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": "199.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 |
|
|
|
|
55093 |
33124 |
product |
57054 |
M |
0 |
|
|
0 |
|
|
|
|
55166 |
33132 |
product |
57127 |
M |
0 |
|
|
0 |
|
|
|
|
68834 |
33131 |
product |
70785 |
M |
0 |
|
|
0 |
|
|
|
|
55064 |
33121 |
product |
57025 |
M |
21 |
|
|
0 |
|
|
|
|
55095 |
33125 |
product |
57056 |
M |
21 |
|
|
0 |
|
|
|
|
55107 |
33130 |
product |
57068 |
M |
21 |
|
|
0 |
|
|
|
|
67855 |
33136 |
product |
69806 |
M |
21 |
|
|
0 |
|
|
|
|
67856 |
33136 |
product |
69807 |
M |
21 |
|
|
0 |
|
|
|
|
67857 |
33136 |
product |
69808 |
M |
21 |
|
|
0 |
|
|
|
|
67873 |
33141 |
product |
69824 |
M |
21 |
|
|
0 |
|
|
|
|
55054 |
33118 |
product |
57015 |
M |
31 |
|
|
0 |
|
|
|
|
55055 |
33119 |
product |
57016 |
M |
31 |
|
|
0 |
|
|
|
|
55062 |
33120 |
product |
57023 |
M |
31 |
|
|
0 |
|
|
|
|
55075 |
33122 |
product |
57036 |
M |
31 |
|
|
0 |
|
|
|
|
55089 |
33123 |
product |
57050 |
M |
31 |
|
|
0 |
|
|
|
|
55097 |
33126 |
product |
57058 |
M |
31 |
|
|
0 |
|
|
|
|
55103 |
33127 |
product |
57064 |
M |
31 |
|
|
0 |
|
|
|
|
55105 |
33128 |
product |
57066 |
M |
31 |
|
|
0 |
|
|
|
|
55106 |
33129 |
product |
57067 |
M |
31 |
|
|
0 |
|
|
|
|
55169 |
33133 |
product |
57130 |
M |
31 |
|
|
0 |
|
|
|
|
55171 |
33134 |
product |
57132 |
M |
31 |
|
|
0 |
|
|
|
|
55172 |
33135 |
product |
57133 |
M |
31 |
|
|
0 |
|
|
|
|
55551 |
33148 |
product |
57512 |
M |
31 |
|
|
0 |
|
|
|
|
61860 |
33117 |
product |
63816 |
M |
31 |
|
|
0 |
|
|
|
|
61866 |
33116 |
product |
63822 |
M |
31 |
|
|
0 |
|
|
|
|
67859 |
33137 |
product |
69810 |
M |
31 |
|
|
0 |
|
|
|
|
67861 |
33138 |
product |
69812 |
M |
31 |
|
|
0 |
|
|
|
|
67862 |
33139 |
product |
69813 |
M |
31 |
|
|
0 |
|
|
|
|
67863 |
33140 |
product |
69814 |
M |
31 |
|
|
0 |
|
|
|
|
67875 |
33142 |
product |
69826 |
M |
31 |
|
|
0 |
|
|
|
|
67877 |
33143 |
product |
69828 |
M |
31 |
|
|
0 |
|
|
|
|
67878 |
33143 |
product |
69829 |
M |
31 |
|
|
0 |
|
|
|
|
67879 |
33144 |
product |
69830 |
M |
31 |
|
|
0 |
|
|
|
|
67880 |
33145 |
product |
69831 |
M |
31 |
|
|
0 |
|
|
|
|
55176 |
33146 |
product |
57137 |
M |
41 |
|
|