Query time 0.00108
JSON explain
{
"query_block": {
"select_id": 1,
"cost_info": {
"query_cost": "150.41"
},
"ordering_operation": {
"using_filesort": true,
"cost_info": {
"sort_cost": "28.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": 28,
"rows_produced_per_join": 28,
"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 ('36598','36599','36600','36601','36602','36603','36604','36605','36606','36607','36608','36609','36610','36611','36615','36616')))",
"cost_info": {
"read_cost": "49.61",
"eval_cost": "5.60",
"prefix_cost": "55.21",
"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": 28,
"filtered": "100.00",
"cost_info": {
"read_cost": "28.00",
"eval_cost": "5.60",
"prefix_cost": "88.81",
"data_read_per_join": "21K"
},
"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": 28,
"filtered": "100.00",
"cost_info": {
"read_cost": "28.00",
"eval_cost": "5.60",
"prefix_cost": "122.41",
"data_read_per_join": "16K"
},
"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 |
51DF8OMA4bL._SL1000_.jpg |
1000 |
1000 |
N |
58148 |
36610 |
product |
60104 |
M |
0 |
|
60104 |
0 |
51XKXUK3pyL._SL1200_.jpg |
708 |
1200 |
N |
58151 |
36609 |
product |
60107 |
M |
0 |
|
60107 |
0 |
61OxvFLslWL._SL1500_.jpg |
1500 |
1500 |
N |
58153 |
36608 |
product |
60109 |
M |
0 |
|
60109 |
0 |
61lVvTURB3L._SL1200_.jpg |
1200 |
1200 |
N |
58155 |
36607 |
product |
60111 |
M |
0 |
|
60111 |
0 |
815-08IGf1L._SX355_.jpg |
355 |
266 |
N |
58158 |
36606 |
product |
60114 |
M |
0 |
|
60114 |
0 |
61TFmvvVRyL._SL1500_.jpg |
1500 |
1500 |
N |
58159 |
36604 |
product |
60115 |
M |
0 |
|
60115 |
0 |
71AStbsmv7L._SL1500_.jpg |
1500 |
1500 |
N |
58160 |
36603 |
product |
60116 |
M |
0 |
|
60116 |
0 |
61O_kgMMHIL._SL1500_.jpg |
1500 |
1500 |
N |
58162 |
36601 |
product |
60118 |
M |
0 |
|
60118 |
0 |
505669067_1_TableTop.jpg |
293 |
400 |
N |
58164 |
36600 |
product |
60120 |
M |
0 |
|
60120 |
0 |
712yi8m1PUL._SL1500_.jpg |
1500 |
1500 |
N |
58166 |
36599 |
product |
60122 |
M |
0 |
|
60122 |
0 |
81xthhqQ5oL._SL1500_.jpg |
1500 |
1500 |
N |
58168 |
36598 |
product |
60124 |
M |
0 |
|
60124 |
0 |
1550632955-l.jpg |
608 |
1012 |
N |
58265 |
36605 |
product |
60221 |
M |
0 |
|
60221 |
0 |
51fT5mpdLfL._SL1000_.jpg |
1000 |
1000 |
N |
58273 |
36615 |
product |
60229 |
M |
0 |
|
60229 |
0 |
700x700.jpg |
700 |
700 |
N |
58275 |
36616 |
product |
60231 |
M |
0 |
|
60231 |
0 |
am0001121_1.jpg |
800 |
800 |
N |
58302 |
36611 |
product |
60258 |
M |
0 |
|
60258 |
0 |
61Iw_9SJ8YL._SL1500_.jpg |
1500 |
1500 |
N |
58161 |
36602 |
product |
60117 |
M |
1 |
|
60117 |