Query time 0.00149
JSON explain
{
"query_block": {
"select_id": 1,
"cost_info": {
"query_cost": "92.81"
},
"ordering_operation": {
"using_filesort": true,
"cost_info": {
"sort_cost": "16.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": 16,
"rows_produced_per_join": 16,
"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 ('4525','4526','4527','4528','4529','4530','4531','4532','4533','4534','4535','2929','2930','2931','2932','2933')))",
"cost_info": {
"read_cost": "35.21",
"eval_cost": "3.20",
"prefix_cost": "38.41",
"data_read_per_join": "1K"
},
"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": 16,
"filtered": "100.00",
"cost_info": {
"read_cost": "16.00",
"eval_cost": "3.20",
"prefix_cost": "57.61",
"data_read_per_join": "12K"
},
"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": 16,
"filtered": "100.00",
"cost_info": {
"read_cost": "16.00",
"eval_cost": "3.20",
"prefix_cost": "76.81",
"data_read_per_join": "9K"
},
"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 |
s-l1000_tu0u-z0.jpg |
800 |
500 |
N |
82408 |
2932 |
product |
84351 |
A |
1 |
|
84351 |
0 |
1551207285-5066-540x600.jpeg |
525 |
600 |
N |
6358 |
2929 |
product |
8326 |
A |
10 |
|
8326 |
0 |
1551207532-0071-540x600.jpeg |
298 |
599 |
N |
6360 |
2930 |
product |
8328 |
A |
10 |
|
8328 |
0 |
1556.jpg |
800 |
800 |
N |
6365 |
2933 |
product |
8333 |
A |
10 |
|
8333 |
0 |
3423478807556_3108fa02b6a4f3aa6aab2f45fe5e8d47.jpg |
900 |
900 |
N |
9734 |
4526 |
product |
11699 |
A |
10 |
|
11699 |
0 |
narciso-rodriguez-fleur-musc-for-her.jpg |
1024 |
768 |
N |
9736 |
4527 |
product |
11701 |
A |
10 |
|
11701 |
0 |
Narciso_Rodriguez_for_Him_100_ml_Eau_de_Toilette_3423470880014.png |
762 |
1080 |
N |
9738 |
4528 |
product |
11703 |
A |
10 |
|
11703 |
0 |
s-l1000_a3qw-8a.jpg |
1000 |
1000 |
N |
9740 |
4529 |
product |
11705 |
A |
10 |
|
11705 |
0 |
Narciso-edt-w.jpg |
900 |
900 |
N |
9742 |
4530 |
product |
11707 |
A |
10 |
|
11707 |
0 |
Narciso-Rodriguez-Narciso-Eau-De-Toilette-90ml-3423478837157-30.jpg |
1852 |
2000 |
N |
9744 |
4531 |
product |
11709 |
A |
10 |
|
11709 |
0 |
Narciso-Rodriguez-Narciso-Poudree-Eau-De-Parfum-90ml-3423478840652-30.jpg |
1729 |
2000 |
N |
9746 |
4532 |
product |
11711 |
A |
10 |
|
11711 |
0 |
Narciso-Rodriguez-Narciso-Rouge-Eau-De-Parfum-90ml-3423478844858-30.jpg |
1688 |
2000 |
N |
9748 |
4533 |
product |
11713 |
A |
10 |
|
11713 |
0 |
3423478504059_10ee67a774da2bf1f0eef95dd41dbff8.jpg |
900 |
900 |
N |
9750 |
4534 |
product |
11715 |
A |
10 |
|
11715 |
0 |
narciso-rodriguez-for-him-narciso-rodriguez-for-him-eau-de-parfum-100-ml-3423470880410.png |
700 |
860 |
N |
10036 |
4525 |
product |
12001 |
A |
10 |
|
12001 |
0 |
21575184306-1-700.jpg |
700 |
700 |
N |
82405 |
2929 |
product |
84348 |
A |
11 |
|
84348 |
0 |
1551207532-0071-540x600.jpeg |
298 |
599 |
N |
82406 |
2930 |
product |
84349 |
A |
11 |
|
84349 |
0 |
15423184306.jpg |
350 |
350 |
N |
82407 |
2931 |
product |
84350 |
A |
11 |
|
84350 |
0 |
1556.jpg |
800 |
800 |
N |
82409 |
2933 |
product |
84352 |
A |
11 |
|
84352 |