Commit c28217d
Martin Hansson
PS-10232 [8.0]: Fix performance regression by limiting
`LIMIT`
A follow up fix (2969af5) for "Bug#36775910: Record buffer not set in index
range scans" caused a performance regression by failing to respect the handler's
recommendation to cap on number of rows in the record buffer (at the time of
writing hard-coded to 100 for InnoDB). This caused a performance regression
which is most pronounced when using a small LIMIT.
Fixed by re-introducing the cap.
Future work: It would likely be beneficial to communicate the LIMIT value to the
executor so that it could reduce the buffer size accordingly - or not allocate a
buffer at all in case of LIMIT 1.rows_in_buffer to query1 parent 272666d commit c28217d
1 file changed
+3
-0
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
739 | 739 | | |
740 | 740 | | |
741 | 741 | | |
| 742 | + | |
| 743 | + | |
| 744 | + | |
742 | 745 | | |
743 | 746 | | |
744 | 747 | | |
| |||
0 commit comments