Query time 0.00061
JSON explain
{
"query_block": {
"select_id": 1,
"cost_info": {
"query_cost": "120.64"
},
"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,37830,38680,37263,33698,39924,65259,33717)))",
"cost_info": {
"read_cost": "33.95",
"eval_cost": "3.00",
"prefix_cost": "36.95",
"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": "24.44",
"eval_cost": "3.00",
"prefix_cost": "64.39",
"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": "23.25",
"eval_cost": "3.00",
"prefix_cost": "90.64",
"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 |
|
|
|
|
133695 |
33717 |
product |
135047 |
A |
1 |
|
|
| 0 |
|
|
|
|
166017 |
37830 |
product |
167366 |
A |
1 |
|
|
| 0 |
|
|
|
|
193893 |
68137 |
product |
195231 |
A |
1 |
|
|
| 0 |
|
|
|
|
208653 |
33698 |
product |
209928 |
A |
1 |
|
|
| 0 |
|
|
|
|
214462 |
37263 |
product |
215737 |
A |
1 |
|
|
| 0 |
|
|
|
|
133696 |
33717 |
product |
135048 |
A |
2 |
|
|
| 0 |
|
|
|
|
166019 |
37830 |
product |
167368 |
A |
2 |
|
|
| 0 |
|
|
|
|
193892 |
68137 |
product |
195230 |
A |
2 |
|
|
| 0 |
|
|
|
|
208654 |
33698 |
product |
209929 |
A |
2 |
|
|
| 0 |
|
|
|
|
215008 |
65259 |
product |
216283 |
A |
2 |
|
|
| 0 |
|
|
|
|
133697 |
33717 |
product |
135049 |
A |
3 |
|
|
| 0 |
|
|
|
|
166016 |
37830 |
product |
167365 |
A |
3 |
|
|
| 0 |
|
|
|
|
208655 |
33698 |
product |
209930 |
A |
3 |
|
|
| 0 |
|
|
|
|
215009 |
65259 |
product |
216284 |
A |
3 |
|
|
| 0 |
|
|
|
|
133698 |
33717 |
product |
135050 |
A |
4 |
|
|
| 0 |
|
|
|
|
166018 |
37830 |
product |
167367 |
A |
4 |
|
|
| 0 |
|
|
|
|
208656 |
33698 |
product |
209931 |
A |
4 |
|
|
| 0 |
|
|
|
|
215010 |
65259 |
product |
216285 |
A |
4 |
|
|
| 0 |
|
|
|
|
133699 |
33717 |
product |
135051 |
A |
5 |
|
|
| 0 |
|
|
|
|
166020 |
37830 |
product |
167369 |
A |
5 |
|
|
| 0 |
|
|
|
|
208657 |
33698 |
product |
209932 |
A |
5 |
|
|
| 0 |
|
|
|
|
214457 |
65259 |
product |
215732 |
A |
5 |
|
|
| 0 |
|
|
|
|
133700 |
33717 |
product |
135052 |
A |
6 |
|
|
| 0 |
|
|
|
|
166021 |
37830 |
product |
167370 |
A |
6 |
|
|
| 0 |
|
|
|
|
208658 |
33698 |
product |
209933 |
A |
6 |
|
|
| 0 |
|
|
|
|
173353 |
33717 |
product |
174699 |
A |
7 |
|
|
| 0 |
|
|
|
|
208659 |
33698 |
product |
209934 |
A |
7 |
|
|
| 0 |
|
|
|
|
214622 |
37830 |
product |
215897 |
A |
7 |
|
|
| 0 |
|
|
|
|
214469 |
38680 |
product |
215744 |
A |
16 |
|
|