Query time 0.00090
JSON explain
{
"query_block": {
"select_id": 1,
"cost_info": {
"query_cost": "50.20"
},
"ordering_operation": {
"using_filesort": true,
"nested_loop": [
{
"table": {
"table_name": "cscart_images_links",
"access_type": "ref",
"possible_keys": [
"object_id"
],
"key": "object_id",
"used_key_parts": [
"object_id",
"object_type",
"type"
],
"key_length": "81",
"ref": [
"const",
"const",
"const"
],
"rows_examined_per_scan": 17,
"rows_produced_per_join": 17,
"filtered": "100.00",
"index_condition": "((`db_emaika1`.`cscart_images_links`.`object_id` <=> '5') and (`db_emaika1`.`cscart_images_links`.`object_type` <=> 'product') and (`db_emaika1`.`cscart_images_links`.`type` <=> 'A'))",
"cost_info": {
"read_cost": "6.00",
"eval_cost": "3.40",
"prefix_cost": "9.40",
"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": [
"db_emaika1.cscart_images_links.image_id"
],
"rows_examined_per_scan": 1,
"rows_produced_per_join": 17,
"filtered": "100.00",
"cost_info": {
"read_cost": "17.00",
"eval_cost": "3.40",
"prefix_cost": "29.80",
"data_read_per_join": "13K"
},
"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": [
"db_emaika1.cscart_images.image_id",
"const",
"const"
],
"rows_examined_per_scan": 1,
"rows_produced_per_join": 17,
"filtered": "100.00",
"cost_info": {
"read_cost": "17.00",
"eval_cost": "3.40",
"prefix_cost": "50.20",
"data_read_per_join": "10K"
},
"used_columns": [
"object_id",
"description",
"lang_code",
"object_holder"
],
"attached_condition": "<if>(is_not_null_compl(cscart_common_descriptions), (`db_emaika1`.`cscart_common_descriptions`.`object_id` = `db_emaika1`.`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 |
|
|
|
|
152 |
5 |
product |
1494 |
A |
3 |
|
|
0 |
|
|
|
|
154 |
5 |
product |
1496 |
A |
5 |
|
|
0 |
|
|
|
|
156 |
5 |
product |
1498 |
A |
7 |
|
|
0 |
|
|
|
|
158 |
5 |
product |
1500 |
A |
9 |
|
|
0 |
|
|
|
|
160 |
5 |
product |
1502 |
A |
11 |
|
|
0 |
|
|
|
|
162 |
5 |
product |
1504 |
A |
13 |
|
|
0 |
|
|
|
|
164 |
5 |
product |
1506 |
A |
15 |
|
|
0 |
|
|
|
|
167 |
5 |
product |
1510 |
A |
16 |
|
|
0 |
|
|
|
|
168 |
5 |
product |
1511 |
A |
17 |
|
|
0 |
|
|
|
|
169 |
5 |
product |
1512 |
A |
18 |
|
|
0 |
|
|
|
|
170 |
5 |
product |
1513 |
A |
19 |
|
|
0 |
|
|
|
|
171 |
5 |
product |
1514 |
A |
20 |
|
|
0 |
|
|
|
|
172 |
5 |
product |
1515 |
A |
21 |
|
|
0 |
|
|
|
|
173 |
5 |
product |
1516 |
A |
22 |
|
|
0 |
|
|
|
|
174 |
5 |
product |
1517 |
A |
23 |
|
|
0 |
|
|
|
|
175 |
5 |
product |
1518 |
A |
24 |
|
|
0 |
|
|
|
|
176 |
5 |
product |
1519 |
A |
25 |
|
|
0 |
|
|
|
|
177 |
5 |
product |
1520 |
A |
26 |
|
|
0 |
|
|
|
|
178 |
5 |
product |
1521 |
A |
27 |
|
|
0 |
|
|
|
|
179 |
5 |
product |
1522 |
A |
28 |
|
|
0 |
|
|
|
|
180 |
5 |
product |
1523 |
A |
29 |
|
|
0 |
|
|
|
|
181 |
5 |
product |
1524 |
A |
30 |
|
|
0 |
|
|
|
|
182 |
5 |
product |
1525 |
A |
31 |
|
|
0 |
|
|
|
|
183 |
5 |
product |
1526 |
A |
32 |
|
|
0 |
|
|
|
|
184 |
5 |
product |
1527 |
A |
33 |
|
|
0 |
|
|
|
|
185 |
5 |
product |
1528 |
A |
34 |
|
|
0 |
|
|
|
|
186 |
5 |
product |
1529 |
A |
35 |
|
|
0 |
|
|
|
|
187 |
5 |
product |
1530 |
A |
36 |
|
|
0 |
|
|
|
|
188 |
5 |
product |
1531 |
A |
37 |
|
|
0 |
|
|
|
|
193 |
5 |
product |
1536 |
A |
38 |
|
|
0 |
|
|
|
|
194 |
5 |
product |
1537 |
A |
39 |
|
|
0 |
|
|
|
|
195 |
5 |
product |
1538 |
A |
40 |
|
|
0 |
|
|
|
|
196 |
5 |
product |
1539 |
A |
41 |
|
|
0 |
|
|
|
|
197 |
5 |
product |
1540 |
A |
42 |
|
|