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:43 +0000 (23:43 +0000)
committerivan <ivan>
Sun, 26 Apr 2009 23:43:43 +0000 (23:43 +0000)
FS/FS/Schema.pm

index 6aae916..9fc857b 100644 (file)
@@ -1196,7 +1196,9 @@ sub tables_hashref {
       ],
       'primary_key' => 'jobnum',
       'unique'      => [],
-      'index'       => [ [ 'svcnum' ], [ 'status' ] ],
+      'index'       => [ [ 'priority', ],
+                         [ 'job' ], [ 'svcnum' ], [ 'custnum' ], [ 'status' ],
+                       ],
     },
 
     'queue_arg' => {