Query time 0.00071
JSON explain
{
"query_block": {
"select_id": 1,
"cost_info": {
"query_cost": "165.85"
},
"ordering_operation": {
"using_filesort": true,
"cost_info": {
"sort_cost": "42.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": 42,
"rows_produced_per_join": 42,
"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 (69955,66700,68534,65545,37553,69352,68909,68890)))",
"cost_info": {
"read_cost": "43.47",
"eval_cost": "4.20",
"prefix_cost": "47.67",
"data_read_per_join": "3K"
},
"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": 42,
"filtered": "100.00",
"cost_info": {
"read_cost": "34.99",
"eval_cost": "4.20",
"prefix_cost": "86.85",
"data_read_per_join": "32K"
},
"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": 42,
"filtered": "100.00",
"cost_info": {
"read_cost": "32.79",
"eval_cost": "4.20",
"prefix_cost": "123.85",
"data_read_per_join": "24K"
},
"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 |
|
|
|
|
180580 |
65545 |
product |
181926 |
A |
1 |
|
|
| 0 |
|
|
|
|
185071 |
66700 |
product |
186417 |
A |
1 |
|
|
| 0 |
|
|
|
|
200633 |
68890 |
product |
201917 |
A |
1 |
|
|
| 0 |
|
|
|
|
206283 |
68534 |
product |
207567 |
A |
1 |
|
|
| 0 |
|
|
|
|
213852 |
37553 |
product |
215127 |
A |
1 |
|
|
| 0 |
|
|
|
|
180581 |
65545 |
product |
181927 |
A |
2 |
|
|
| 0 |
|
|
|
|
185072 |
66700 |
product |
186418 |
A |
2 |
|
|
| 0 |
|
|
|
|
200637 |
68890 |
product |
201921 |
A |
2 |
|
|
| 0 |
|
|
|
|
206284 |
68534 |
product |
207568 |
A |
2 |
|
|
| 0 |
|
|
|
|
180582 |
65545 |
product |
181928 |
A |
3 |
|
|
| 0 |
|
|
|
|
185073 |
66700 |
product |
186419 |
A |
3 |
|
|
| 0 |
|
|
|
|
200634 |
68890 |
product |
201918 |
A |
3 |
|
|
| 0 |
|
|
|
|
206285 |
68534 |
product |
207569 |
A |
3 |
|
|
| 0 |
|
|
|
|
180583 |
65545 |
product |
181929 |
A |
4 |
|
|
| 0 |
|
|
|
|
185074 |
66700 |
product |
186420 |
A |
4 |
|
|
| 0 |
|
|
|
|
200638 |
68890 |
product |
201922 |
A |
4 |
|
|
| 0 |
|
|
|
|
206286 |
68534 |
product |
207570 |
A |
4 |
|
|
| 0 |
|
|
|
|
180584 |
65545 |
product |
181930 |
A |
5 |
|
|
| 0 |
|
|
|
|
185076 |
66700 |
product |
186422 |
A |
5 |
|
|
| 0 |
|
|
|
|
200636 |
68890 |
product |
201920 |
A |
5 |
|
|
| 0 |
|
|
|
|
185077 |
66700 |
product |
186423 |
A |
6 |
|
|
| 0 |
|
|
|
|
200629 |
68890 |
product |
201913 |
A |
6 |
|
|
| 0 |
|
|
|
|
200630 |
68890 |
product |
201914 |
A |
7 |
|
|
| 0 |
|
|
|
|
213853 |
37553 |
product |
215128 |
A |
7 |
|
|
| 0 |
|
|
|
|
200631 |
68890 |
product |
201915 |
A |
8 |
|
|
| 0 |
|
|
|
|
200632 |
68890 |
product |
201916 |
A |
9 |
|
|
| 0 |
|
|
|
|
213854 |
37553 |
product |
215129 |
A |
9 |
|
|
| 0 |
|
|
|
|
200635 |
68890 |
product |
201919 |
A |
10 |
|
|
| 0 |
|
|
|
|
200837 |
68909 |
product |
202121 |
A |
10 |
|
|
| 0 |
|
|
|
|
213855 |
37553 |
product |
215130 |
A |
10 |
|
|
| 0 |
|
|
|
|
200838 |
68909 |
product |
202122 |
A |
20 |
|
|
| 0 |
|
|
|
|
200839 |
68909 |
product |
202123 |
A |
30 |
|
|
| 0 |
|
|
|
|
200840 |
68909 |
product |
202124 |
A |
40 |
|
|
| 0 |
|
|
|
|
200841 |
68909 |
product |
202125 |
A |
50 |
|
|
| 0 |
|
|
|
|
200842 |
68909 |
product |
202126 |
A |
60 |
|
|
| 0 |
|
|
|
|
200843 |
68909 |
product |
202127 |
A |
70 |
|
|
| 0 |
|
|
|
|
200844 |
68909 |
product |
202128 |
A |
80 |
|
|
| 0 |
|
|
|
|
200845 |
68909 |
product |
202129 |
A |
90 |
|
|
| 0 |
|
|
|
|
200846 |
68909 |
product |
202130 |
A |
100 |
|
|
| 0 |
|
|
|
|
200847 |
68909 |
product |
202131 |
A |
110 |
|
|