Query time 0.00082
JSON explain
{
"query_block": {
"select_id": 1,
"cost_info": {
"query_cost": "241.61"
},
"ordering_operation": {
"using_filesort": true,
"cost_info": {
"sort_cost": "47.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": 47,
"rows_produced_per_join": 47,
"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 ('30370','30371','30372','30373','30374','30375','30376','30377','30378','30379','30380','30381','30382','30383','30384','30385')))",
"cost_info": {
"read_cost": "72.41",
"eval_cost": "9.40",
"prefix_cost": "81.81",
"data_read_per_join": "4K"
},
"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": 47,
"filtered": "100.00",
"cost_info": {
"read_cost": "47.00",
"eval_cost": "9.40",
"prefix_cost": "138.21",
"data_read_per_join": "35K"
},
"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": 47,
"filtered": "100.00",
"cost_info": {
"read_cost": "47.00",
"eval_cost": "9.40",
"prefix_cost": "194.61",
"data_read_per_join": "27K"
},
"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 |
|
|
|
|
49185 |
30385 |
product |
51146 |
M |
0 |
|
|
0 |
|
|
|
|
49187 |
30383 |
product |
51148 |
M |
0 |
|
|
0 |
|
|
|
|
49189 |
30381 |
product |
51150 |
M |
0 |
|
|
0 |
|
|
|
|
49193 |
30380 |
product |
51154 |
M |
0 |
|
|
0 |
|
|
|
|
49195 |
30379 |
product |
51156 |
M |
0 |
|
|
0 |
|
|
|
|
49197 |
30378 |
product |
51158 |
M |
0 |
|
|
0 |
|
|
|
|
49198 |
30376 |
product |
51159 |
M |
0 |
|
|
0 |
|
|
|
|
49201 |
30377 |
product |
51162 |
M |
0 |
|
|
0 |
|
|
|
|
49205 |
30375 |
product |
51166 |
M |
0 |
|
|
0 |
|
|
|
|
49207 |
30374 |
product |
51168 |
M |
0 |
|
|
0 |
|
|
|
|
49208 |
30373 |
product |
51169 |
M |
0 |
|
|
0 |
|
|
|
|
49210 |
30372 |
product |
51171 |
M |
0 |
|
|
0 |
|
|
|
|
49213 |
30371 |
product |
51174 |
M |
0 |
|
|
0 |
|
|
|
|
49215 |
30370 |
product |
51176 |
M |
0 |
|
|
0 |
|
|
|
|
49321 |
30384 |
product |
51282 |
M |
0 |
|
|
0 |
|
|
|
|
49322 |
30382 |
product |
51283 |
M |
0 |
|
|