Query time 0.00172
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 ('16317','16318','16319','16320','16321','16322','16323','16324','16325','16326','16327','16328','16329','16331','16332','16333','16334','16335','16336','16337','16338','16339','16340','16341','16342','16343','16344','16345','16346','16347')))",
"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 |
|
|
|
|
30223 |
16317 |
product |
32185 |
M |
0 |
|
|
0 |
|
|
|
|
30224 |
16318 |
product |
32186 |
M |
0 |
|
|
0 |
|
|
|
|
30225 |
16319 |
product |
32187 |
M |
0 |
|
|
0 |
|
|
|
|
30226 |
16320 |
product |
32188 |
M |
0 |
|
|
0 |
|
|
|
|
30227 |
16321 |
product |
32189 |
M |
0 |
|
|
0 |
|
|
|
|
30228 |
16322 |
product |
32190 |
M |
0 |
|
|
0 |
|
|
|
|
30229 |
16323 |
product |
32191 |
M |
0 |
|
|
0 |
|
|
|
|
30230 |
16324 |
product |
32192 |
M |
0 |
|
|
0 |
|
|
|
|
30231 |
16325 |
product |
32193 |
M |
0 |
|
|
0 |
|
|
|
|
30232 |
16326 |
product |
32194 |
M |
0 |
|
|
0 |
|
|
|
|
30233 |
16327 |
product |
32195 |
M |
0 |
|
|
0 |
|
|
|
|
30234 |
16328 |
product |
32196 |
M |
0 |
|
|
0 |
|
|
|
|
30235 |
16329 |
product |
32197 |
M |
0 |
|
|
0 |
|
|
|
|
30237 |
16331 |
product |
32199 |
M |
0 |
|
|
0 |
|
|
|
|
30238 |
16332 |
product |
32200 |
M |
0 |
|
|
0 |
|
|
|
|
30239 |
16333 |
product |
32201 |
M |
0 |
|
|
0 |
|
|
|
|
30240 |
16334 |
product |
32202 |
M |
0 |
|
|
0 |
|
|
|
|
30241 |
16335 |
product |
32203 |
M |
0 |
|
|
0 |
|
|
|
|
30242 |
16336 |
product |
32204 |
M |
0 |
|
|
0 |
|
|
|
|
30243 |
16337 |
product |
32205 |
M |
0 |
|
|
0 |
|
|
|
|
30244 |
16338 |
product |
32206 |
M |
0 |
|
|
0 |
|
|
|
|
30245 |
16339 |
product |
32207 |
M |
0 |
|
|
0 |
|
|
|
|
30246 |
16340 |
product |
32208 |
M |
0 |
|
|
0 |
|
|
|
|
30247 |
16341 |
product |
32209 |
M |
0 |
|
|
0 |
|
|
|
|
30248 |
16342 |
product |
32210 |
M |
0 |
|
|
0 |
|
|
|
|
30249 |
16343 |
product |
32211 |
M |
0 |
|
|
0 |
|
|
|
|
30250 |
16344 |
product |
32212 |
M |
0 |
|
|
0 |
|
|
|
|
30251 |
16345 |
product |
32213 |
M |
0 |
|
|
0 |
|
|
|
|
30252 |
16346 |
product |
32214 |
M |
0 |
|
|
0 |
|
|
|
|
30253 |
16347 |
product |
32215 |
M |
0 |
|
|