Query time 0.00091
JSON explain
{
"query_block": {
"select_id": 1,
"cost_info": {
"query_cost": "150.41"
},
"ordering_operation": {
"using_filesort": true,
"cost_info": {
"sort_cost": "28.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": 28,
"rows_produced_per_join": 28,
"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 ('37196','37197','37198','37199','37200','37201','37202','37203','37204','37205','37206','37207','37208','37209','37210','37211')))",
"cost_info": {
"read_cost": "49.61",
"eval_cost": "5.60",
"prefix_cost": "55.21",
"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": 28,
"filtered": "100.00",
"cost_info": {
"read_cost": "28.00",
"eval_cost": "5.60",
"prefix_cost": "88.81",
"data_read_per_join": "21K"
},
"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": 28,
"filtered": "100.00",
"cost_info": {
"read_cost": "28.00",
"eval_cost": "5.60",
"prefix_cost": "122.41",
"data_read_per_join": "16K"
},
"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 |
|
|
|
|
59249 |
37211 |
product |
61205 |
M |
0 |
|
|
0 |
|
|
|
|
59250 |
37210 |
product |
61206 |
M |
0 |
|
|
0 |
|
|
|
|
59251 |
37209 |
product |
61207 |
M |
0 |
|
|
0 |
|
|
|
|
59252 |
37207 |
product |
61208 |
M |
0 |
|
|
0 |
|
|
|
|
59258 |
37206 |
product |
61214 |
M |
0 |
|
|
0 |
|
|
|
|
59266 |
37205 |
product |
61222 |
M |
0 |
|
|
0 |
|
|
|
|
59267 |
37204 |
product |
61223 |
M |
0 |
|
|
0 |
|
|
|
|
59268 |
37203 |
product |
61224 |
M |
0 |
|
|
0 |
|
|
|
|
59276 |
37202 |
product |
61232 |
M |
0 |
|
|
0 |
|
|
|
|
59282 |
37201 |
product |
61238 |
M |
0 |
|
|
0 |
|
|
|
|
59283 |
37200 |
product |
61239 |
M |
0 |
|
|
0 |
|
|
|
|
59286 |
37198 |
product |
61242 |
M |
0 |
|
|
0 |
|
|
|
|
59287 |
37197 |
product |
61243 |
M |
0 |
|
|
0 |
|
|
|
|
62016 |
37208 |
product |
63972 |
M |
0 |
|
|
0 |
|
|
|
|
62303 |
37196 |
product |
64259 |
M |
0 |
|
|
0 |
|
|
|
|
62305 |
37199 |
product |
64261 |
M |
0 |
|
|