Query time 0.00060
JSON explain
{
"query_block": {
"select_id": 1,
"cost_info": {
"query_cost": "60.82"
},
"ordering_operation": {
"using_filesort": true,
"cost_info": {
"sort_cost": "14.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": 14,
"rows_produced_per_join": 14,
"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 (68342,68345,68351,68349,68343,58579,68348,68347,68355,68340,68358,68346,68356,68360)))",
"cost_info": {
"read_cost": "20.75",
"eval_cost": "1.40",
"prefix_cost": "22.15",
"data_read_per_join": "1K"
},
"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": 14,
"filtered": "100.00",
"cost_info": {
"read_cost": "11.34",
"eval_cost": "1.40",
"prefix_cost": "34.89",
"data_read_per_join": "10K"
},
"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": 14,
"filtered": "100.00",
"cost_info": {
"read_cost": "10.53",
"eval_cost": "1.40",
"prefix_cost": "46.82",
"data_read_per_join": "8K"
},
"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 |
|
|
|
|
196391 |
68345 |
product |
197729 |
M |
0 |
|
|
| 0 |
|
|
|
|
196397 |
68346 |
product |
197735 |
M |
0 |
|
|
| 0 |
|
|
|
|
196400 |
68347 |
product |
197738 |
M |
0 |
|
|
| 0 |
|
|
|
|
196405 |
68340 |
product |
197743 |
M |
0 |
|
|
| 0 |
|
|
|
|
196422 |
68342 |
product |
197760 |
M |
0 |
|
|
| 0 |
|
|
|
|
196429 |
68343 |
product |
197767 |
M |
0 |
|
|
| 0 |
|
|
|
|
196433 |
68348 |
product |
197771 |
M |
0 |
|
|
| 0 |
|
|
|
|
196441 |
68349 |
product |
197779 |
M |
0 |
|
|
| 0 |
|
|
|
|
196449 |
68351 |
product |
197787 |
M |
0 |
|
|
| 0 |
|
|
|
|
196462 |
68355 |
product |
197800 |
M |
0 |
|
|
| 0 |
|
|
|
|
196467 |
68356 |
product |
197805 |
M |
0 |
|
|
| 0 |
|
|
|
|
196476 |
68358 |
product |
197814 |
M |
0 |
|
|
| 0 |
|
|
|
|
196482 |
68360 |
product |
197820 |
M |
0 |
|
|
| 0 |
|
|
|
|
196662 |
58579 |
product |
198000 |
M |
0 |
|
|