Query time 0.00065
JSON explain
{
"query_block": {
"select_id": 1,
"cost_info": {
"query_cost": "122.07"
},
"ordering_operation": {
"using_filesort": true,
"cost_info": {
"sort_cost": "30.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": 30,
"rows_produced_per_join": 30,
"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 (69068,69085,68409,14252,66922)))",
"cost_info": {
"read_cost": "32.82",
"eval_cost": "3.00",
"prefix_cost": "35.82",
"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": 30,
"filtered": "100.00",
"cost_info": {
"read_cost": "26.02",
"eval_cost": "3.00",
"prefix_cost": "64.84",
"data_read_per_join": "22K"
},
"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": 30,
"filtered": "100.00",
"cost_info": {
"read_cost": "24.23",
"eval_cost": "3.00",
"prefix_cost": "92.07",
"data_read_per_join": "17K"
},
"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 |
|
|
|
|
185250 |
66922 |
product |
186596 |
A |
1 |
|
|
| 0 |
|
|
|
|
189904 |
14252 |
product |
191242 |
A |
1 |
|
|
| 0 |
|
|
|
|
208914 |
69068 |
product |
210189 |
A |
1 |
|
|
| 0 |
|
|
|
|
185251 |
66922 |
product |
186597 |
A |
2 |
|
|
| 0 |
|
|
|
|
189905 |
14252 |
product |
191243 |
A |
2 |
|
|
| 0 |
|
|
|
|
208915 |
69068 |
product |
210190 |
A |
2 |
|
|
| 0 |
|
|
|
|
185252 |
66922 |
product |
186598 |
A |
3 |
|
|
| 0 |
|
|
|
|
189906 |
14252 |
product |
191244 |
A |
3 |
|
|
| 0 |
|
|
|
|
208916 |
69068 |
product |
210191 |
A |
3 |
|
|
| 0 |
|
|
|
|
185253 |
66922 |
product |
186599 |
A |
4 |
|
|
| 0 |
|
|
|
|
189907 |
14252 |
product |
191245 |
A |
4 |
|
|
| 0 |
|
|
|
|
208917 |
69068 |
product |
210192 |
A |
4 |
|
|
| 0 |
|
|
|
|
185254 |
66922 |
product |
186600 |
A |
5 |
|
|
| 0 |
|
|
|
|
189908 |
14252 |
product |
191246 |
A |
5 |
|
|
| 0 |
|
|
|
|
208918 |
69068 |
product |
210193 |
A |
5 |
|
|
| 0 |
|
|
|
|
185255 |
66922 |
product |
186601 |
A |
6 |
|
|
| 0 |
|
|
|
|
189909 |
14252 |
product |
191247 |
A |
6 |
|
|
| 0 |
|
|
|
|
208919 |
69068 |
product |
210194 |
A |
6 |
|
|
| 0 |
|
|
|
|
208920 |
69068 |
product |
210195 |
A |
7 |
|
|
| 0 |
|
|
|
|
208921 |
69068 |
product |
210196 |
A |
8 |
|
|
| 0 |
|
|
|
|
197037 |
68409 |
product |
198375 |
A |
10 |
|
|
| 0 |
|
|
|
|
197038 |
68409 |
product |
198376 |
A |
20 |
|
|
| 0 |
|
|
|
|
197039 |
68409 |
product |
198377 |
A |
30 |
|
|
| 0 |
|
|
|
|
210120 |
69085 |
product |
211395 |
A |
70 |
|
|
| 0 |
|
|
|
|
210121 |
69085 |
product |
211396 |
A |
71 |
|
|
| 0 |
|
|
|
|
210122 |
69085 |
product |
211397 |
A |
72 |
|
|
| 0 |
|
|
|
|
210123 |
69085 |
product |
211398 |
A |
73 |
|
|
| 0 |
|
|
|
|
210124 |
69085 |
product |
211399 |
A |
74 |
|
|
| 0 |
|
|
|
|
210125 |
69085 |
product |
211400 |
A |
75 |
|
|
| 0 |
|
|
|
|
210126 |
69085 |
product |
211401 |
A |
76 |
|
|