improve performance of self-service usage overview with lots of CDRs, RT#73889
authorIvan Kohler <ivan@freeside.biz>
Thu, 26 Jan 2017 03:53:28 +0000 (19:53 -0800)
committerIvan Kohler <ivan@freeside.biz>
Thu, 26 Jan 2017 03:53:28 +0000 (19:53 -0800)
FS/FS/Schema.pm

index 0e41b1a..bacef72 100644 (file)
@@ -5621,6 +5621,7 @@ sub tables_hashref {
       'unique' => [],
       'index' => [ [ 'calldate' ],
                    [ 'src' ], [ 'dst' ], [ 'dcontext' ], [ 'charged_party' ],
+                   [ 'startdate' ],
                    [ 'lastapp' ],
                    ['accountcode'], ['uniqueid'], ['carrierid'], ['cdrid'],
                    [ 'sessionnum' ], [ 'subscriber' ],