Query time 0.00139
JSON explain
{
"query_block": {
"select_id": 1,
"cost_info": {
"query_cost": "174.41"
},
"ordering_operation": {
"using_filesort": true,
"cost_info": {
"sort_cost": "33.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": 33,
"rows_produced_per_join": 33,
"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 ('9789','9790','9791','9792','9793','9794','9795','9796','9797','9798','9799','9800','9801','9802','9803','9804')))",
"cost_info": {
"read_cost": "55.61",
"eval_cost": "6.60",
"prefix_cost": "62.21",
"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": 33,
"filtered": "100.00",
"cost_info": {
"read_cost": "33.00",
"eval_cost": "6.60",
"prefix_cost": "101.81",
"data_read_per_join": "25K"
},
"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": 33,
"filtered": "100.00",
"cost_info": {
"read_cost": "33.00",
"eval_cost": "6.60",
"prefix_cost": "141.41",
"data_read_per_join": "19K"
},
"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 |
|
|
|
|
25113 |
9790 |
product |
27075 |
A |
1 |
|
|
0 |
|
|
|
|
25115 |
9791 |
product |
27077 |
A |
1 |
|
|
0 |
|
|
|
|
25123 |
9793 |
product |
27085 |
A |
1 |
|
|
0 |
|
|
|
|
25127 |
9794 |
product |
27089 |
A |
1 |
|
|
0 |
|
|
|
|
25132 |
9789 |
product |
27094 |
A |
1 |
|
|
0 |
|
|
|
|
25134 |
9795 |
product |
27096 |
A |
1 |
|
|
0 |
|
|
|
|
25135 |
9796 |
product |
27097 |
A |
1 |
|
|
0 |
|
|
|
|
25138 |
9797 |
product |
27100 |
A |
1 |
|
|
0 |
|
|
|
|
25140 |
9798 |
product |
27102 |
A |
1 |
|
|
0 |
|
|
|
|
25145 |
9799 |
product |
27107 |
A |
1 |
|
|
0 |
|
|
|
|
25148 |
9800 |
product |
27110 |
A |
1 |
|
|
0 |
|
|
|
|
25121 |
9792 |
product |
27083 |
A |
2 |
|
|
0 |
|
|
|
|
25124 |
9793 |
product |
27086 |
A |
2 |
|
|
0 |
|
|
|
|
25128 |
9794 |
product |
27090 |
A |
2 |
|
|
0 |
|
|
|
|
25133 |
9789 |
product |
27095 |
A |
2 |
|
|
0 |
|
|
|
|
25136 |
9796 |
product |
27098 |
A |
2 |
|
|
0 |
|
|
|
|
25141 |
9798 |
product |
27103 |
A |
2 |
|
|
0 |
|
|
|
|
25146 |
9799 |
product |
27108 |
A |
2 |
|
|
0 |
|
|
|
|
25149 |
9800 |
product |
27111 |
A |
2 |
|
|
0 |
|
|
|
|
25116 |
9791 |
product |
27078 |
A |
3 |
|
|
0 |
|
|
|
|
25122 |
9792 |
product |
27084 |
A |
3 |
|
|
0 |
|
|
|
|
25125 |
9793 |
product |
27087 |
A |
3 |
|
|
0 |
|
|
|
|
25129 |
9794 |
product |
27091 |
A |
3 |
|
|
0 |
|
|
|
|
25137 |
9796 |
product |
27099 |
A |
3 |
|
|
0 |
|
|
|
|
25139 |
9797 |
product |
27101 |
A |
3 |
|
|
0 |
|
|
|
|
25142 |
9798 |
product |
27104 |
A |
3 |
|
|
0 |
|
|
|
|
25147 |
9799 |
product |
27109 |
A |
3 |
|
|
0 |
|
|
|
|
25150 |
9800 |
product |
27112 |
A |
3 |
|
|
0 |
|
|
|
|
25117 |
9791 |
product |
27079 |
A |
4 |
|
|
0 |
|
|
|
|
25126 |
9793 |
product |
27088 |
A |
4 |
|
|
0 |
|
|
|
|
25130 |
9794 |
product |
27092 |
A |
4 |
|
|
0 |
|
|
|
|
25143 |
9798 |
product |
27105 |
A |
4 |
|
|
0 |
|
|
|
|
25118 |
9791 |
product |
27080 |
A |
5 |
|
|
0 |
|
|
|
|
25119 |
9791 |
product |
27081 |
A |
6 |
|
|