SYSTEM_TIME INTERVAL partitioning for system-versioned MariaDB tables |
|
SYSTEM_TIME INTERVAL partitioning is part of editing system-versioned tables (only MariaDB) | |
|
|
Creating a SYSTEM_TIME INTERVAL partition of MariaDB tables:
|
| SYSTEM_TIME INTERVAL partitioning is only available for system-versioned tables from MariaDB version 10.3 onwards.
Partitioning by: | Choice of partitioning method. |
Interval / Start: | Interval with which data rows are to be stored in History partitions (change of partition). A start date of the interval can be specified. If not, it will be assigned automatically. |
Number of partitions: | Specifies how many partitions should be created. This will create only one partition for the current data. |
Start: | Start the partition editor with the set parameters. |
|
|
| Subpartitions can be created:
Subpartitions by: | Select partitioning method (HASH, LINEAR HASH, KEY, LINEAR KEY). |
Expression: | Expression or table column by which to partition.
You can select functions (dropdown on the left only HASH, LINEAR HASH) and table columns (dropdown on the right). .
Depending on the selected function, suitable table columns are made available.
If a HASH partitioning is to be partitioned according to a TIMESTAMP column, the UNIX_TIMESTAMP( column ) function must be used.
|
Number of subpartitions: | Specification of how many sub-partitions should be created. |
|
|
Notice:
All table columns used for partitioning must be present in all UNIQUE indexes. The program does this automatically and adds the columns to the indexes when partitioning.
In the table column selection, columns that already exist in all UNIQUE indices are displayed in blue color.
|
|
Partition editor: |
|
Name: | Name of the partition. |
Description: | Type of data stored in partition HISTORY or CURRENT.
Only one CURRENT partition is created at a time. |
Subpartition: | Name of the sub-partition. |
Data Directory: | Number of data rows in partition. |
Minimum number of rows: | MySQL partition management benchmark that specifies the minimum number of data rows in the partition.
| Maximum number of rows: | MySQL partition management benchmark that specifies the maximum number of data rows in the partition.
| TABLESPACE: | Selection of a defined TABLESPACE entry that contains information about the storage space of tables.
| Comment: | Comment on the partition. |
|
For data directory, minimum number of rows, maximum number of rows and TABLESPACE, the value contained can be copied to all other partitions by double-clicking on the input field.
|
|
|
Create partitions. |
|
Show the SQL statement to create the partitions. |
|
| More information about creating SYSTEM_TIME INTERVAL partitions in MariaDB tables: |
|
|
|