Query time 0.00055
JSON explain
{
"query_block": {
"select_id": 1,
"cost_info": {
"query_cost": "146.53"
},
"ordering_operation": {
"using_filesort": true,
"cost_info": {
"sort_cost": "37.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": 37,
"rows_produced_per_join": 37,
"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 (66397,66395,66396,66398,66490)))",
"cost_info": {
"read_cost": "38.26",
"eval_cost": "3.70",
"prefix_cost": "41.96",
"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": 37,
"filtered": "100.00",
"cost_info": {
"read_cost": "31.14",
"eval_cost": "3.70",
"prefix_cost": "76.80",
"data_read_per_join": "28K"
},
"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": 37,
"filtered": "100.00",
"cost_info": {
"read_cost": "29.03",
"eval_cost": "3.70",
"prefix_cost": "109.53",
"data_read_per_join": "21K"
},
"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 |
|
|
|
|
181564 |
66395 |
product |
182910 |
A |
1 |
|
|
| 0 |
|
|
|
|
181573 |
66396 |
product |
182919 |
A |
1 |
|
|
| 0 |
|
|
|
|
181581 |
66397 |
product |
182927 |
A |
1 |
|
|
| 0 |
|
|
|
|
181589 |
66398 |
product |
182935 |
A |
1 |
|
|
| 0 |
|
|
|
|
181565 |
66395 |
product |
182911 |
A |
2 |
|
|
| 0 |
|
|
|
|
181574 |
66396 |
product |
182920 |
A |
2 |
|
|
| 0 |
|
|
|
|
181582 |
66397 |
product |
182928 |
A |
2 |
|
|
| 0 |
|
|
|
|
181590 |
66398 |
product |
182936 |
A |
2 |
|
|
| 0 |
|
|
|
|
181566 |
66395 |
product |
182912 |
A |
3 |
|
|
| 0 |
|
|
|
|
181575 |
66396 |
product |
182921 |
A |
3 |
|
|
| 0 |
|
|
|
|
181583 |
66397 |
product |
182929 |
A |
3 |
|
|
| 0 |
|
|
|
|
181591 |
66398 |
product |
182937 |
A |
3 |
|
|
| 0 |
|
|
|
|
181567 |
66395 |
product |
182913 |
A |
4 |
|
|
| 0 |
|
|
|
|
181576 |
66396 |
product |
182922 |
A |
4 |
|
|
| 0 |
|
|
|
|
181584 |
66397 |
product |
182930 |
A |
4 |
|
|
| 0 |
|
|
|
|
181592 |
66398 |
product |
182938 |
A |
4 |
|
|
| 0 |
|
|
|
|
181568 |
66395 |
product |
182914 |
A |
5 |
|
|
| 0 |
|
|
|
|
181577 |
66396 |
product |
182923 |
A |
5 |
|
|
| 0 |
|
|
|
|
181585 |
66397 |
product |
182931 |
A |
5 |
|
|
| 0 |
|
|
|
|
181593 |
66398 |
product |
182939 |
A |
5 |
|
|
| 0 |
|
|
|
|
181569 |
66395 |
product |
182915 |
A |
6 |
|
|
| 0 |
|
|
|
|
181578 |
66396 |
product |
182924 |
A |
6 |
|
|
| 0 |
|
|
|
|
181586 |
66397 |
product |
182932 |
A |
6 |
|
|
| 0 |
|
|
|
|
181594 |
66398 |
product |
182940 |
A |
6 |
|
|
| 0 |
|
|
|
|
182880 |
66490 |
product |
184226 |
A |
6 |
|
|
| 0 |
|
|
|
|
181570 |
66395 |
product |
182916 |
A |
7 |
|
|
| 0 |
|
|
|
|
181579 |
66396 |
product |
182925 |
A |
7 |
|
|
| 0 |
|
|
|
|
181587 |
66397 |
product |
182933 |
A |
7 |
|
|
| 0 |
|
|
|
|
181595 |
66398 |
product |
182941 |
A |
7 |
|
|
| 0 |
|
|
|
|
182881 |
66490 |
product |
184227 |
A |
7 |
|
|
| 0 |
|
|
|
|
181571 |
66395 |
product |
182917 |
A |
8 |
|
|
| 0 |
|
|
|
|
182882 |
66490 |
product |
184228 |
A |
8 |
|
|
| 0 |
|
|
|
|
182883 |
66490 |
product |
184229 |
A |
9 |
|
|
| 0 |
|
|
|
|
182884 |
66490 |
product |
184230 |
A |
10 |
|
|
| 0 |
|
|
|
|
182885 |
66490 |
product |
184231 |
A |
11 |
|
|
| 0 |
|
|
|
|
182886 |
66490 |
product |
184232 |
A |
12 |
|
|
| 0 |
|
|
|
|
182887 |
66490 |
product |
184233 |
A |
13 |
|
|