Cluster exif_info on the tag field; it seems to help quite a lot for the
authorSteinar H. Gunderson <sesse@debian.org>
Wed, 25 Jul 2007 13:11:10 +0000 (15:11 +0200)
committerSteinar H. Gunderson <sesse@debian.org>
Wed, 25 Jul 2007 13:11:10 +0000 (15:11 +0200)
equipment query.

sql/pr0n.sql

index 11af9cac9ea0d17711ade54e01e8a8bf08b57e85..5eacc40c23253ea8cf26030540ac00841e2a03a3 100644 (file)
@@ -80,6 +80,7 @@ CREATE TABLE exif_info (
 );
 
 CREATE INDEX exif_info_tag ON exif_info ( tag );
+CLUSTER exif_info_tag ON exif_info;
 
 GRANT INSERT ON TABLE deleted_images TO pr0n;
 GRANT INSERT,SELECT,UPDATE,DELETE ON TABLE events TO pr0n;