Query time 0.00092
JSON explain
{
"query_block": {
"select_id": 1,
"cost_info": {
"query_cost": "97.60"
},
"ordering_operation": {
"using_filesort": true,
"cost_info": {
"sort_cost": "24.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": 24,
"rows_produced_per_join": 24,
"filtered": "100.00",
"index_condition": "((`cscart_db`.`cscart_images_links`.`object_type` = 'product') and (`cscart_db`.`cscart_images_links`.`type` = 'M') and (`cscart_db`.`cscart_images_links`.`object_id` in (11191,11193,11195,11196,24605,35858,35873,35888,35893,35912,66443,66444,69203,69206,69207,69210,69211,11185,35874,35897,36353,36825,36826,66445)))",
"cost_info": {
"read_cost": "33.84",
"eval_cost": "2.40",
"prefix_cost": "36.24",
"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": 24,
"filtered": "100.00",
"cost_info": {
"read_cost": "17.70",
"eval_cost": "2.40",
"prefix_cost": "56.34",
"data_read_per_join": "18K"
},
"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": 24,
"filtered": "100.00",
"cost_info": {
"read_cost": "14.86",
"eval_cost": "2.40",
"prefix_cost": "73.60",
"data_read_per_join": "14K"
},
"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 |
|
|
|
|
89861 |
24605 |
product |
91213 |
M |
0 |
|
|
| 0 |
|
|
|
|
125495 |
11191 |
product |
126847 |
M |
0 |
|
|
| 0 |
|
|
|
|
125639 |
11185 |
product |
126991 |
M |
0 |
|
|
| 0 |
|
|
|
|
126092 |
11193 |
product |
127444 |
M |
0 |
|
|
| 0 |
|
|
|
|
126100 |
11196 |
product |
127452 |
M |
0 |
|
|
| 0 |
|
|
|
|
126122 |
11195 |
product |
127474 |
M |
0 |
|
|
| 0 |
|
|
|
|
149043 |
35858 |
product |
150395 |
M |
0 |
|
|
| 0 |
|
|
|
|
149153 |
35873 |
product |
150505 |
M |
0 |
|
|
| 0 |
|
|
|
|
149159 |
35874 |
product |
150511 |
M |
0 |
|
|
| 0 |
|
|
|
|
149287 |
35893 |
product |
150639 |
M |
0 |
|
|
| 0 |
|
|
|
|
149344 |
35897 |
product |
150696 |
M |
0 |
|
|
| 0 |
|
|
|
|
149392 |
35912 |
product |
150744 |
M |
0 |
|
|
| 0 |
|
|
|
|
161443 |
36825 |
product |
162795 |
M |
0 |
|
|
| 0 |
|
|
|
|
161447 |
36826 |
product |
162799 |
M |
0 |
|
|
| 0 |
|
|
|
|
176293 |
36353 |
product |
177639 |
M |
0 |
|
|
| 0 |
|
|
|
|
182552 |
66443 |
product |
183898 |
M |
0 |
|
|
| 0 |
|
|
|
|
182558 |
66444 |
product |
183904 |
M |
0 |
|
|
| 0 |
|
|
|
|
182564 |
66445 |
product |
183910 |
M |
0 |
|
|
| 0 |
|
|
|
|
204630 |
69203 |
product |
205914 |
M |
0 |
|
|
| 0 |
|
|
|
|
204654 |
69206 |
product |
205938 |
M |
0 |
|
|
| 0 |
|
|
|
|
204660 |
69207 |
product |
205944 |
M |
0 |
|
|
| 0 |
|
|
|
|
204678 |
69210 |
product |
205962 |
M |
0 |
|
|
| 0 |
|
|
|
|
204684 |
69211 |
product |
205968 |
M |
0 |
|
|
| 0 |
|
|
|
|
206253 |
35888 |
product |
207537 |
M |
0 |
|
|