mirror of
https://github.com/MariaDB/server.git
synced 2025-07-27 18:02:13 +03:00
MDEV-30806: ANALYZE FORMAT=JSON: better support for BNL and BNL-H joins
In block-nl-join, add: - r_loops - this shows how many incoming record combinations this query plan node had. - r_effective_rows - this shows the average number of matching rows that this table had for each incoming record combination. This is comparable with r_rows in non-blocked access methods. For BNL-joins, it is always equal to $.table.r_rows * $.table.r_filtered For BNL-H joins the value cannot be computed from other values Reviewed by: Monty <monty@mariadb.org>
This commit is contained in:
@ -334,7 +334,9 @@ ANALYZE
|
||||
"buffer_type": "flat",
|
||||
"buffer_size": "119",
|
||||
"join_type": "BNL",
|
||||
"r_filtered": 100
|
||||
"r_loops": 2,
|
||||
"r_filtered": 100,
|
||||
"r_effective_rows": 2
|
||||
}
|
||||
}
|
||||
},
|
||||
@ -370,7 +372,9 @@ ANALYZE
|
||||
"buffer_type": "flat",
|
||||
"buffer_size": "119",
|
||||
"join_type": "BNL",
|
||||
"r_filtered": 100
|
||||
"r_loops": 2,
|
||||
"r_filtered": 100,
|
||||
"r_effective_rows": 2
|
||||
}
|
||||
}
|
||||
}
|
||||
@ -435,7 +439,9 @@ ANALYZE
|
||||
"buffer_type": "flat",
|
||||
"buffer_size": "119",
|
||||
"join_type": "BNL",
|
||||
"r_filtered": 100
|
||||
"r_loops": 2,
|
||||
"r_filtered": 100,
|
||||
"r_effective_rows": 2
|
||||
}
|
||||
}
|
||||
},
|
||||
@ -471,7 +477,9 @@ ANALYZE
|
||||
"buffer_type": "flat",
|
||||
"buffer_size": "119",
|
||||
"join_type": "BNL",
|
||||
"r_filtered": 100
|
||||
"r_loops": 2,
|
||||
"r_filtered": 100,
|
||||
"r_effective_rows": 2
|
||||
}
|
||||
}
|
||||
}
|
||||
|
Reference in New Issue
Block a user