Query time 0.00165
JSON explain
{
"query_block": {
"select_id": 1,
"cost_info": {
"query_cost": "198.01"
},
"ordering_operation": {
"using_filesort": true,
"cost_info": {
"sort_cost": "35.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": 35,
"rows_produced_per_join": 35,
"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 ('16250','16253','16257','16259','16260','16263','16266','16267','16268','16269','16270','16271','16274','16275','16295','16296','16299','16300','16302','16303','16304','16305','16306','16310','16311','16312','16313','16314','16315','16316')))",
"cost_info": {
"read_cost": "72.01",
"eval_cost": "7.00",
"prefix_cost": "79.01",
"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": 35,
"filtered": "100.00",
"cost_info": {
"read_cost": "35.00",
"eval_cost": "7.00",
"prefix_cost": "121.01",
"data_read_per_join": "26K"
},
"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": 35,
"filtered": "100.00",
"cost_info": {
"read_cost": "35.00",
"eval_cost": "7.00",
"prefix_cost": "163.01",
"data_read_per_join": "20K"
},
"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 |
81_-Ed6glvL._SL1500_.jpg |
1350 |
1500 |
N |
33160 |
16312 |
product |
35122 |
A |
1 |
|
35122 |
0 |
71ZDPcZ3zAL._SL1500_.jpg |
1362 |
1500 |
N |
33161 |
16313 |
product |
35123 |
A |
1 |
|
35123 |
0 |
A11WKh7HmJL._SL1500_.jpg |
1500 |
1330 |
N |
33163 |
16314 |
product |
35125 |
A |
1 |
|
35125 |
0 |
51x1HW0ueWL.jpg |
500 |
500 |
N |
33174 |
16268 |
product |
35136 |
A |
1 |
|
35136 |
0 |
61XDskb7CKL._SL1000_.jpg |
1000 |
1000 |
N |
33180 |
16269 |
product |
35142 |
A |
1 |
|
35142 |
0 |
71r2qxYr68L._SL1500_.jpg |
1500 |
1500 |
N |
33182 |
16270 |
product |
35144 |
A |
1 |
|
35144 |
0 |
41QQX73TqGL.jpg |
401 |
377 |
N |
33184 |
16271 |
product |
35146 |
A |
1 |
|
35146 |
0 |
81qiH8ZHW-L._SL1500_.jpg |
1500 |
1500 |
N |
33192 |
16295 |
product |
35154 |
A |
1 |
|
35154 |
0 |
81EnqDoIF9L._SL1500_.jpg |
1500 |
1500 |
N |
33194 |
16296 |
product |
35156 |
A |
1 |
|
35156 |
0 |
81oL10TWm2L._SL1500_.jpg |
1500 |
1124 |
N |
33196 |
16311 |
product |
35158 |
A |
1 |
|
35158 |
0 |
81OJjp5uMwL._SL1500_.jpg |
1500 |
1500 |
N |
33197 |
16310 |
product |
35159 |
A |
1 |
|
35159 |
0 |
41HjxrTJvSL.jpg |
225 |
201 |
N |
33227 |
16257 |
product |
35189 |
A |
1 |
|
35189 |
0 |
81rNJkgeBnL._SL1500_.jpg |
1500 |
1500 |
N |
33228 |
16260 |
product |
35190 |
A |
1 |
|
35190 |
0 |
5177Zb-sHzL.jpg |
375 |
500 |
N |
33231 |
16263 |
product |
35193 |
A |
1 |
|
35193 |
0 |
71jL2sUzUJL._SL1188_.jpg |
1188 |
1024 |
N |
33235 |
16304 |
product |
35197 |
A |
1 |
|
35197 |
0 |
91JDRiAZv9L._SL1500_.jpg |
1306 |
1500 |
N |
33162 |
16313 |
product |
35124 |
A |
2 |
|
35124 |
0 |
61dEB7N5CKL._SL1000_.jpg |
1000 |
1000 |
N |
33164 |
16314 |
product |
35126 |
A |
2 |
|
35126 |
0 |
81i6Ay7k0SL._SL1500_.jpg |
1500 |
1500 |
N |
33183 |
16270 |
product |
35145 |
A |
2 |
|
35145 |
0 |
81SzNXEzrDL._SL1500_.jpg |
1500 |
1500 |
N |
33193 |
16295 |
product |
35155 |
A |
2 |
|
35155 |
0 |
81ivfhgg0uL._SL1500_.jpg |
1500 |
1004 |
N |
33222 |
16253 |
product |
35184 |
A |
2 |
|
35184 |
0 |
81YmlSuNQJL._SL1500_.jpg |
1125 |
1500 |
N |
33232 |
16263 |
product |
35194 |
A |
2 |
|
35194 |
0 |
710aPWBwQCL._SL1500_.jpg |
1500 |
1500 |
N |
33195 |
16296 |
product |
35157 |
A |
3 |
|
35157 |