Query time 0.00062
JSON explain
{
"query_block": {
"select_id": 1,
"cost_info": {
"query_cost": "30.81"
},
"ordering_operation": {
"using_filesort": true,
"cost_info": {
"sort_cost": "6.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": 6,
"rows_produced_per_join": 6,
"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 ('45983','45984')))",
"cost_info": {
"read_cost": "9.21",
"eval_cost": "1.20",
"prefix_cost": "10.41",
"data_read_per_join": "576"
},
"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.detailed_id"
],
"rows_examined_per_scan": 1,
"rows_produced_per_join": 6,
"filtered": "100.00",
"cost_info": {
"read_cost": "6.00",
"eval_cost": "1.20",
"prefix_cost": "17.61",
"data_read_per_join": "4K"
},
"used_columns": [
"image_id",
"image_path",
"image_x",
"image_y",
"is_high_res"
],
"attached_condition": "<if>(is_not_null_compl(q_images), (`portal`.`q_images_links`.`detailed_id` = `portal`.`q_images`.`image_id`), true)"
}
},
{
"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": 6,
"filtered": "100.00",
"cost_info": {
"read_cost": "6.00",
"eval_cost": "1.20",
"prefix_cost": "24.81",
"data_read_per_join": "3K"
},
"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 |
31N4fdN82aL._AC_.jpg |
372 |
474 |
N |
75834 |
45983 |
product |
77777 |
A |
1 |
|
77777 |
0 |
31E7vqu5lEL._AC_.jpg |
372 |
473 |
N |
75837 |
45984 |
product |
77780 |
A |
1 |
|
77780 |
0 |
31PsGLkhRIL._AC_.jpg |
474 |
438 |
N |
75835 |
45983 |
product |
77778 |
A |
2 |
|
77778 |
0 |
41wBMcUhpaL._AC_.jpg |
396 |
486 |
N |
75838 |
45984 |
product |
77781 |
A |
2 |
|
77781 |
0 |
31IjFcIsxLL._AC_.jpg |
498 |
342 |
N |
75836 |
45983 |
product |
77779 |
A |
3 |
|
77779 |
0 |
31YbM5YNb-L._AC_.jpg |
474 |
438 |
N |
75839 |
45984 |
product |
77782 |
A |
3 |
|
77782 |
0 |
31VlTptO-yL._AC_.jpg |
498 |
277 |
N |
75840 |
45984 |
product |
77783 |
A |
4 |
|
77783 |