Query time 0.00101
JSON explain
{
"query_block": {
"select_id": 1,
"cost_info": {
"query_cost": "140.81"
},
"ordering_operation": {
"using_filesort": true,
"cost_info": {
"sort_cost": "26.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": 26,
"rows_produced_per_join": 26,
"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 ('31089','31090','31091','31092','31093','31094','31095','31096','31097','31098','31099','31100','31101','31102','31103','31104')))",
"cost_info": {
"read_cost": "47.21",
"eval_cost": "5.20",
"prefix_cost": "52.41",
"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.detailed_id"
],
"rows_examined_per_scan": 1,
"rows_produced_per_join": 26,
"filtered": "100.00",
"cost_info": {
"read_cost": "26.00",
"eval_cost": "5.20",
"prefix_cost": "83.61",
"data_read_per_join": "19K"
},
"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": 26,
"filtered": "100.00",
"cost_info": {
"read_cost": "26.00",
"eval_cost": "5.20",
"prefix_cost": "114.81",
"data_read_per_join": "15K"
},
"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 |
51b4-A4NnfL._SL1000_.jpg |
1000 |
1000 |
N |
49595 |
31093 |
product |
51556 |
M |
0 |
|
51556 |
0 |
712436E-7xL._SL1000_.jpg |
1000 |
1000 |
N |
49597 |
31092 |
product |
51558 |
M |
0 |
|
51558 |
0 |
61ytmQM4YVL._SL1000_.jpg |
1000 |
1000 |
N |
49598 |
31091 |
product |
51559 |
M |
0 |
|
51559 |
0 |
71RlAmtvwtL._SL1000_.jpg |
1000 |
1000 |
N |
49599 |
31090 |
product |
51560 |
M |
0 |
|
51560 |
0 |
61mDgKH4GZL._SL1000_.jpg |
1000 |
1000 |
N |
49602 |
31089 |
product |
51563 |
M |
0 |
|
51563 |
0 |
71Scw1x8A3L._SL1000_.jpg |
1000 |
1000 |
N |
49712 |
31104 |
product |
51673 |
M |
0 |
|
51673 |
0 |
711M6m3-TGL._SL1000_.jpg |
1000 |
1000 |
N |
49713 |
31103 |
product |
51674 |
M |
0 |
|
51674 |
0 |
61FIqg6ZpBL._SL1000_.jpg |
1000 |
1000 |
N |
49715 |
31102 |
product |
51676 |
M |
0 |
|
51676 |
0 |
51bjv5uq6hL._SL1000_.jpg |
1000 |
1000 |
N |
49717 |
31101 |
product |
51678 |
M |
0 |
|
51678 |
0 |
71gtCOK7oUL._SL1000_.jpg |
1000 |
1000 |
N |
49719 |
31100 |
product |
51680 |
M |
0 |
|
51680 |
0 |
51RRqDkGuSL._SL1024_.jpg |
1024 |
1024 |
N |
49721 |
31099 |
product |
51682 |
M |
0 |
|
51682 |
0 |
611Ceg8bZ2L._SL1024_.jpg |
1024 |
1024 |
N |
49723 |
31098 |
product |
51684 |
M |
0 |
|
51684 |
0 |
51c96ll2lkL._SL1024_.jpg |
1024 |
1024 |
N |
49724 |
31097 |
product |
51685 |
M |
0 |
|
51685 |
0 |
51mOsb64XNL._SL1000_.jpg |
1000 |
1000 |
N |
49726 |
31096 |
product |
51687 |
M |
0 |
|
51687 |
0 |
816WUFmbCaL._SL1000_.jpg |
1000 |
1000 |
N |
49727 |
31094 |
product |
51688 |
M |
0 |
|
51688 |
0 |
61_FWL4CW9L._SL1024_.jpg |
1024 |
1024 |
N |
65534 |
31095 |
product |
67485 |
M |
0 |
|
67485 |