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/postgres.update.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/postgres.update.sql')
-rw-r--r-- | SQL/postgres.update.sql | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/SQL/postgres.update.sql b/SQL/postgres.update.sql index fdd7f0f5e..f9cd431b6 100644 --- a/SQL/postgres.update.sql +++ b/SQL/postgres.update.sql @@ -25,5 +25,7 @@ CREATE INDEX messages_created_idx ON messages (created); -- Updates from version 0.2-beta ALTER TABLE cache DROP CONSTRAINT cache_session_id_fkey; -ALTER TABLE cache ADD FOREIGN KEY (session_id) REFERENCES session(sess_id) ON DELETE CASCADE ON UPDATE CASCADE; -CREATE INDEX cache_session_id_idx ON "cache" (session_id); +ALTER TABLE cache ADD FOREIGN KEY (session_id) REFERENCES session (sess_id) ON DELETE CASCADE ON UPDATE CASCADE; + +CREATE INDEX cache_session_id_idx ON cache (session_id); +CREATE INDEX session_changed_idx ON session (changed); |