Query time 0.00071
JSON explain
{
"query_block": {
"select_id": 1,
"cost_info": {
"query_cost": "54.42"
},
"ordering_operation": {
"using_filesort": true,
"nested_loop": [
{
"table": {
"table_name": "cscart_images_links",
"access_type": "ref",
"possible_keys": [
"object_id",
"idx_object_type_type_position"
],
"key": "object_id",
"used_key_parts": [
"object_id",
"object_type",
"type"
],
"key_length": "81",
"ref": [
"const",
"const",
"const"
],
"rows_examined_per_scan": 22,
"rows_produced_per_join": 22,
"filtered": "100.00",
"cost_info": {
"read_cost": "14.56",
"eval_cost": "2.20",
"prefix_cost": "16.76",
"data_read_per_join": "2K"
},
"used_columns": [
"pair_id",
"object_id",
"object_type",
"image_id",
"detailed_id",
"type",
"position"
]
}
},
{
"table": {
"table_name": "cscart_images",
"access_type": "eq_ref",
"possible_keys": [
"PRIMARY"
],
"key": "PRIMARY",
"used_key_parts": [
"image_id"
],
"key_length": "4",
"ref": [
"cscart_db.cscart_images_links.detailed_id"
],
"rows_examined_per_scan": 1,
"rows_produced_per_join": 22,
"filtered": "100.00",
"cost_info": {
"read_cost": "17.36",
"eval_cost": "2.20",
"prefix_cost": "36.31",
"data_read_per_join": "16K"
},
"used_columns": [
"image_id",
"image_path",
"image_x",
"image_y",
"is_high_res"
]
}
},
{
"table": {
"table_name": "cscart_common_descriptions",
"access_type": "eq_ref",
"possible_keys": [
"PRIMARY"
],
"key": "PRIMARY",
"used_key_parts": [
"object_id",
"lang_code",
"object_holder"
],
"key_length": "107",
"ref": [
"cscart_db.cscart_images.image_id",
"const",
"const"
],
"rows_examined_per_scan": 1,
"rows_produced_per_join": 22,
"filtered": "100.00",
"cost_info": {
"read_cost": "15.91",
"eval_cost": "2.20",
"prefix_cost": "54.42",
"data_read_per_join": "13K"
},
"used_columns": [
"object_id",
"description",
"lang_code",
"object_holder"
],
"attached_condition": "<if>(is_not_null_compl(cscart_common_descriptions), (`cscart_db`.`cscart_common_descriptions`.`object_id` = `cscart_db`.`cscart_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 |
0001__2_.jpg |
3050 |
3050 |
N |
189825 |
35204 |
product |
191163 |
A |
1 |
|
191163 |
| 0 |
0001__2__ixo7-c4.jpg |
3050 |
3050 |
N |
189858 |
35204 |
product |
191196 |
A |
1 |
|
191196 |
| 0 |
0001__3_.jpg |
1000 |
1000 |
N |
189826 |
35204 |
product |
191164 |
A |
2 |
|
191164 |
| 0 |
0001__3__z0cz-kq.jpg |
1000 |
1000 |
N |
189859 |
35204 |
product |
191197 |
A |
2 |
|
191197 |
| 0 |
0001__12_.jpg |
3050 |
3050 |
N |
189827 |
35204 |
product |
191165 |
A |
3 |
|
191165 |
| 0 |
0001__12__jso8-oo.jpg |
3050 |
3050 |
N |
189860 |
35204 |
product |
191198 |
A |
3 |
|
191198 |
| 0 |
0001__4_.jpg |
3050 |
3050 |
N |
189828 |
35204 |
product |
191166 |
A |
4 |
|
191166 |
| 0 |
0001__4__4pds-xk.jpg |
3050 |
3050 |
N |
189861 |
35204 |
product |
191199 |
A |
4 |
|
191199 |
| 0 |
0001__5_.jpg |
3050 |
3050 |
N |
189829 |
35204 |
product |
191167 |
A |
5 |
|
191167 |
| 0 |
0001__5__tdm9-7g.jpg |
3050 |
3050 |
N |
189862 |
35204 |
product |
191200 |
A |
5 |
|
191200 |
| 0 |
0001__6_.jpg |
3050 |
3050 |
N |
189830 |
35204 |
product |
191168 |
A |
6 |
|
191168 |
| 0 |
0001__6__80mr-ha.jpg |
3050 |
3050 |
N |
189863 |
35204 |
product |
191201 |
A |
6 |
|
191201 |
| 0 |
0001__7_.jpg |
3050 |
3050 |
N |
189831 |
35204 |
product |
191169 |
A |
7 |
|
191169 |
| 0 |
0001__7__ufax-9w.jpg |
3050 |
3050 |
N |
189864 |
35204 |
product |
191202 |
A |
7 |
|
191202 |
| 0 |
0001__8_.jpg |
3050 |
3050 |
N |
189832 |
35204 |
product |
191170 |
A |
8 |
|
191170 |
| 0 |
0001__8__sub5-qh.jpg |
3050 |
3050 |
N |
189865 |
35204 |
product |
191203 |
A |
8 |
|
191203 |
| 0 |
0001__9_.jpg |
3050 |
3050 |
N |
189833 |
35204 |
product |
191171 |
A |
9 |
|
191171 |
| 0 |
0001__9__iatj-tj.jpg |
3050 |
3050 |
N |
189866 |
35204 |
product |
191204 |
A |
9 |
|
191204 |
| 0 |
0001__10_.jpg |
3050 |
3050 |
N |
189834 |
35204 |
product |
191172 |
A |
10 |
|
191172 |
| 0 |
0001__10__jygq-ls.jpg |
3050 |
3050 |
N |
189867 |
35204 |
product |
191205 |
A |
10 |
|
191205 |
| 0 |
0001__11_.jpg |
3050 |
3050 |
N |
189835 |
35204 |
product |
191173 |
A |
11 |
|
191173 |
| 0 |
0001__11__gfsh-fm.jpg |
3050 |
3050 |
N |
189868 |
35204 |
product |
191206 |
A |
11 |
|
191206 |