Create an index that is sometimes helpful in speeding up the equipment
authorSteinar H. Gunderson <sesse@debian.org>
Wed, 25 Jul 2007 09:48:47 +0000 (11:48 +0200)
committerSteinar H. Gunderson <sesse@debian.org>
Wed, 25 Jul 2007 09:48:47 +0000 (11:48 +0200)
queries.

sql/pr0n.sql

index cd528e6600858217e0286d92ef51ccfbdd17f9b8..11af9cac9ea0d17711ade54e01e8a8bf08b57e85 100644 (file)
@@ -78,7 +78,8 @@ CREATE TABLE exif_info (
 
     PRIMARY KEY ( image, tag )
 );
-    
+
+CREATE INDEX exif_info_tag ON exif_info ( tag );
 
 GRANT INSERT ON TABLE deleted_images TO pr0n;
 GRANT INSERT,SELECT,UPDATE,DELETE ON TABLE events TO pr0n;