summaryrefslogtreecommitdiff
path: root/SQL/mssql.initial.sql
diff options
context:
space:
mode:
authoralecpl <alec@alec.pl>2008-11-21 18:19:30 +0000
committeralecpl <alec@alec.pl>2008-11-21 18:19:30 +0000
commit3e48d2eee1d2af42aa777fd5e461fa570762732e (patch)
treea578fc94ebb4ad6618c4785138498ea03939b9ab /SQL/mssql.initial.sql
parentbe7d3b6918ff90757d10804ac914edb5a65f4828 (diff)
- Increase speed of session destroy and garbage clean up
- Fix session timeout when DB server got clock skew (#1485490)
Diffstat (limited to 'SQL/mssql.initial.sql')
-rw-r--r--SQL/mssql.initial.sql3
1 files changed, 3 insertions, 0 deletions
diff --git a/SQL/mssql.initial.sql b/SQL/mssql.initial.sql
index f3b5d5ca7..fc60a4d8d 100644
--- a/SQL/mssql.initial.sql
+++ b/SQL/mssql.initial.sql
@@ -196,6 +196,9 @@ ALTER TABLE [dbo].[session] ADD
CONSTRAINT [DF_session_ip] DEFAULT ('') FOR [ip]
GO
+ CREATE INDEX [IX_session_changed] ON [dbo].[session]([changed]) ON [PRIMARY]
+GO
+
ALTER TABLE [dbo].[users] ADD
CONSTRAINT [DF_users_username] DEFAULT ('') FOR [username],
CONSTRAINT [DF_users_mail_host] DEFAULT ('') FOR [mail_host],