[Author Prev][Author Next][Thread Prev][Thread Next][Author Index][Thread Index]
[or-cvs] [metrics-db/master] Update index definitions.
commit 09c81f14ab01983c7a721dade8aded1f775727b6
Author: Karsten Loesing <karsten.loesing@xxxxxxx>
Date: Sun Feb 6 12:08:14 2011 +0100
Update index definitions.
---
db/tordir.sql | 11 ++++-------
1 files changed, 4 insertions(+), 7 deletions(-)
diff --git a/db/tordir.sql b/db/tordir.sql
index e289561..11e49dc 100644
--- a/db/tordir.sql
+++ b/db/tordir.sql
@@ -115,16 +115,13 @@ CREATE TABLE connbidirect (
);
-- Create the various indexes we need for searching relays
-CREATE INDEX statusentry_validafter_address
- ON statusentry (validafter, address);
-CREATE INDEX statusentry_descriptor ON statusentry (descriptor);
-CREATE INDEX statusentry_validafter_fingerprint
- ON statusentry (validafter, fingerprint);
-CREATE INDEX statusentry_validafter_nickname
- ON statusentry (validafter, LOWER(nickname));
+CREATE INDEX statusentry_address ON statusentry (address);
+CREATE INDEX statusentry_fingerprint ON statusentry (fingerprint);
+CREATE INDEX statusentry_nickname ON statusentry (LOWER(nickname));
CREATE INDEX statusentry_validafter ON statusentry (validafter);
-- And create an index that we use for precalculating statistics
+CREATE INDEX statusentry_descriptor ON statusentry (descriptor);
CREATE INDEX statusentry_validafter_date ON statusentry (DATE(validafter));
-- TABLE network_size