Query time 0.00105
JSON explain
{
"query_block": {
"select_id": 1,
"cost_info": {
"query_cost": "53.77"
},
"ordering_operation": {
"using_filesort": true,
"cost_info": {
"sort_cost": "10.00"
},
"nested_loop": [
{
"table": {
"table_name": "cscart_images_links",
"access_type": "range",
"possible_keys": [
"object_id"
],
"key": "object_id",
"used_key_parts": [
"object_id",
"object_type",
"type"
],
"key_length": "81",
"rows_examined_per_scan": 10,
"rows_produced_per_join": 10,
"filtered": "100.00",
"index_condition": "((`maniamall_cscart`.`cscart_images_links`.`object_type` = 'product') and (`maniamall_cscart`.`cscart_images_links`.`type` = 'M') and (`maniamall_cscart`.`cscart_images_links`.`object_id` in (588450,588454,594298,588407,588439,588446,588502,594366,588429,588478)))",
"cost_info": {
"read_cost": "20.85",
"eval_cost": "1.00",
"prefix_cost": "21.85",
"data_read_per_join": "960"
},
"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": "3",
"ref": [
"maniamall_cscart.cscart_images_links.detailed_id"
],
"rows_examined_per_scan": 1,
"rows_produced_per_join": 10,
"filtered": "100.00",
"cost_info": {
"read_cost": "9.97",
"eval_cost": "1.00",
"prefix_cost": "32.82",
"data_read_per_join": "7K"
},
"used_columns": [
"image_id",
"image_path",
"image_x",
"image_y"
],
"attached_condition": "<if>(is_not_null_compl(cscart_images), (`maniamall_cscart`.`cscart_images_links`.`detailed_id` = `maniamall_cscart`.`cscart_images`.`image_id`), true)"
}
},
{
"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": [
"maniamall_cscart.cscart_images.image_id",
"const",
"const"
],
"rows_examined_per_scan": 1,
"rows_produced_per_join": 10,
"filtered": "100.00",
"cost_info": {
"read_cost": "9.95",
"eval_cost": "1.00",
"prefix_cost": "43.77",
"data_read_per_join": "5K"
},
"used_columns": [
"object_id",
"description",
"lang_code",
"object_holder"
],
"attached_condition": "<if>(is_not_null_compl(cscart_common_descriptions), (`maniamall_cscart`.`cscart_common_descriptions`.`object_id` = `maniamall_cscart`.`cscart_images`.`image_id`), true)"
}
}
]
}
}
}
Result
| pair_id |
object_id |
object_type |
image_id |
detailed_id |
type |
position |
image_path |
alt |
image_x |
image_y |
images_image_id |
| 928966 |
588407 |
product |
0 |
929203 |
M |
0 |
bec-auto-cu-dublu-filament-carpoint-12v-baz15d-s25-214w-clar-1-buc-kft-auto.jpg |
|
1000 |
1000 |
929203 |
| 928988 |
588429 |
product |
0 |
929225 |
M |
0 |
bec-auto-cu-halogen-pentru-far-vecta-h7-24v-70w-px26d--1-buc-kft-auto.jpg |
|
531 |
531 |
929225 |
| 928998 |
588439 |
product |
0 |
929235 |
M |
0 |
bec-auto-cu-halogen-pentru-proiector-vecta-h3-24v-70w-pk22s--1-buc-kft-auto.jpg |
|
570 |
800 |
929235 |
| 929005 |
588446 |
product |
0 |
929242 |
M |
0 |
bec-auto-led-carguard-12v-b85d-025w-cu-dulie-de-plastic-pentru-bord--2-buc-kft-auto.jpg |
|
800 |
800 |
929242 |
| 929009 |
588450 |
product |
0 |
929246 |
M |
0 |
bec-auto-osram-2352mfx6-12v-2w-bx84d--bec-bord--1-buc-kft-auto.jpg |
|
960 |
720 |
929246 |
| 929013 |
588454 |
product |
0 |
929250 |
M |
0 |
bec-auto-osram-2722mf-12v-2w-b85d-bec-lumini-bord-1-buc-kft-auto.jpg |
|
519 |
630 |
929250 |
| 929037 |
588478 |
product |
0 |
929274 |
M |
0 |
bec-auto-osram-night-breaker-64151nbu-12v-55w-pk22s-h3--bec-far-110-mai-multa-lumina-1-buc-kft-auto.jpg |
|
1038 |
1260 |
929274 |
| 929061 |
588502 |
product |
0 |
929298 |
M |
0 |
bec-auto-xenon-pentru-far-vecta-d2s-8000k-35w-p32d--1-buc-kft-auto.jpg |
|
383 |
567 |
929298 |
| 935155 |
594298 |
product |
0 |
935392 |
M |
0 |
becuri-auto-carguard-12v-025w-t5-w2x46d-cu-1-led-alb-kft-auto.jpg |
|
800 |
800 |
935392 |
| 935223 |
594366 |
product |
0 |
935460 |
M |
0 |
becuri-auto-vecta-cu-6-leduri-12v-sv85--39-mm-albastru-tip-sofit-kft-auto.jpg |
|
532 |
800 |
935460 |