indexing cust_bill_event.eventpart should help speed up freeside-migrate-events sligh...
authorivan <ivan>
Sun, 1 Feb 2009 10:37:16 +0000 (10:37 +0000)
committerivan <ivan>
Sun, 1 Feb 2009 10:37:16 +0000 (10:37 +0000)
FS/FS/Schema.pm

index d32f72f..232977a 100644 (file)
@@ -396,7 +396,7 @@ sub tables_hashref {
       'primary_key' => 'eventnum',
       #no... there are retries now #'unique' => [ [ 'eventpart', 'invnum' ] ],
       'unique' => [],
-      'index' => [ ['invnum'], ['status'] ],
+      'index' => [ ['invnum'], ['status'], ['eventpart'] ],
     },
 
     'part_bill_event' => {