summaryrefslogtreecommitdiff
path: root/database/database.pgsql
diff options
context:
space:
mode:
authorDries Buytaert <dries@buytaert.net>2005-03-23 06:12:30 +0000
committerDries Buytaert <dries@buytaert.net>2005-03-23 06:12:30 +0000
commiteb2fb414fa84d5a82049dac46b52111afb008c02 (patch)
tree0bc8c6bfd44e494da7cb45f39706d5889209ef66 /database/database.pgsql
parenta7fa9552cada7d77bd340390c1e28d9cf9181e58 (diff)
downloadbrdo-eb2fb414fa84d5a82049dac46b52111afb008c02.tar.gz
brdo-eb2fb414fa84d5a82049dac46b52111afb008c02.tar.bz2
- Patch by Matt and chx: improved performance of taxonomy queries. When many
terms are matched, the query would become very slow.
Diffstat (limited to 'database/database.pgsql')
-rw-r--r--database/database.pgsql3
1 files changed, 2 insertions, 1 deletions
diff --git a/database/database.pgsql b/database/database.pgsql
index 41665bf11..c5e33e0a3 100644
--- a/database/database.pgsql
+++ b/database/database.pgsql
@@ -649,7 +649,8 @@ CREATE INDEX term_hierarchy_parent_idx ON term_hierarchy(parent);
CREATE TABLE term_node (
nid integer NOT NULL default '0',
- tid integer NOT NULL default '0'
+ tid integer NOT NULL default '0',
+ PRIMARY KEY (tid,nid)
);
CREATE INDEX term_node_nid_idx ON term_node(nid);
CREATE INDEX term_node_tid_idx ON term_node(tid);