Query time 0.00072
JSON explain
{
"query_block": {
"select_id": 1,
"cost_info": {
"query_cost": "182.51"
},
"ordering_operation": {
"using_filesort": true,
"cost_info": {
"sort_cost": "51.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": 51,
"rows_produced_per_join": 51,
"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 (33697,33698,33706,69315,36289,33717,36290,33701)))",
"cost_info": {
"read_cost": "42.11",
"eval_cost": "5.10",
"prefix_cost": "47.21",
"data_read_per_join": "4K"
},
"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": 51,
"filtered": "100.00",
"cost_info": {
"read_cost": "39.48",
"eval_cost": "5.10",
"prefix_cost": "91.79",
"data_read_per_join": "39K"
},
"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": 51,
"filtered": "100.00",
"cost_info": {
"read_cost": "34.62",
"eval_cost": "5.10",
"prefix_cost": "131.51",
"data_read_per_join": "30K"
},
"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 |
|
|
|
|
133507 |
33697 |
product |
134859 |
A |
1 |
|
|
| 0 |
|
|
|
|
133546 |
33701 |
product |
134898 |
A |
1 |
|
|
| 0 |
|
|
|
|
133695 |
33717 |
product |
135047 |
A |
1 |
|
|
| 0 |
|
|
|
|
173362 |
36289 |
product |
174708 |
A |
1 |
|
|
| 0 |
|
|
|
|
205499 |
69315 |
product |
206783 |
A |
1 |
|
|
| 0 |
|
|
|
|
208653 |
33698 |
product |
209928 |
A |
1 |
|
|
| 0 |
|
|
|
|
133508 |
33697 |
product |
134860 |
A |
2 |
|
|
| 0 |
|
|
|
|
133547 |
33701 |
product |
134899 |
A |
2 |
|
|
| 0 |
|
|
|
|
133591 |
33706 |
product |
134943 |
A |
2 |
|
|
| 0 |
|
|
|
|
133696 |
33717 |
product |
135048 |
A |
2 |
|
|
| 0 |
|
|
|
|
205500 |
69315 |
product |
206784 |
A |
2 |
|
|
| 0 |
|
|
|
|
208654 |
33698 |
product |
209929 |
A |
2 |
|
|
| 0 |
|
|
|
|
133509 |
33697 |
product |
134861 |
A |
3 |
|
|
| 0 |
|
|
|
|
133548 |
33701 |
product |
134900 |
A |
3 |
|
|
| 0 |
|
|
|
|
133592 |
33706 |
product |
134944 |
A |
3 |
|
|
| 0 |
|
|
|
|
133697 |
33717 |
product |
135049 |
A |
3 |
|
|
| 0 |
|
|
|
|
205504 |
69315 |
product |
206788 |
A |
3 |
|
|
| 0 |
|
|
|
|
208655 |
33698 |
product |
209930 |
A |
3 |
|
|
| 0 |
|
|
|
|
133510 |
33697 |
product |
134862 |
A |
4 |
|
|
| 0 |
|
|
|
|
133549 |
33701 |
product |
134901 |
A |
4 |
|
|
| 0 |
|
|
|
|
133593 |
33706 |
product |
134945 |
A |
4 |
|
|
| 0 |
|
|
|
|
133698 |
33717 |
product |
135050 |
A |
4 |
|
|
| 0 |
|
|
|
|
205501 |
69315 |
product |
206785 |
A |
4 |
|
|
| 0 |
|
|
|
|
208656 |
33698 |
product |
209931 |
A |
4 |
|
|
| 0 |
|
|
|
|
133511 |
33697 |
product |
134863 |
A |
5 |
|
|
| 0 |
|
|
|
|
133550 |
33701 |
product |
134902 |
A |
5 |
|
|
| 0 |
|
|
|
|
133594 |
33706 |
product |
134946 |
A |
5 |
|
|
| 0 |
|
|
|
|
133699 |
33717 |
product |
135051 |
A |
5 |
|
|
| 0 |
|
|
|
|
205502 |
69315 |
product |
206786 |
A |
5 |
|
|
| 0 |
|
|
|
|
208657 |
33698 |
product |
209932 |
A |
5 |
|
|
| 0 |
|
|
|
|
133512 |
33697 |
product |
134864 |
A |
6 |
|
|
| 0 |
|
|
|
|
133551 |
33701 |
product |
134903 |
A |
6 |
|
|
| 0 |
|
|
|
|
133595 |
33706 |
product |
134947 |
A |
6 |
|
|
| 0 |
|
|
|
|
133700 |
33717 |
product |
135052 |
A |
6 |
|
|
| 0 |
|
|
|
|
205503 |
69315 |
product |
206787 |
A |
6 |
|
|
| 0 |
|
|
|
|
208658 |
33698 |
product |
209933 |
A |
6 |
|
|
| 0 |
|
|
|
|
133513 |
33697 |
product |
134865 |
A |
7 |
|
|
| 0 |
|
|
|
|
133552 |
33701 |
product |
134904 |
A |
7 |
|
|
| 0 |
|
|
|
|
133596 |
33706 |
product |
134948 |
A |
7 |
|
|
| 0 |
|
|
|
|
173353 |
33717 |
product |
174699 |
A |
7 |
|
|
| 0 |
|
|
|
|
205505 |
69315 |
product |
206789 |
A |
7 |
|
|
| 0 |
|
|
|
|
208659 |
33698 |
product |
209934 |
A |
7 |
|
|
| 0 |
|
|
|
|
133514 |
33697 |
product |
134866 |
A |
8 |
|
|
| 0 |
|
|
|
|
133553 |
33701 |
product |
134905 |
A |
8 |
|
|
| 0 |
|
|
|
|
133597 |
33706 |
product |
134949 |
A |
8 |
|
|
| 0 |
|
|
|
|
205507 |
69315 |
product |
206791 |
A |
8 |
|
|
| 0 |
|
|
|
|
133598 |
33706 |
product |
134950 |
A |
9 |
|
|
| 0 |
|
|
|
|
173337 |
33697 |
product |
174683 |
A |
9 |
|
|
| 0 |
|
|
|
|
173341 |
33701 |
product |
174687 |
A |
9 |
|
|
| 0 |
|
|
|
|
173345 |
33706 |
product |
174691 |
A |
10 |
|
|
| 0 |
|
|
|
|
173363 |
36290 |
product |
174709 |
A |
10 |
|
|