Query time 0.00308
JSON explain
{
"query_block": {
"select_id": 1,
"cost_info": {
"query_cost": "112.01"
},
"ordering_operation": {
"using_filesort": true,
"cost_info": {
"sort_cost": "20.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": 20,
"rows_produced_per_join": 20,
"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 ('35632','35633','35634','35635','35636','35637','35638','35639','35640','35641','35642','35643','35644','35645','35646','35647')))",
"cost_info": {
"read_cost": "40.01",
"eval_cost": "4.00",
"prefix_cost": "44.01",
"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": 20,
"filtered": "100.00",
"cost_info": {
"read_cost": "20.00",
"eval_cost": "4.00",
"prefix_cost": "68.01",
"data_read_per_join": "15K"
},
"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": 20,
"filtered": "100.00",
"cost_info": {
"read_cost": "20.00",
"eval_cost": "4.00",
"prefix_cost": "92.01",
"data_read_per_join": "11K"
},
"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 |
375x500.43319.jpg |
375 |
500 |
N |
57647 |
35632 |
product |
59607 |
M |
0 |
|
59607 |
0 |
375x500.28120.jpg |
375 |
500 |
N |
57648 |
35633 |
product |
59608 |
M |
0 |
|
59608 |
0 |
375x500.31893.jpg |
375 |
500 |
N |
57650 |
35634 |
product |
59610 |
M |
0 |
|
59610 |
0 |
MNPNCZ028-1000x1000.jpg |
1000 |
1000 |
N |
57655 |
35640 |
product |
59615 |
M |
0 |
|
59615 |
0 |
375x500.3241.jpg |
375 |
500 |
N |
57656 |
35639 |
product |
59616 |
M |
0 |
|
59616 |
0 |
375x500.53632.jpg |
375 |
500 |
N |
57659 |
35642 |
product |
59619 |
M |
0 |
|
59619 |
0 |
375x500.36827.jpg |
375 |
500 |
N |
57661 |
35643 |
product |
59621 |
M |
0 |
|
59621 |
0 |
375x500.3764.jpg |
375 |
500 |
N |
57662 |
35644 |
product |
59622 |
M |
0 |
|
59622 |
0 |
375x500.28119.jpg |
375 |
500 |
N |
57667 |
35645 |
product |
59627 |
M |
0 |
|
59627 |
0 |
375x500.5142.jpg |
375 |
500 |
N |
57669 |
35646 |
product |
59629 |
M |
0 |
|
59629 |
0 |
375x500.9225.jpg |
375 |
500 |
N |
57670 |
35647 |
product |
59630 |
M |
0 |
|
59630 |
0 |
375x500.51492.jpg |
375 |
500 |
N |
57714 |
35636 |
product |
59674 |
M |
0 |
|
59674 |
0 |
375x500.9470.jpg |
375 |
500 |
N |
57716 |
35637 |
product |
59676 |
M |
0 |
|
59676 |
0 |
375x500.23365.jpg |
375 |
500 |
N |
57725 |
35641 |
product |
59685 |
M |
0 |
|
59685 |
0 |
MNPNCZ027-1000x1000.jpg |
1000 |
1000 |
N |
59177 |
35638 |
product |
61133 |
M |
0 |
|
61133 |
0 |
Intense-Tiare-EDP-100-ml_19520144_1484b3468f5a59123d18f80c5fd68551_t.jpg |
257 |
320 |
N |
59193 |
35635 |
product |
61149 |
M |
2 |
|
61149 |