X-Git-Url: http://andersk.mit.edu/gitweb/moira.git/blobdiff_plain/c6161d799532c4758f71767b9c432d090b34e4f7..ed9d15d710527d3e6c48f9ab6e51e398b27d8f89:/db/dbopt.sql

diff --git a/db/dbopt.sql b/db/dbopt.sql
index df88c025..7555b3ef 100644
--- a/db/dbopt.sql
+++ b/db/dbopt.sql
@@ -5,6 +5,7 @@ create index i_usr_last on  users (last, first);
 create index i_usr_uid on  users (unix_uid);
 create index i_usr_pop on  users (pop_id);
 create index i_usr_clearid on users (clearid);
+create index i_usr_resv on users (reservations);
 
 create unique index i_krb_usid on krbmap  (users_id);
 create index i_krb_str on  krbmap (string_id);
@@ -14,6 +15,7 @@ create index i_mac_name on  machine (name);
 create index i_mac_addr on machine (address);
 create index i_mac_loc on machine (location);
 create index i_mac_snet on machine (snet_id);
+create index i_mac_hwaddr on machine (hwaddr);
 
 create unique index i_hal_name on hostalias  (name);
 create index i_hal_id on hostalias (mach_id);
@@ -46,7 +48,7 @@ create index i_imem_mid on imembers (member_id, member_type);
 create index i_imem_list on  imembers (list_id);
 
 create unique index i_str_sid on strings  (string_id);
-create index i_str_name on  strings (string);
+create unique index i_str_name on  strings (string);
 
 create unique index i_nfs_nid on nfsphys  (nfsphys_id);
 create index i_nfs_mach on  nfsphys (mach_id);
@@ -69,9 +71,13 @@ create unique index i_zph_class on zephyr  (class);
 
 create unique index i_hac_mid on hostaccess  (mach_id);
 
-create index i_pcp_name on printcap (name);
-create index i_pcp_mach on  printcap (mach_id);
+create index i_acl_mt on acl (mach_id, target);
 
-create index i_plad_name on palladium (name);
+create index i_prn_name on printers (name);
+create index i_prn_dname on printers (duplexname);
+create index i_prn_mach on printers (mach_id);
+create index i_prn_rm on printers (rm);
+create index i_prn_loc on printers (location);
+create index i_prn_con on printers (contact);
 
 create index i_cap_tag on capacls (tag);
