[MDEV-27337] Manual history partition selection Created: 2021-12-21 Updated: 2021-12-21 |
|
| Status: | Open |
| Project: | MariaDB Server |
| Component/s: | Partitioning, Versioned Tables |
| Fix Version/s: | None |
| Type: | Task | Priority: | Major |
| Reporter: | Aleksey Midenkov | Assignee: | Aleksey Midenkov |
| Resolution: | Unresolved | Votes: | 0 |
| Labels: | None | ||
| Description |
|
One should be able to specify what partition history will go in case when it is possible (INTERVAL partitioning does not allow that). Example:
It should be possible to switch current history partition for subsequent DML commands:
The above should be applied to LIMIT option as well. Currently LIMIT works by the following algorithm: 1. find empty history partition P where P-1 partition is non-empty; In other words it can select only the last non-empty partition or the next empty partition. That should be changed and LIMIT should work with any history partition no matter of whether next partitions are filled or not. Repartitioning should reorder history in chronological order for unconditional, LIMIT or INTERVAL partitioning. The old LIMIT behaviour retains history partitions in chronological order so it should be possible keep it like this by the FIXED LIMIT option:
The above does not allow to fill the history partitions in random order. |