Query time 0.00087
JSON explain
{
"query_block": {
"select_id": 1,
"cost_info": {
"query_cost": "101.38"
},
"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 (66077,66079,66082,66084,66369,66371,66386,66681,66682,66683,66685,66687,66692,66694,66695,67273,68901,68904,68906,68978,68979,68980,68981,68982)))",
"cost_info": {
"read_cost": "34.71",
"eval_cost": "2.40",
"prefix_cost": "37.11",
"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": "18.90",
"eval_cost": "2.40",
"prefix_cost": "58.41",
"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": "16.57",
"eval_cost": "2.40",
"prefix_cost": "77.38",
"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 |
|
|
|
|
181267 |
66077 |
product |
182613 |
M |
0 |
|
|
| 0 |
|
|
|
|
181289 |
66079 |
product |
182635 |
M |
0 |
|
|
| 0 |
|
|
|
|
181322 |
66082 |
product |
182668 |
M |
0 |
|
|
| 0 |
|
|
|
|
181344 |
66084 |
product |
182690 |
M |
0 |
|
|
| 0 |
|
|
|
|
181774 |
66369 |
product |
183120 |
M |
0 |
|
|
| 0 |
|
|
|
|
181782 |
66371 |
product |
183128 |
M |
0 |
|
|
| 0 |
|
|
|
|
181881 |
66386 |
product |
183227 |
M |
0 |
|
|
| 0 |
|
|
|
|
183557 |
66681 |
product |
184903 |
M |
0 |
|
|
| 0 |
|
|
|
|
183567 |
66682 |
product |
184913 |
M |
0 |
|
|
| 0 |
|
|
|
|
183577 |
66683 |
product |
184923 |
M |
0 |
|
|
| 0 |
|
|
|
|
183597 |
66685 |
product |
184943 |
M |
0 |
|
|
| 0 |
|
|
|
|
183617 |
66687 |
product |
184963 |
M |
0 |
|
|
| 0 |
|
|
|
|
183667 |
66692 |
product |
185013 |
M |
0 |
|
|
| 0 |
|
|
|
|
183689 |
66694 |
product |
185035 |
M |
0 |
|
|
| 0 |
|
|
|
|
183700 |
66695 |
product |
185046 |
M |
0 |
|
|
| 0 |
|
|
|
|
187972 |
67273 |
product |
189310 |
M |
0 |
|
|
| 0 |
|
|
|
|
200749 |
68901 |
product |
202033 |
M |
0 |
|
|
| 0 |
|
|
|
|
200781 |
68904 |
product |
202065 |
M |
0 |
|
|
| 0 |
|
|
|
|
200803 |
68906 |
product |
202087 |
M |
0 |
|
|
| 0 |
|
|
|
|
202037 |
68978 |
product |
203321 |
M |
0 |
|
|
| 0 |
|
|
|
|
202053 |
68980 |
product |
203337 |
M |
0 |
|
|
| 0 |
|
|
|
|
202061 |
68981 |
product |
203345 |
M |
0 |
|
|
| 0 |
|
|
|
|
202069 |
68982 |
product |
203353 |
M |
0 |
|
|
| 0 |
|
|
|
|
202518 |
68979 |
product |
203802 |
M |
0 |
|
|