diff options
author | Dries Buytaert <dries@buytaert.net> | 2003-08-27 05:49:52 +0000 |
---|---|---|
committer | Dries Buytaert <dries@buytaert.net> | 2003-08-27 05:49:52 +0000 |
commit | 89005902e44973f798cfa903742c0d8b99345ce0 (patch) | |
tree | 237f57b37a8d85907d121f118b0a9cbd2144f8fa /database/database.pgsql | |
parent | 93fb265d478c06a6dcce25473f1f904095c5622a (diff) | |
download | brdo-89005902e44973f798cfa903742c0d8b99345ce0.tar.gz brdo-89005902e44973f798cfa903742c0d8b99345ce0.tar.bz2 |
- Tested and committed Kjartan's performance patches. (Fixed the access check
in update.php though.)
Diffstat (limited to 'database/database.pgsql')
-rw-r--r-- | database/database.pgsql | 9 |
1 files changed, 6 insertions, 3 deletions
diff --git a/database/database.pgsql b/database/database.pgsql index 74b5cde3c..d98bfcdce 100644 --- a/database/database.pgsql +++ b/database/database.pgsql @@ -25,6 +25,7 @@ CREATE TABLE accesslog ( uid integer default '0', timestamp integer NOT NULL default '0' ); +CREATE INDEX accesslog_timestamp_idx ON accesslog (timestamp); -- -- Table structure for authmap @@ -280,11 +281,13 @@ CREATE TABLE node ( static integer NOT NULL default '0', PRIMARY KEY (nid) ); -CREATE INDEX node_type_idx ON node(type); -CREATE INDEX node_title_idx ON node(title,type); -CREATE INDEX node_promote_idx ON node(promote); +CREATE INDEX node_type_idx ON node(type(4)); +CREATE INDEX node_title_idx ON node(title,type(4)); CREATE INDEX node_status_idx ON node(status); CREATE INDEX node_uid_idx ON node(uid); +CREATE INDEX node_moderate_idx ON node (moderate); +CREATE INDEX node_path_idx ON node (path(8)); +CREATE INDEX node_promote_status_idx ON node (promote, status); -- -- Table structure for page |