smaller sql index
authorPierre Habouzit (MadCoder <pierre.habouzit@m4x.org>
Tue, 12 Apr 2005 16:05:18 +0000 (16:05 +0000)
committerFlorent Bruneau <florent.bruneau@polytechnique.org>
Thu, 26 Jun 2008 21:28:25 +0000 (23:28 +0200)
git-archimport-id: opensource@polytechnique.org--2005/platal--mainline--0.9--patch-536

htdocs/.arch-inventory
upgrade/0.9.6/10_search_name.sql

index 9999134..f230e38 100644 (file)
@@ -1 +1,2 @@
 precious ^valid.html
+precious phps$
index 0c49a14..111b75b 100644 (file)
@@ -3,8 +3,8 @@ CREATE TABLE `search_name` (
   `uid` int(11) NOT NULL default '0',
   `token` char(255) NOT NULL default '',
   `score` int(11) NOT NULL default '0',
-  PRIMARY KEY (uid, token),
-  INDEX (token)
+  PRIMARY KEY (token,uid),
+  INDEX (uid)
 );