update index of table ue_event

This commit is contained in:
2024-07-04 10:44:59 +08:00
parent 9d0fd808e8
commit 97f53e44e4
2 changed files with 4 additions and 4 deletions

View File

@@ -11,7 +11,7 @@
Target Server Version : 100338 (10.3.38-MariaDB)
File Encoding : 65001
Date: 04/07/2024 10:16:09
Date: 04/07/2024 10:43:31
*/
SET NAMES utf8mb4;
@@ -33,7 +33,7 @@ CREATE TABLE `ue_event_amf` (
`tenant_id` varchar(32) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL DEFAULT NULL,
PRIMARY KEY (`id`) USING BTREE,
INDEX `id`(`id`) USING BTREE,
INDEX `idx_type_timestamp`(`ne_type`, `timestamp`, `event_type`) USING BTREE
INDEX `idx_type_timestamp`(`ne_type`, `timestamp`, `event_type`, `tenant_id`) USING BTREE
) ENGINE = InnoDB AUTO_INCREMENT = 1 CHARACTER SET = utf8mb4 COLLATE = utf8mb4_general_ci ROW_FORMAT = Dynamic;
SET FOREIGN_KEY_CHECKS = 1;

View File

@@ -11,7 +11,7 @@
Target Server Version : 100338 (10.3.38-MariaDB)
File Encoding : 65001
Date: 04/07/2024 10:16:09
Date: 04/07/2024 10:41:59
*/
SET NAMES utf8mb4;
@@ -32,7 +32,7 @@ CREATE TABLE IF NOT EXISTS `ue_event_amf` (
`tenant_id` varchar(32) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL DEFAULT NULL,
PRIMARY KEY (`id`) USING BTREE,
INDEX `id`(`id`) USING BTREE,
INDEX `idx_type_timestamp`(`ne_type`, `timestamp`, `event_type`) USING BTREE
INDEX `idx_type_timestamp`(`ne_type`, `timestamp`, `event_type`, `tenant_id`) USING BTREE
) ENGINE = InnoDB AUTO_INCREMENT = 1 CHARACTER SET = utf8mb4 COLLATE = utf8mb4_general_ci ROW_FORMAT = Dynamic;
SET FOREIGN_KEY_CHECKS = 1;