Query time 0.00086
JSON explain
{
"query_block": {
"select_id": 1,
"cost_info": {
"query_cost": "203.21"
},
"ordering_operation": {
"using_filesort": true,
"cost_info": {
"sort_cost": "39.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": 39,
"rows_produced_per_join": 39,
"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 ('38210','38212','38213','38214','38215','38216','38217','38218','38219','38220','38221','38222','38223','38224','38225','35122')))",
"cost_info": {
"read_cost": "62.81",
"eval_cost": "7.80",
"prefix_cost": "70.61",
"data_read_per_join": "3K"
},
"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": 39,
"filtered": "100.00",
"cost_info": {
"read_cost": "39.00",
"eval_cost": "7.80",
"prefix_cost": "117.41",
"data_read_per_join": "29K"
},
"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": 39,
"filtered": "100.00",
"cost_info": {
"read_cost": "39.00",
"eval_cost": "7.80",
"prefix_cost": "164.21",
"data_read_per_join": "23K"
},
"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 |
|
|
|
|
56617 |
35122 |
product |
58578 |
M |
0 |
|
|
0 |
|
|
|
|
62548 |
38219 |
product |
64504 |
M |
0 |
|
|
0 |
|
|
|
|
62549 |
38218 |
product |
64505 |
M |
0 |
|
|
0 |
|
|
|
|
62550 |
38217 |
product |
64506 |
M |
0 |
|
|
0 |
|
|
|
|
62552 |
38216 |
product |
64508 |
M |
0 |
|
|
0 |
|
|
|
|
62560 |
38215 |
product |
64516 |
M |
0 |
|
|
0 |
|
|
|
|
62564 |
38214 |
product |
64520 |
M |
0 |
|
|
0 |
|
|
|
|
62567 |
38213 |
product |
64523 |
M |
0 |
|
|
0 |
|
|
|
|
62568 |
38212 |
product |
64524 |
M |
0 |
|
|
0 |
|
|
|
|
62571 |
38210 |
product |
64527 |
M |
0 |
|
|
0 |
|
|
|
|
65104 |
38222 |
product |
67055 |
M |
0 |
|
|
0 |
|
|
|
|
65106 |
38223 |
product |
67057 |
M |
0 |
|
|
0 |
|
|
|
|
65108 |
38224 |
product |
67059 |
M |
0 |
|
|
0 |
|
|
|
|
65330 |
38221 |
product |
67281 |
M |
0 |
|
|
0 |
|
|
|
|
65331 |
38225 |
product |
67282 |
M |
0 |
|
|
0 |
|
|
|
|
67601 |
38220 |
product |
69552 |
M |
0 |
|
|
0 |
|
|
|
|
83024 |
38222 |
product |
84967 |
M |
0 |
|
|