Query time 0.00068
JSON explain
{
"query_block": {
"select_id": 1,
"cost_info": {
"query_cost": "39.91"
},
"ordering_operation": {
"using_filesort": true,
"cost_info": {
"sort_cost": "14.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": 14,
"rows_produced_per_join": 14,
"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 (9767,10001)))",
"cost_info": {
"read_cost": "8.85",
"eval_cost": "1.40",
"prefix_cost": "10.25",
"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": 14,
"filtered": "100.00",
"cost_info": {
"read_cost": "7.07",
"eval_cost": "1.40",
"prefix_cost": "18.72",
"data_read_per_join": "10K"
},
"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": 14,
"filtered": "100.00",
"cost_info": {
"read_cost": "5.79",
"eval_cost": "1.40",
"prefix_cost": "25.91",
"data_read_per_join": "8K"
},
"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 |
2__47__cdmm-ij.jpg |
1500 |
1500 |
N |
66138 |
10001 |
product |
67490 |
A |
1 |
|
67490 |
| 0 |
8908012692294-10_omrs-7f.jpg |
3000 |
3000 |
N |
176044 |
9767 |
product |
177390 |
A |
1 |
|
177390 |
| 0 |
3__41_.jpg |
1500 |
1500 |
N |
66139 |
10001 |
product |
67491 |
A |
2 |
|
67491 |
| 0 |
8908012692294-4_gnsy-6j.jpg |
3000 |
3000 |
N |
176045 |
9767 |
product |
177391 |
A |
2 |
|
177391 |
| 0 |
8908012692294-2_omf6-ll.jpg |
3000 |
3000 |
N |
176046 |
9767 |
product |
177392 |
A |
3 |
|
177392 |
| 0 |
8908012692294-6_ez12-7w.jpg |
3000 |
3000 |
N |
176047 |
9767 |
product |
177393 |
A |
4 |
|
177393 |
| 0 |
8908012692294-9_4pn3-p9.jpg |
3000 |
3000 |
N |
176048 |
9767 |
product |
177394 |
A |
5 |
|
177394 |
| 0 |
Flaxseed-Oil-Capsule-how-to-use.jpg |
3000 |
3000 |
N |
66140 |
10001 |
product |
67492 |
A |
6 |
|
67492 |
| 0 |
8908012692294-5_4n6x-sn.jpg |
3000 |
3000 |
N |
176049 |
9767 |
product |
177395 |
A |
6 |
|
177395 |
| 0 |
Flaxseed-Oil-Capsule-benefits-benefits1.jpg |
3000 |
3000 |
N |
66141 |
10001 |
product |
67493 |
A |
7 |
|
67493 |
| 0 |
8908012692294-3_srhz-mr.jpg |
3000 |
3000 |
N |
176050 |
9767 |
product |
177396 |
A |
7 |
|
177396 |
| 0 |
8908012692294-12_xdwo-u9.png |
1213 |
743 |
N |
176051 |
9767 |
product |
177397 |
A |
8 |
|
177397 |
| 0 |
8908012692294-7_z8o6-78.jpg |
3000 |
3000 |
N |
176052 |
9767 |
product |
177398 |
A |
9 |
|
177398 |
| 0 |
8908012692294-11_n00f-40.png |
2000 |
2000 |
N |
176053 |
9767 |
product |
177399 |
A |
10 |
|
177399 |