mirror of
https://github.com/kokororin/typecho-plugin-Access.git
synced 2025-01-14 06:10:06 +08:00
feat: database add index to ua field
This commit is contained in:
parent
eee11fc919
commit
7fbbbbd7f4
@ -25,6 +25,7 @@ CREATE TABLE `typecho_access_logs` (
|
||||
PRIMARY KEY (`id`),
|
||||
KEY `idx_time` (`time` ),
|
||||
KEY `idx_path` (`path` ),
|
||||
KEY `idx_ua` (`ua` ),
|
||||
KEY `idx_ip_ua` (`ip`,`ua` ),
|
||||
KEY `idx_robot` (`robot`, `time` ),
|
||||
KEY `idx_os_id` (`os_id` ),
|
||||
|
@ -25,6 +25,7 @@ CREATE TABLE `typecho_access_logs` (
|
||||
);
|
||||
CREATE INDEX `typecho_access_log_time` ON `typecho_access_log` (`time` );
|
||||
CREATE INDEX `typecho_access_log_path` ON `typecho_access_log` (`path` );
|
||||
CREATE INDEX `typecho_access_log_ua` ON `typecho_access_log` (`ua` );
|
||||
CREATE INDEX `typecho_access_log_ip_ua` ON `typecho_access_log` (`ip`, `ua` );
|
||||
CREATE INDEX `typecho_access_log_robot` ON `typecho_access_log` (`robot`, `time` );
|
||||
CREATE INDEX `typecho_access_log_os_id` ON `typecho_access_log` (`os_id` );
|
||||
|
Loading…
Reference in New Issue
Block a user