Query time 0.00214
JSON explain
{
"query_block": {
"select_id": 1,
"cost_info": {
"query_cost": "222.01"
},
"ordering_operation": {
"using_filesort": true,
"cost_info": {
"sort_cost": "40.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": 40,
"rows_produced_per_join": 40,
"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 ('513','514','467','468','469','470','471','472','473','474','475','476','477','478','479','480','481','482','483','484','485','486','487','488','490','491','492','493','494','495')))",
"cost_info": {
"read_cost": "78.01",
"eval_cost": "8.00",
"prefix_cost": "86.01",
"data_read_per_join": "3K"
},
"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": 40,
"filtered": "100.00",
"cost_info": {
"read_cost": "40.00",
"eval_cost": "8.00",
"prefix_cost": "134.01",
"data_read_per_join": "30K"
},
"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": 40,
"filtered": "100.00",
"cost_info": {
"read_cost": "40.00",
"eval_cost": "8.00",
"prefix_cost": "182.01",
"data_read_per_join": "23K"
},
"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 |
|
|
|
|
968 |
467 |
product |
2945 |
A |
1 |
|
|
0 |
|
|
|
|
970 |
468 |
product |
2947 |
A |
1 |
|
|
0 |
|
|
|
|
971 |
468 |
product |
2948 |
A |
2 |
|
|
0 |
|
|
|
|
973 |
469 |
product |
2950 |
A |
10 |
|
|
0 |
|
|
|
|
975 |
470 |
product |
2952 |
A |
10 |
|
|
0 |
|
|
|
|
977 |
471 |
product |
2954 |
A |
10 |
|
|
0 |
|
|
|
|
979 |
472 |
product |
2956 |
A |
10 |
|
|
0 |
|
|
|
|
981 |
473 |
product |
2958 |
A |
10 |
|
|
0 |
|
|
|
|
984 |
475 |
product |
2961 |
A |
10 |
|
|
0 |
|
|
|
|
986 |
476 |
product |
2963 |
A |
10 |
|
|
0 |
|
|
|
|
988 |
477 |
product |
2965 |
A |
10 |
|
|
0 |
|
|
|
|
990 |
478 |
product |
2967 |
A |
10 |
|
|
0 |
|
|
|
|
992 |
479 |
product |
2969 |
A |
10 |
|
|
0 |
|
|
|
|
994 |
480 |
product |
2971 |
A |
10 |
|
|
0 |
|
|
|
|
996 |
481 |
product |
2973 |
A |
10 |
|
|
0 |
|
|
|
|
998 |
482 |
product |
2975 |
A |
10 |
|
|
0 |
|
|
|
|
1000 |
483 |
product |
2977 |
A |
10 |
|
|
0 |
|
|
|
|
1002 |
484 |
product |
2979 |
A |
10 |
|
|
0 |
|
|
|
|
1004 |
485 |
product |
2981 |
A |
10 |
|
|
0 |
|
|
|
|
1006 |
486 |
product |
2983 |
A |
10 |
|
|
0 |
|
|
|
|
1008 |
487 |
product |
2985 |
A |
10 |
|
|
0 |
|
|
|
|
1010 |
488 |
product |
2987 |
A |
10 |
|
|
0 |
|
|
|
|
1014 |
490 |
product |
2991 |
A |
10 |
|
|
0 |
|
|
|
|
1016 |
491 |
product |
2993 |
A |
10 |
|
|
0 |
|
|
|
|
1018 |
492 |
product |
2995 |
A |
10 |
|
|
0 |
|
|
|
|
1020 |
493 |
product |
2997 |
A |
10 |
|
|
0 |
|
|
|
|
1022 |
494 |
product |
2999 |
A |
10 |
|
|
0 |
|
|
|
|
1024 |
495 |
product |
3001 |
A |
10 |
|
|
0 |
|
|
|
|
1060 |
513 |
product |
3037 |
A |
10 |
|
|
0 |
|
|
|
|
1062 |
514 |
product |
3039 |
A |
10 |
|
|