Query time 0.00112
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 ('37212','37213','37214','37215','37216','37217','37218','37219','37220','37221','37222','37223','37224','37225','37226','37227')))",
"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 |
71GbsG13kjL._SL1500_.jpg |
1500 |
1000 |
N |
58359 |
37221 |
product |
60315 |
M |
0 |
|
60315 |
0 |
51egkYqDgWL._SX522_.jpg |
522 |
522 |
N |
58360 |
37224 |
product |
60316 |
M |
0 |
|
60316 |
0 |
61g74uDCxML._SL1500_.jpg |
1500 |
1500 |
N |
58361 |
37226 |
product |
60317 |
M |
0 |
|
60317 |
0 |
61_TnXip1wL._SL1500_.jpg |
1500 |
1500 |
N |
58363 |
37227 |
product |
60319 |
M |
0 |
|
60319 |
0 |
61M9Ei6OGUL._SX522_.jpg |
522 |
522 |
N |
58364 |
37220 |
product |
60320 |
M |
0 |
|
60320 |
0 |
61sFGnJTXFL._SL1500_.jpg |
1500 |
1500 |
N |
58365 |
37222 |
product |
60321 |
M |
0 |
|
60321 |
0 |
51j1L3JHcaL.jpg |
500 |
500 |
N |
58366 |
37223 |
product |
60322 |
M |
0 |
|
60322 |
0 |
51CO3CTWRSL._SL1112_.jpg |
500 |
1112 |
N |
58367 |
37225 |
product |
60323 |
M |
0 |
|
60323 |
0 |
61JO3pGuFQL._SL1500_.jpg |
1500 |
1500 |
N |
59241 |
37219 |
product |
61197 |
M |
0 |
|
61197 |
0 |
71GbsG13kjL._SL1500_.jpg |
1500 |
1000 |
N |
59242 |
37218 |
product |
61198 |
M |
0 |
|
61198 |
0 |
41R69P-xdkL._SL1000_.jpg |
805 |
1000 |
N |
59243 |
37217 |
product |
61199 |
M |
0 |
|
61199 |
0 |
51wg1qBigyL._SL1500_.jpg |
1500 |
1500 |
N |
59244 |
37216 |
product |
61200 |
M |
0 |
|
61200 |
0 |
61rKTg9KggL._SL1500_.jpg |
1500 |
1500 |
N |
59245 |
37215 |
product |
61201 |
M |
0 |
|
61201 |
0 |
81kO4t4vu3L._SL1500_.jpg |
1500 |
1500 |
N |
59246 |
37214 |
product |
61202 |
M |
0 |
|
61202 |
0 |
71-cubKjfiL._SL1500_.jpg |
1500 |
1500 |
N |
59247 |
37213 |
product |
61203 |
M |
0 |
|
61203 |
0 |
71IHQ5VK8CL._SL1500_.jpg |
1500 |
1500 |
N |
59248 |
37212 |
product |
61204 |
M |
0 |
|
61204 |