Query time 0.00071
JSON explain
{
"query_block": {
"select_id": 1,
"cost_info": {
"query_cost": "111.34"
},
"ordering_operation": {
"using_filesort": true,
"cost_info": {
"sort_cost": "28.00"
},
"nested_loop": [
{
"table": {
"table_name": "cscart_images_links",
"access_type": "range",
"possible_keys": [
"object_id",
"idx_object_type_type_position"
],
"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": "((`cscart_db`.`cscart_images_links`.`object_type` = 'product') and (`cscart_db`.`cscart_images_links`.`type` = 'A') and (`cscart_db`.`cscart_images_links`.`object_id` in (68137,33095,66853,63942,66758,3966)))",
"cost_info": {
"read_cost": "30.59",
"eval_cost": "2.80",
"prefix_cost": "33.39",
"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.image_id"
],
"rows_examined_per_scan": 1,
"rows_produced_per_join": 28,
"filtered": "100.00",
"cost_info": {
"read_cost": "23.09",
"eval_cost": "2.80",
"prefix_cost": "59.27",
"data_read_per_join": "21K"
},
"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": 28,
"filtered": "100.00",
"cost_info": {
"read_cost": "21.27",
"eval_cost": "2.80",
"prefix_cost": "83.34",
"data_read_per_join": "16K"
},
"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 |
|
|
|
|
130473 |
33095 |
product |
131825 |
A |
1 |
|
|
| 0 |
|
|
|
|
180481 |
63942 |
product |
181827 |
A |
1 |
|
|
| 0 |
|
|
|
|
184168 |
66758 |
product |
185514 |
A |
1 |
|
|
| 0 |
|
|
|
|
185586 |
66853 |
product |
186932 |
A |
1 |
|
|
| 0 |
|
|
|
|
193893 |
68137 |
product |
195231 |
A |
1 |
|
|
| 0 |
|
|
|
|
130474 |
33095 |
product |
131826 |
A |
2 |
|
|
| 0 |
|
|
|
|
180482 |
63942 |
product |
181828 |
A |
2 |
|
|
| 0 |
|
|
|
|
184170 |
66758 |
product |
185516 |
A |
2 |
|
|
| 0 |
|
|
|
|
185587 |
66853 |
product |
186933 |
A |
2 |
|
|
| 0 |
|
|
|
|
193892 |
68137 |
product |
195230 |
A |
2 |
|
|
| 0 |
|
|
|
|
130475 |
33095 |
product |
131827 |
A |
3 |
|
|
| 0 |
|
|
|
|
180483 |
63942 |
product |
181829 |
A |
3 |
|
|
| 0 |
|
|
|
|
184171 |
66758 |
product |
185517 |
A |
3 |
|
|
| 0 |
|
|
|
|
185588 |
66853 |
product |
186934 |
A |
3 |
|
|
| 0 |
|
|
|
|
130476 |
33095 |
product |
131828 |
A |
4 |
|
|
| 0 |
|
|
|
|
180484 |
63942 |
product |
181830 |
A |
4 |
|
|
| 0 |
|
|
|
|
184172 |
66758 |
product |
185518 |
A |
4 |
|
|
| 0 |
|
|
|
|
185590 |
66853 |
product |
186936 |
A |
4 |
|
|
| 0 |
|
|
|
|
130477 |
33095 |
product |
131829 |
A |
5 |
|
|
| 0 |
|
|
|
|
184173 |
66758 |
product |
185519 |
A |
5 |
|
|
| 0 |
|
|
|
|
130478 |
33095 |
product |
131830 |
A |
6 |
|
|
| 0 |
|
|
|
|
130479 |
33095 |
product |
131831 |
A |
7 |
|
|
| 0 |
|
|
|
|
44955 |
3966 |
product |
46307 |
A |
8 |
|
|
| 0 |
|
|
|
|
44956 |
3966 |
product |
46308 |
A |
9 |
|
|
| 0 |
|
|
|
|
44957 |
3966 |
product |
46309 |
A |
10 |
|
|
| 0 |
|
|
|
|
44958 |
3966 |
product |
46310 |
A |
11 |
|
|
| 0 |
|
|
|
|
44959 |
3966 |
product |
46311 |
A |
12 |
|
|
| 0 |
|
|
|
|
25504 |
3966 |
product |
26856 |
A |
13 |
|
|