こちらでは、パーティション単位でデータを暗号化する例を記載しています。
もし、開発環境などに重要な情報を持っていく場合に、暗号化した方がいいケースも有ると思いますので、そんな時にパーティションに分けて並列で暗号化する事で暗号化の時間を短縮する事も可能です。
Sample Table :
mysql> show create table t_partition_poc\G
*************************** 1. row ***************************
Table: t_partition_poc
Create Table: CREATE TABLE `t_partition_poc` (
`sid` int unsigned NOT NULL,
`ClientId` int unsigned NOT NULL DEFAULT '0',
`ContentId` int unsigned NOT NULL DEFAULT '0',
`ipAddress` varchar(40) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci NOT NULL DEFAULT '',
`os` varchar(255) COLLATE utf8mb4_unicode_ci NOT NULL DEFAULT 'No Information',
`status` tinyint unsigned NOT NULL DEFAULT '1',
`clickDate` date …[さらに読む]