Query time 0.00120
JSON explain
{
"query_block": {
"select_id": 1,
"cost_info": {
"query_cost": "164.81"
},
"ordering_operation": {
"using_filesort": true,
"cost_info": {
"sort_cost": "31.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": 31,
"rows_produced_per_join": 31,
"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 ('10030','10031','10032','10033','10034','10035','10036','10037','10038','10041','10042','10043','10045','10046','10048','10049')))",
"cost_info": {
"read_cost": "53.21",
"eval_cost": "6.20",
"prefix_cost": "59.41",
"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": 31,
"filtered": "100.00",
"cost_info": {
"read_cost": "31.00",
"eval_cost": "6.20",
"prefix_cost": "96.61",
"data_read_per_join": "23K"
},
"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": 31,
"filtered": "100.00",
"cost_info": {
"read_cost": "31.00",
"eval_cost": "6.20",
"prefix_cost": "133.81",
"data_read_per_join": "18K"
},
"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 |
|
|
|
|
18549 |
10033 |
product |
20511 |
A |
1 |
|
|
0 |
|
|
|
|
18585 |
10045 |
product |
20547 |
A |
1 |
|
|
0 |
|
|
|
|
18645 |
10037 |
product |
20607 |
A |
1 |
|
|
0 |
|
|
|
|
85017 |
10043 |
product |
20631 |
A |
1 |
|
|
0 |
|
|
|
|
85021 |
10046 |
product |
20635 |
A |
1 |
|
|
0 |
|
|
|
|
85023 |
10041 |
product |
20684 |
A |
1 |
|
|
0 |
|
|
|
|
18550 |
10033 |
product |
20512 |
A |
2 |
|
|
0 |
|
|
|
|
18586 |
10045 |
product |
20548 |
A |
2 |
|
|
0 |
|
|
|
|
85018 |
10043 |
product |
20632 |
A |
2 |
|
|
0 |
|
|
|
|
85024 |
10041 |
product |
20685 |
A |
2 |
|
|
0 |
|
|
|
|
18646 |
10037 |
product |
20608 |
A |
3 |
|
|
0 |
|
|
|
|
85019 |
10043 |
product |
20633 |
A |
3 |
|
|
0 |
|
|
|
|
18647 |
10037 |
product |
20609 |
A |
4 |
|
|
0 |
|
|
|
|
18537 |
10030 |
product |
20499 |
A |
10 |
|
|
0 |
|
|
|
|
18540 |
10031 |
product |
20502 |
A |
10 |
|
|
0 |
|
|
|
|
18545 |
10032 |
product |
20507 |
A |
10 |
|
|
0 |
|
|
|
|
18552 |
10034 |
product |
20514 |
A |
10 |
|
|
0 |
|
|
|
|
18554 |
10035 |
product |
20516 |
A |
10 |
|
|
0 |
|
|
|
|
18561 |
10038 |
product |
20523 |
A |
10 |
|
|
0 |
|
|
|
|
18572 |
10042 |
product |
20534 |
A |
10 |
|
|
0 |
|
|
|
|
18592 |
10048 |
product |
20554 |
A |
10 |
|
|
0 |
|
|
|
|
18596 |
10049 |
product |
20558 |
A |
10 |
|
|
0 |
|
|
|
|
18538 |
10030 |
product |
20500 |
A |
20 |
|
|
0 |
|
|
|
|
18541 |
10031 |
product |
20503 |
A |
20 |
|
|
0 |
|
|
|
|
18546 |
10032 |
product |
20508 |
A |
20 |
|
|
0 |
|
|
|
|
18555 |
10035 |
product |
20517 |
A |
20 |
|
|
0 |
|
|
|
|
18573 |
10042 |
product |
20535 |
A |
20 |
|
|
0 |
|
|
|
|
18593 |
10048 |
product |
20555 |
A |
20 |
|
|
0 |
|
|
|
|
18597 |
10049 |
product |
20559 |
A |
20 |
|
|
0 |
|
|
|
|
18542 |
10031 |
product |
20504 |
A |
30 |
|
|
0 |
|
|
|
|
18547 |
10032 |
product |
20509 |
A |
30 |
|
|
0 |
|
|
|
|
18556 |
10035 |
product |
20518 |
A |
30 |
|
|
0 |
|
|
|
|
18574 |
10042 |
product |
20536 |
A |
30 |
|
|
0 |
|
|
|
|
18594 |
10048 |
product |
20556 |
A |
30 |
|
|
0 |
|
|
|
|
18598 |
10049 |
product |
20560 |
A |
30 |
|
|
0 |
|
|
|
|
18543 |
10031 |
product |
20505 |
A |
40 |
|
|
0 |
|
|
|
|
18548 |
10032 |
product |
20510 |
A |
40 |
|
|
0 |
|
|
|
|
18557 |
10035 |
product |
20519 |
A |
40 |
|
|
0 |
|
|
|
|
18575 |
10042 |
product |
20537 |
A |
40 |
|
|
0 |
|
|
|
|
18599 |
10049 |
product |
20561 |
A |
40 |
|
|
0 |
|
|
|
|
18576 |
10042 |
product |
20538 |
A |
50 |
|
|
0 |
|
|
|
|
18577 |
10042 |
product |
20539 |
A |
60 |
|
|