Query time 0.00124
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 ('37196','37197','37198','37199','37200','37201','37202','37203','37204','37205','37206','37207','37208','37209','37210','37211')))",
"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 |
51nIUMCcKLL._SL1000_.jpg |
1000 |
1000 |
N |
59249 |
37211 |
product |
61205 |
M |
0 |
|
61205 |
0 |
61MN_x56qQL._SL1500_.jpg |
1500 |
1500 |
N |
59250 |
37210 |
product |
61206 |
M |
0 |
|
61206 |
0 |
51hobz_HV1L.jpg |
500 |
500 |
N |
59251 |
37209 |
product |
61207 |
M |
0 |
|
61207 |
0 |
71S_JK8GaDL._SL1500_.jpg |
1500 |
1500 |
N |
59252 |
37207 |
product |
61208 |
M |
0 |
|
61208 |
0 |
51nLodcad0L._SL1500_.jpg |
1500 |
1500 |
N |
59258 |
37206 |
product |
61214 |
M |
0 |
|
61214 |
0 |
31ijQPQrZqL.jpg |
500 |
375 |
N |
59266 |
37205 |
product |
61222 |
M |
0 |
|
61222 |
0 |
41EzJDnYLZL.jpg |
500 |
500 |
N |
59267 |
37204 |
product |
61223 |
M |
0 |
|
61223 |
0 |
81zNDdePjFL._SL1500_.jpg |
1500 |
1125 |
N |
59268 |
37203 |
product |
61224 |
M |
0 |
|
61224 |
0 |
51lR2j5O0NL._SL1000_.jpg |
1000 |
1000 |
N |
59276 |
37202 |
product |
61232 |
M |
0 |
|
61232 |
0 |
511Hkn3zB7L._SL1000_.jpg |
1000 |
1000 |
N |
59282 |
37201 |
product |
61238 |
M |
0 |
|
61238 |
0 |
81DCuQh6JYL._SL1500_.jpg |
795 |
1500 |
N |
59283 |
37200 |
product |
61239 |
M |
0 |
|
61239 |
0 |
71yJAKL3UXL._SL1500_.jpg |
1500 |
1500 |
N |
59286 |
37198 |
product |
61242 |
M |
0 |
|
61242 |
0 |
811e7n_sA2L._SL1500_.jpg |
1500 |
1500 |
N |
59287 |
37197 |
product |
61243 |
M |
0 |
|
61243 |
0 |
41F7oi2LA1L.jpg |
500 |
500 |
N |
62016 |
37208 |
product |
63972 |
M |
0 |
|
63972 |
0 |
41xtjMBaGmL.jpg |
500 |
500 |
N |
62303 |
37196 |
product |
64259 |
M |
0 |
|
64259 |
0 |
51U3nSNXphL._SX425_.jpg |
425 |
363 |
N |
62305 |
37199 |
product |
64261 |
M |
0 |
|
64261 |