diff options
author | alecpl <alec@alec.pl> | 2008-11-21 18:19:30 +0000 |
---|---|---|
committer | alecpl <alec@alec.pl> | 2008-11-21 18:19:30 +0000 |
commit | 3e48d2eee1d2af42aa777fd5e461fa570762732e (patch) | |
tree | a578fc94ebb4ad6618c4785138498ea03939b9ab /SQL/mysql5.initial.sql | |
parent | be7d3b6918ff90757d10804ac914edb5a65f4828 (diff) |
- Increase speed of session destroy and garbage clean up
- Fix session timeout when DB server got clock skew (#1485490)
Diffstat (limited to 'SQL/mysql5.initial.sql')
-rw-r--r-- | SQL/mysql5.initial.sql | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/SQL/mysql5.initial.sql b/SQL/mysql5.initial.sql index e01f2a6b1..7d11288e3 100644 --- a/SQL/mysql5.initial.sql +++ b/SQL/mysql5.initial.sql @@ -14,7 +14,8 @@ CREATE TABLE `session` ( `changed` datetime NOT NULL DEFAULT '0000-00-00 00:00:00', `ip` varchar(40) NOT NULL, `vars` text NOT NULL, - PRIMARY KEY(`sess_id`) + PRIMARY KEY(`sess_id`), + INDEX `changed_index` (`changed`) ) TYPE=INNODB CHARACTER SET utf8 COLLATE utf8_general_ci; |