Query time 0.00068
JSON explain
{
"query_block": {
"select_id": 1,
"cost_info": {
"query_cost": "117.50"
},
"ordering_operation": {
"using_filesort": true,
"cost_info": {
"sort_cost": "29.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": 29,
"rows_produced_per_join": 29,
"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 (37831,37553,38680,37276,66700,67972,69955,32160)))",
"cost_info": {
"read_cost": "33.34",
"eval_cost": "2.90",
"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": 29,
"filtered": "100.00",
"cost_info": {
"read_cost": "24.37",
"eval_cost": "2.90",
"prefix_cost": "63.52",
"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": 29,
"filtered": "100.00",
"cost_info": {
"read_cost": "22.08",
"eval_cost": "2.90",
"prefix_cost": "88.50",
"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 |
|
|
|
|
125800 |
32160 |
product |
127152 |
A |
1 |
|
|
| 0 |
|
|
|
|
166024 |
37831 |
product |
167373 |
A |
1 |
|
|
| 0 |
|
|
|
|
185071 |
66700 |
product |
186417 |
A |
1 |
|
|
| 0 |
|
|
|
|
213852 |
37553 |
product |
215127 |
A |
1 |
|
|
| 0 |
|
|
|
|
125801 |
32160 |
product |
127153 |
A |
2 |
|
|
| 0 |
|
|
|
|
166025 |
37831 |
product |
167374 |
A |
2 |
|
|
| 0 |
|
|
|
|
185072 |
66700 |
product |
186418 |
A |
2 |
|
|
| 0 |
|
|
|
|
192763 |
67972 |
product |
194101 |
A |
2 |
|
|
| 0 |
|
|
|
|
125802 |
32160 |
product |
127154 |
A |
3 |
|
|
| 0 |
|
|
|
|
166026 |
37831 |
product |
167375 |
A |
3 |
|
|
| 0 |
|
|
|
|
185073 |
66700 |
product |
186419 |
A |
3 |
|
|
| 0 |
|
|
|
|
192764 |
67972 |
product |
194102 |
A |
3 |
|
|
| 0 |
|
|
|
|
125803 |
32160 |
product |
127155 |
A |
4 |
|
|
| 0 |
|
|
|
|
185074 |
66700 |
product |
186420 |
A |
4 |
|
|
| 0 |
|
|
|
|
192765 |
67972 |
product |
194103 |
A |
4 |
|
|
| 0 |
|
|
|
|
214623 |
37831 |
product |
215898 |
A |
4 |
|
|
| 0 |
|
|
|
|
185076 |
66700 |
product |
186422 |
A |
5 |
|
|
| 0 |
|
|
|
|
197380 |
37276 |
product |
198718 |
A |
5 |
|
|
| 0 |
|
|
|
|
214372 |
32160 |
product |
215647 |
A |
5 |
|
|
| 0 |
|
|
|
|
185077 |
66700 |
product |
186423 |
A |
6 |
|
|
| 0 |
|
|
|
|
197387 |
37276 |
product |
198725 |
A |
6 |
|
|
| 0 |
|
|
|
|
197388 |
37276 |
product |
198726 |
A |
7 |
|
|
| 0 |
|
|
|
|
213853 |
37553 |
product |
215128 |
A |
7 |
|
|
| 0 |
|
|
|
|
197389 |
37276 |
product |
198727 |
A |
8 |
|
|
| 0 |
|
|
|
|
197390 |
37276 |
product |
198728 |
A |
9 |
|
|
| 0 |
|
|
|
|
213854 |
37553 |
product |
215129 |
A |
9 |
|
|
| 0 |
|
|
|
|
213855 |
37553 |
product |
215130 |
A |
10 |
|
|
| 0 |
|
|
|
|
214469 |
38680 |
product |
215744 |
A |
16 |
|
|