Query time 0.00134
JSON explain
{
"query_block": {
"select_id": 1,
"cost_info": {
"query_cost": "260.41"
},
"ordering_operation": {
"using_filesort": true,
"cost_info": {
"sort_cost": "48.00"
},
"nested_loop": [
{
"table": {
"table_name": "q_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": 48,
"rows_produced_per_join": 48,
"filtered": "100.00",
"index_condition": "((`portal`.`q_images_links`.`object_type` = 'product') and (`portal`.`q_images_links`.`type` = 'A') and (`portal`.`q_images_links`.`object_id` in ('264','265','266','267','268','269','270','271','272','273','274','275','276','277','278','279','280','281','282','283','284','285','286','287','288','289','290','291','292','293')))",
"cost_info": {
"read_cost": "87.61",
"eval_cost": "9.60",
"prefix_cost": "97.21",
"data_read_per_join": "4K"
},
"used_columns": [
"pair_id",
"object_id",
"object_type",
"image_id",
"detailed_id",
"type",
"position"
]
}
},
{
"table": {
"table_name": "q_images",
"access_type": "eq_ref",
"possible_keys": [
"PRIMARY"
],
"key": "PRIMARY",
"used_key_parts": [
"image_id"
],
"key_length": "4",
"ref": [
"portal.q_images_links.image_id"
],
"rows_examined_per_scan": 1,
"rows_produced_per_join": 48,
"filtered": "100.00",
"cost_info": {
"read_cost": "48.00",
"eval_cost": "9.60",
"prefix_cost": "154.81",
"data_read_per_join": "36K"
},
"used_columns": [
"image_id",
"image_path",
"image_x",
"image_y",
"is_high_res"
]
}
},
{
"table": {
"table_name": "q_common_descriptions",
"access_type": "eq_ref",
"possible_keys": [
"PRIMARY"
],
"key": "PRIMARY",
"used_key_parts": [
"object_id",
"lang_code",
"object_holder"
],
"key_length": "107",
"ref": [
"portal.q_images.image_id",
"const",
"const"
],
"rows_examined_per_scan": 1,
"rows_produced_per_join": 48,
"filtered": "100.00",
"cost_info": {
"read_cost": "48.00",
"eval_cost": "9.60",
"prefix_cost": "212.41",
"data_read_per_join": "28K"
},
"used_columns": [
"object_id",
"description",
"lang_code",
"object_holder"
],
"attached_condition": "<if>(is_not_null_compl(q_common_descriptions), (`portal`.`q_common_descriptions`.`object_id` = `portal`.`q_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 |
|
|
|
|
551 |
264 |
product |
2528 |
A |
10 |
|
|
0 |
|
|
|
|
553 |
265 |
product |
2530 |
A |
10 |
|
|
0 |
|
|
|
|
555 |
266 |
product |
2532 |
A |
10 |
|
|
0 |
|
|
|
|
557 |
267 |
product |
2534 |
A |
10 |
|
|
0 |
|
|
|
|
559 |
268 |
product |
2536 |
A |
10 |
|
|
0 |
|
|
|
|
561 |
269 |
product |
2538 |
A |
10 |
|
|
0 |
|
|
|
|
563 |
270 |
product |
2540 |
A |
10 |
|
|
0 |
|
|
|
|
566 |
272 |
product |
2543 |
A |
10 |
|
|
0 |
|
|
|
|
568 |
273 |
product |
2545 |
A |
10 |
|
|
0 |
|
|
|
|
570 |
274 |
product |
2547 |
A |
10 |
|
|
0 |
|
|
|
|
572 |
275 |
product |
2549 |
A |
10 |
|
|
0 |
|
|
|
|
574 |
276 |
product |
2551 |
A |
10 |
|
|
0 |
|
|
|
|
576 |
277 |
product |
2553 |
A |
10 |
|
|
0 |
|
|
|
|
578 |
278 |
product |
2555 |
A |
10 |
|
|
0 |
|
|
|
|
580 |
279 |
product |
2557 |
A |
10 |
|
|
0 |
|
|
|
|
582 |
280 |
product |
2559 |
A |
10 |
|
|
0 |
|
|
|
|
584 |
281 |
product |
2561 |
A |
10 |
|
|
0 |
|
|
|
|
586 |
282 |
product |
2563 |
A |
10 |
|
|
0 |
|
|
|
|
588 |
283 |
product |
2565 |
A |
10 |
|
|
0 |
|
|
|
|
590 |
284 |
product |
2567 |
A |
10 |
|
|
0 |
|
|
|
|
592 |
285 |
product |
2569 |
A |
10 |
|
|
0 |
|
|
|
|
594 |
286 |
product |
2571 |
A |
10 |
|
|
0 |
|
|
|
|
596 |
287 |
product |
2573 |
A |
10 |
|
|
0 |
|
|
|
|
598 |
288 |
product |
2575 |
A |
10 |
|
|
0 |
|
|
|
|
600 |
289 |
product |
2577 |
A |
10 |
|
|
0 |
|
|
|
|
602 |
290 |
product |
2579 |
A |
10 |
|
|
0 |
|
|
|
|
604 |
291 |
product |
2581 |
A |
10 |
|
|
0 |
|
|
|
|
606 |
292 |
product |
2583 |
A |
10 |
|
|
0 |
|
|
|
|
608 |
293 |
product |
2585 |
A |
10 |
|
|