Query time 0.00138
JSON explain
{
"query_block": {
"select_id": 1,
"cost_info": {
"query_cost": "155.21"
},
"ordering_operation": {
"using_filesort": true,
"cost_info": {
"sort_cost": "29.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": 29,
"rows_produced_per_join": 29,
"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 ('2393','2394','2396','2397','2398','2399','2403','2020','2032','2042','2058','1848','1856','1868','1878','1886')))",
"cost_info": {
"read_cost": "50.81",
"eval_cost": "5.80",
"prefix_cost": "56.61",
"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": 29,
"filtered": "100.00",
"cost_info": {
"read_cost": "29.00",
"eval_cost": "5.80",
"prefix_cost": "91.41",
"data_read_per_join": "22K"
},
"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": 29,
"filtered": "100.00",
"cost_info": {
"read_cost": "29.00",
"eval_cost": "5.80",
"prefix_cost": "126.21",
"data_read_per_join": "17K"
},
"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 |
|
|
|
|
8258 |
2396 |
product |
10223 |
A |
1 |
|
|
0 |
|
|
|
|
83443 |
1848 |
product |
6863 |
A |
1 |
|
|
0 |
|
|
|
|
83447 |
1856 |
product |
6902 |
A |
1 |
|
|
0 |
|
|
|
|
83452 |
1868 |
product |
6944 |
A |
1 |
|
|
0 |
|
|
|
|
83457 |
1878 |
product |
6970 |
A |
1 |
|
|
0 |
|
|
|
|
83461 |
1886 |
product |
7053 |
A |
1 |
|
|
0 |
|
|
|
|
83515 |
2032 |
product |
7240 |
A |
1 |
|
|
0 |
|
|
|
|
83551 |
2042 |
product |
7314 |
A |
1 |
|
|
0 |
|
|
|
|
8259 |
2396 |
product |
10224 |
A |
2 |
|
|
0 |
|
|
|
|
83444 |
1848 |
product |
6864 |
A |
2 |
|
|
0 |
|
|
|
|
83448 |
1856 |
product |
6903 |
A |
2 |
|
|
0 |
|
|
|
|
83453 |
1868 |
product |
6945 |
A |
2 |
|
|
0 |
|
|
|
|
83458 |
1878 |
product |
6972 |
A |
2 |
|
|
0 |
|
|
|
|
83462 |
1886 |
product |
7054 |
A |
2 |
|
|
0 |
|
|
|
|
83516 |
2032 |
product |
7242 |
A |
2 |
|
|
0 |
|
|
|
|
83552 |
2042 |
product |
7315 |
A |
2 |
|
|
0 |
|
|
|
|
8260 |
2396 |
product |
10225 |
A |
3 |
|
|
0 |
|
|
|
|
83445 |
1848 |
product |
6865 |
A |
3 |
|
|
0 |
|
|
|
|
83449 |
1856 |
product |
6901 |
A |
3 |
|
|
0 |
|
|
|
|
83454 |
1868 |
product |
6946 |
A |
3 |
|
|
0 |
|
|
|
|
83459 |
1878 |
product |
6973 |
A |
3 |
|
|
0 |
|
|
|
|
83463 |
1886 |
product |
7055 |
A |
3 |
|
|
0 |
|
|
|
|
83517 |
2032 |
product |
7243 |
A |
3 |
|
|
0 |
|
|
|
|
83553 |
2042 |
product |
7316 |
A |
3 |
|
|
0 |
|
|
|
|
83455 |
1868 |
product |
6947 |
A |
4 |
|
|
0 |
|
|
|
|
83518 |
2032 |
product |
7244 |
A |
4 |
|
|
0 |
|
|
|
|
83519 |
2032 |
product |
7245 |
A |
5 |
|
|
0 |
|
|
|
|
4855 |
2058 |
product |
6829 |
A |
10 |
|
|
0 |
|
|
|
|
5616 |
2393 |
product |
7587 |
A |
10 |
|
|
0 |
|
|
|
|
5621 |
2397 |
product |
7592 |
A |
10 |
|
|
0 |
|
|
|
|
5624 |
2398 |
product |
7595 |
A |
10 |
|
|
0 |
|
|
|
|
5627 |
2399 |
product |
7598 |
A |
10 |
|
|
0 |
|
|
|
|
4856 |
2058 |
product |
6830 |
A |
20 |
|
|
0 |
|
|
|
|
5617 |
2393 |
product |
7588 |
A |
20 |
|
|
0 |
|
|
|
|
5622 |
2397 |
product |
7593 |
A |
20 |
|
|
0 |
|
|
|
|
5628 |
2399 |
product |
7599 |
A |
20 |
|
|
0 |
|
|
|
|
4857 |
2058 |
product |
6831 |
A |
30 |
|
|
0 |
|
|
|
|
5629 |
2399 |
product |
7600 |
A |
30 |
|
|
0 |
|
|
|
|
5676 |
2399 |
product |
7647 |
A |
30 |
|
|
0 |
|
|
|
|
4858 |
2058 |
product |
6832 |
A |
40 |
|
|
0 |
|
|
|
|
4859 |
2058 |
product |
6833 |
A |
50 |
|
|