[MDEV-19938] Reorganize multiple history partitions Created: 2019-07-03 Updated: 2020-04-16 |
|
| Status: | Open |
| Project: | MariaDB Server |
| Component/s: | Partitioning, Versioned Tables |
| Fix Version/s: | None |
| Type: | Task | Priority: | Minor |
| Reporter: | Aleksey Midenkov | Assignee: | Aleksey Midenkov |
| Resolution: | Unresolved | Votes: | 0 |
| Labels: | None | ||
| Issue Links: |
|
||||||||||||
| Description |
|
Implement merging of multiple history partitions by the syntax:
Consider implementing splitting into multiple history partitions:
Splitting distributes rows equally between specified partitions. For INTERVAL: For LIMIT: Currently splitting and merging fail with error:
|
| Comments |
| Comment by Sergei Golubchik [ 2019-07-08 ] | |
|
I don't understand.
Does it mean that p1 is not used at all? Why is it allowed then? | |
| Comment by Aleksey Midenkov [ 2020-04-16 ] | |
|
The use case for merging/splitting is when switching from INTERVAL to LIMIT. Yes, the use of `PARTITIONS 3` is not evident without INTERVAL/LIMIT though might be useful to quickly drop current history (after maybe backed up). |