Commit 8489d9d
PS-10232 [8.0]: Fix performance regression by limiting
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: As a future optimization, it would likely be beneficial
to communicate the LIMIT value to the executor so that it could
reduce the buffer size to that value - or not allocate a buffer at
all in case of LIMIT 1.rows_in_buffer to query LIMIT
1 parent 272666d commit 8489d9d
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