summaryrefslogtreecommitdiff
path: root/database/database.pgsql
diff options
context:
space:
mode:
authorDries Buytaert <dries@buytaert.net>2005-05-07 11:39:54 +0000
committerDries Buytaert <dries@buytaert.net>2005-05-07 11:39:54 +0000
commit39d0fe9a3882f26ff1abe2bca2c28f94b0a8cec0 (patch)
treeb2186e04ba329254abd00b8a866d16e47b9e64b3 /database/database.pgsql
parent898e2b668879e584a13202e38a2366a0de2aabb5 (diff)
downloadbrdo-39d0fe9a3882f26ff1abe2bca2c28f94b0a8cec0.tar.gz
brdo-39d0fe9a3882f26ff1abe2bca2c28f94b0a8cec0.tar.bz2
- User module improvements: added an 'access' column to the users-table to
keep track of the user's last access. In turn, this allowed me to: 1. Optimize the "Who's online" block. On drupal.org, the "Who's online" block requires 32 SQL queries. With this patch, only 2 queries are left (eliminated 30 SQL queries), and one of the two remaining queries became appr. 20 times faster. 2. Correct the "Last access" column in the user administration overview table. The presented data was not accurate, which led to the column being removed. You can now sort users by 'last access'.
Diffstat (limited to 'database/database.pgsql')
-rw-r--r--database/database.pgsql2
1 files changed, 1 insertions, 1 deletions
diff --git a/database/database.pgsql b/database/database.pgsql
index 67f7ed631..f4d4b831a 100644
--- a/database/database.pgsql
+++ b/database/database.pgsql
@@ -687,7 +687,7 @@ CREATE TABLE users (
theme varchar(255) NOT NULL default '',
signature varchar(255) NOT NULL default '',
created integer NOT NULL default '0',
- changed integer NOT NULL default '0',
+ access integer NOT NULL default '0',
login integer NOT NULL default '0',
status smallint NOT NULL default '0',
timezone varchar(8) default NULL,