Query time 0.00076
JSON explain
{
"query_block": {
"select_id": 1,
"cost_info": {
"query_cost": "57.45"
},
"ordering_operation": {
"using_filesort": true,
"cost_info": {
"sort_cost": "12.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": 12,
"rows_produced_per_join": 12,
"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 (69486,69485,36491,65910,65816,36490,65912,65815,65909,65911,65813,66200)))",
"cost_info": {
"read_cost": "21.58",
"eval_cost": "1.20",
"prefix_cost": "22.78",
"data_read_per_join": "1K"
},
"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.detailed_id"
],
"rows_examined_per_scan": 1,
"rows_produced_per_join": 12,
"filtered": "100.00",
"cost_info": {
"read_cost": "10.39",
"eval_cost": "1.20",
"prefix_cost": "34.38",
"data_read_per_join": "9K"
},
"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": 12,
"filtered": "100.00",
"cost_info": {
"read_cost": "9.88",
"eval_cost": "1.20",
"prefix_cost": "45.45",
"data_read_per_join": "7K"
},
"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 |
SF-01-01.PNG |
1080 |
1080 |
N |
178935 |
65813 |
product |
180281 |
M |
0 |
|
180281 |
| 0 |
SF-03-01.PNG |
1080 |
1080 |
N |
178945 |
65815 |
product |
180291 |
M |
0 |
|
180291 |
| 0 |
SF-03-01_95dv-lc.PNG |
1080 |
1080 |
N |
178951 |
65816 |
product |
180297 |
M |
0 |
|
180297 |
| 0 |
6941845854417_1.jpg |
1080 |
1080 |
N |
179725 |
65909 |
product |
181071 |
M |
0 |
|
181071 |
| 0 |
6941845854424_1.jpg |
1080 |
1080 |
N |
179734 |
65910 |
product |
181080 |
M |
0 |
|
181080 |
| 0 |
6941845854431_1.jpg |
1080 |
1080 |
N |
179743 |
65911 |
product |
181089 |
M |
0 |
|
181089 |
| 0 |
6941845854448_1.jpg |
1080 |
1080 |
N |
179752 |
65912 |
product |
181098 |
M |
0 |
|
181098 |
| 0 |
3_402143ec-ab1f-4fa6-9d56-b919b42404ba.png |
800 |
800 |
N |
180635 |
66200 |
product |
181981 |
M |
0 |
Bronze & Bloom |
181981 |
| 0 |
7_0wb6-0q.jpg |
1080 |
1440 |
N |
195650 |
36490 |
product |
196988 |
M |
0 |
|
196988 |
| 0 |
17c2f898809820698129_1.png |
800 |
800 |
N |
208300 |
69485 |
product |
209575 |
M |
0 |
|
209575 |
| 0 |
17c2f898809820698136_1.png |
800 |
800 |
N |
208311 |
69486 |
product |
209586 |
M |
0 |
|
209586 |
| 0 |
7_aglj-vg.jpg |
1080 |
1440 |
N |
195665 |
36491 |
product |
197003 |
M |
9 |
|
197003 |