Query time 0.00067
JSON explain
{
"query_block": {
"select_id": 1,
"cost_info": {
"query_cost": "80.79"
},
"ordering_operation": {
"using_filesort": true,
"cost_info": {
"sort_cost": "28.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": 28,
"rows_produced_per_join": 28,
"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 (65259,32011,32026,65234,32027,65236,65261)))",
"cost_info": {
"read_cost": "19.08",
"eval_cost": "2.80",
"prefix_cost": "21.88",
"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": 28,
"filtered": "100.00",
"cost_info": {
"read_cost": "13.84",
"eval_cost": "2.80",
"prefix_cost": "38.52",
"data_read_per_join": "21K"
},
"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": 28,
"filtered": "100.00",
"cost_info": {
"read_cost": "11.47",
"eval_cost": "2.80",
"prefix_cost": "52.79",
"data_read_per_join": "16K"
},
"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 |
|
|
|
|
125016 |
32011 |
product |
126368 |
A |
1 |
|
|
| 0 |
|
|
|
|
125129 |
32026 |
product |
126481 |
A |
1 |
|
|
| 0 |
|
|
|
|
125134 |
32027 |
product |
126486 |
A |
1 |
|
|
| 0 |
|
|
|
|
176539 |
65234 |
product |
177885 |
A |
1 |
|
|
| 0 |
|
|
|
|
176545 |
65236 |
product |
177891 |
A |
1 |
|
|
| 0 |
|
|
|
|
176611 |
65261 |
product |
177957 |
A |
1 |
|
|
| 0 |
|
|
|
|
125017 |
32011 |
product |
126369 |
A |
2 |
|
|
| 0 |
|
|
|
|
125130 |
32026 |
product |
126482 |
A |
2 |
|
|
| 0 |
|
|
|
|
125135 |
32027 |
product |
126487 |
A |
2 |
|
|
| 0 |
|
|
|
|
176546 |
65236 |
product |
177892 |
A |
2 |
|
|
| 0 |
|
|
|
|
214433 |
65234 |
product |
215708 |
A |
2 |
|
|
| 0 |
|
|
|
|
214459 |
65261 |
product |
215734 |
A |
2 |
|
|
| 0 |
|
|
|
|
215008 |
65259 |
product |
216283 |
A |
2 |
|
|
| 0 |
|
|
|
|
125018 |
32011 |
product |
126370 |
A |
3 |
|
|
| 0 |
|
|
|
|
125131 |
32026 |
product |
126483 |
A |
3 |
|
|
| 0 |
|
|
|
|
125136 |
32027 |
product |
126488 |
A |
3 |
|
|
| 0 |
|
|
|
|
214435 |
65236 |
product |
215710 |
A |
3 |
|
|
| 0 |
|
|
|
|
215009 |
65259 |
product |
216284 |
A |
3 |
|
|
| 0 |
|
|
|
|
125019 |
32011 |
product |
126371 |
A |
4 |
|
|
| 0 |
|
|
|
|
125132 |
32026 |
product |
126484 |
A |
4 |
|
|
| 0 |
|
|
|
|
125137 |
32027 |
product |
126489 |
A |
4 |
|
|
| 0 |
|
|
|
|
215010 |
65259 |
product |
216285 |
A |
4 |
|
|
| 0 |
|
|
|
|
125020 |
32011 |
product |
126372 |
A |
5 |
|
|
| 0 |
|
|
|
|
125138 |
32027 |
product |
126490 |
A |
5 |
|
|
| 0 |
|
|
|
|
214404 |
32026 |
product |
215679 |
A |
5 |
|
|
| 0 |
|
|
|
|
214457 |
65259 |
product |
215732 |
A |
5 |
|
|
| 0 |
|
|
|
|
214389 |
32011 |
product |
215664 |
A |
6 |
|
|
| 0 |
|
|
|
|
214405 |
32027 |
product |
215680 |
A |
6 |
|
|