would help to have an index on priority if we're going to order based on it
authorivan <ivan>
Sun, 26 Apr 2009 23:43:34 +0000 (23:43 +0000)
committerivan <ivan>
Sun, 26 Apr 2009 23:43:34 +0000 (23:43 +0000)
FS/FS/Schema.pm

index 0aed3cc..5d5331a 100644 (file)
@@ -1510,7 +1510,9 @@ sub tables_hashref {
       ],
       'primary_key' => 'jobnum',
       'unique'      => [],
-      'index'       => [ [ 'job' ], [ 'svcnum' ], [ 'custnum' ], [ 'status' ] ],
+      'index'       => [ [ 'secure' ], [ 'priority' ],
+                         [ 'job' ], [ 'svcnum' ], [ 'custnum' ], [ 'status' ],
+                       ],
     },
 
     'queue_arg' => {