Query time 0.00641
JSON explain
{
"query_block": {
"select_id": 1,
"cost_info": {
"query_cost": "223.31"
},
"ordering_operation": {
"using_filesort": true,
"cost_info": {
"sort_cost": "43.00"
},
"nested_loop": [
{
"table": {
"table_name": "cscart_images_links",
"access_type": "range",
"possible_keys": [
"object_id"
],
"key": "object_id",
"used_key_parts": [
"object_id",
"object_type",
"type"
],
"key_length": "81",
"rows_examined_per_scan": 43,
"rows_produced_per_join": 43,
"filtered": "100.00",
"index_condition": "((`maniamall_cscart`.`cscart_images_links`.`object_type` = 'product') and (`maniamall_cscart`.`cscart_images_links`.`type` = 'A') and (`maniamall_cscart`.`cscart_images_links`.`object_id` in (1732000,1661266,1731933,1658668,1658805,2539827,1661450,1658400,1661340,2072334,1659066,1163013,1663387,2253671,1659620,1658630,1659207,1658657,1657931,1661143,1732317,1664148,1732319,1657915,1659840,1658338,1658635,1658606,1658866,1658169,1660818,1659802,1659293,1660499,1658645,1661096)))",
"cost_info": {
"read_cost": "82.05",
"eval_cost": "4.30",
"prefix_cost": "86.35",
"data_read_per_join": "4K"
},
"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": "3",
"ref": [
"maniamall_cscart.cscart_images_links.image_id"
],
"rows_examined_per_scan": 1,
"rows_produced_per_join": 43,
"filtered": "100.00",
"cost_info": {
"read_cost": "42.83",
"eval_cost": "4.30",
"prefix_cost": "133.48",
"data_read_per_join": "32K"
},
"used_columns": [
"image_id",
"image_path",
"image_x",
"image_y"
],
"attached_condition": "<if>(is_not_null_compl(cscart_images), (`maniamall_cscart`.`cscart_images_links`.`image_id` = `maniamall_cscart`.`cscart_images`.`image_id`), true)"
}
},
{
"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": [
"maniamall_cscart.cscart_images.image_id",
"const",
"const"
],
"rows_examined_per_scan": 1,
"rows_produced_per_join": 43,
"filtered": "100.00",
"cost_info": {
"read_cost": "42.52",
"eval_cost": "4.30",
"prefix_cost": "180.31",
"data_read_per_join": "25K"
},
"used_columns": [
"object_id",
"description",
"lang_code",
"object_holder"
],
"attached_condition": "<if>(is_not_null_compl(cscart_common_descriptions), (`maniamall_cscart`.`cscart_common_descriptions`.`object_id` = `maniamall_cscart`.`cscart_images`.`image_id`), true)"
}
}
]
}
}
}
Result
| pair_id |
object_id |
object_type |
image_id |
detailed_id |
type |
position |
image_path |
alt |
image_x |
image_y |
images_image_id |
| 3947594 |
1732317 |
product |
0 |
3947847 |
A |
0 |
|
|
|
|
|
| 3947598 |
1732319 |
product |
0 |
3947851 |
A |
0 |
|
|
|
|
|
| 4986208 |
2072334 |
product |
0 |
4986461 |
A |
0 |
|
|
|
|
|
| 4986209 |
2072334 |
product |
0 |
4986462 |
A |
0 |
|
|
|
|
|
| 5641344 |
2253671 |
product |
0 |
5641597 |
A |
0 |
|
|
|
|
|
| 5641345 |
2253671 |
product |
0 |
5641598 |
A |
0 |
|
|
|
|
|
| 5641346 |
2253671 |
product |
0 |
5641599 |
A |
0 |
|
|
|
|
|
| 5641347 |
2253671 |
product |
0 |
5641600 |
A |
0 |
|
|
|
|
|
| 5641348 |
2253671 |
product |
0 |
5641601 |
A |
0 |
|
|
|
|
|
| 6559888 |
2539827 |
product |
0 |
6560141 |
A |
0 |
|
|
|
|
|
| 6559889 |
2539827 |
product |
0 |
6560142 |
A |
0 |
|
|
|
|
|
| 6559890 |
2539827 |
product |
0 |
6560143 |
A |
0 |
|
|
|
|
|