Query time 0.00481
JSON explain
{
"query_block": {
"select_id": 1,
"cost_info": {
"query_cost": "190.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 ('13593','13601','14240','14241','14242','14243','14244','14245','14246','14247','14248','14249','14250','14251','14252','14253','14254','14255','14256','14257','14258','14259','14260','14261','14263','14264','14265','14266','14267','14268','14269','14270')))",
"cost_info": {
"read_cost": "71.61",
"eval_cost": "6.60",
"prefix_cost": "78.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.detailed_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": "117.81",
"data_read_per_join": "25K"
},
"used_columns": [
"image_id",
"image_path",
"image_x",
"image_y",
"is_high_res"
],
"attached_condition": "<if>(is_not_null_compl(q_images), (`portal`.`q_images_links`.`detailed_id` = `portal`.`q_images`.`image_id`), true)"
}
},
{
"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": "157.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 |
BE_38C35.jpg |
1127 |
1517 |
N |
28146 |
14240 |
product |
30108 |
A |
1 |
|
30108 |
0 |
BE_46C01.jpg |
1130 |
1515 |
N |
28148 |
14242 |
product |
30110 |
A |
1 |
|
30110 |
0 |
BE_48C20.jpg |
1130 |
1515 |
N |
28149 |
14243 |
product |
30111 |
A |
1 |
|
30111 |
0 |
BE_215C01.jpg |
1433 |
1920 |
N |
28150 |
14244 |
product |
30112 |
A |
1 |
|
30112 |
0 |
717a7GR5UhL._UL1500_.jpg |
1500 |
1216 |
N |
59954 |
14248 |
product |
61910 |
A |
1 |
|
61910 |
0 |
610Cxj2IxzL._UX675_.jpg |
675 |
499 |
N |
59955 |
14247 |
product |
61911 |
A |
1 |
|
61911 |
0 |
71aFqMPt6DL._SX425_.jpg |
425 |
361 |
N |
59953 |
14246 |
product |
61909 |
A |
2 |
|
61909 |