Query time 0.00075
JSON explain
{
"query_block": {
"select_id": 1,
"cost_info": {
"query_cost": "116.43"
},
"ordering_operation": {
"using_filesort": true,
"cost_info": {
"sort_cost": "30.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": 30,
"rows_produced_per_join": 30,
"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,66758,37263,37916,39922,39927,66859,68342)))",
"cost_info": {
"read_cost": "29.53",
"eval_cost": "3.00",
"prefix_cost": "32.53",
"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": 30,
"filtered": "100.00",
"cost_info": {
"read_cost": "25.18",
"eval_cost": "3.00",
"prefix_cost": "60.70",
"data_read_per_join": "22K"
},
"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": 30,
"filtered": "100.00",
"cost_info": {
"read_cost": "22.73",
"eval_cost": "3.00",
"prefix_cost": "86.43",
"data_read_per_join": "17K"
},
"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 |
|
|
|
|
166372 |
37916 |
product |
167721 |
A |
1 |
|
|
| 0 |
|
|
|
|
184168 |
66758 |
product |
185514 |
A |
1 |
|
|
| 0 |
|
|
|
|
185549 |
66859 |
product |
186895 |
A |
1 |
|
|
| 0 |
|
|
|
|
193893 |
68137 |
product |
195231 |
A |
1 |
|
|
| 0 |
|
|
|
|
196423 |
68342 |
product |
197761 |
A |
1 |
|
|
| 0 |
|
|
|
|
214462 |
37263 |
product |
215737 |
A |
1 |
|
|
| 0 |
|
|
|
|
166373 |
37916 |
product |
167722 |
A |
2 |
|
|
| 0 |
|
|
|
|
184170 |
66758 |
product |
185516 |
A |
2 |
|
|
| 0 |
|
|
|
|
185550 |
66859 |
product |
186896 |
A |
2 |
|
|
| 0 |
|
|
|
|
193892 |
68137 |
product |
195230 |
A |
2 |
|
|
| 0 |
|
|
|
|
196424 |
68342 |
product |
197762 |
A |
2 |
|
|
| 0 |
|
|
|
|
196959 |
39922 |
product |
198297 |
A |
2 |
|
|
| 0 |
|
|
|
|
166374 |
37916 |
product |
167723 |
A |
3 |
|
|
| 0 |
|
|
|
|
184171 |
66758 |
product |
185517 |
A |
3 |
|
|
| 0 |
|
|
|
|
196425 |
68342 |
product |
197763 |
A |
3 |
|
|
| 0 |
|
|
|
|
196960 |
39922 |
product |
198298 |
A |
3 |
|
|
| 0 |
|
|
|
|
166375 |
37916 |
product |
167724 |
A |
4 |
|
|
| 0 |
|
|
|
|
184172 |
66758 |
product |
185518 |
A |
4 |
|
|
| 0 |
|
|
|
|
196426 |
68342 |
product |
197764 |
A |
4 |
|
|
| 0 |
|
|
|
|
196961 |
39922 |
product |
198299 |
A |
4 |
|
|
| 0 |
|
|
|
|
166376 |
37916 |
product |
167725 |
A |
5 |
|
|
| 0 |
|
|
|
|
184173 |
66758 |
product |
185519 |
A |
5 |
|
|
| 0 |
|
|
|
|
196427 |
68342 |
product |
197765 |
A |
5 |
|
|
| 0 |
|
|
|
|
196962 |
39922 |
product |
198300 |
A |
5 |
|
|
| 0 |
|
|
|
|
166377 |
37916 |
product |
167726 |
A |
6 |
|
|
| 0 |
|
|
|
|
196428 |
68342 |
product |
197766 |
A |
6 |
|
|
| 0 |
|
|
|
|
196963 |
39922 |
product |
198301 |
A |
6 |
|
|
| 0 |
|
|
|
|
166378 |
37916 |
product |
167727 |
A |
7 |
|
|
| 0 |
|
|
|
|
166379 |
37916 |
product |
167728 |
A |
8 |
|
|