improve performance of CDR queries, RT#73889
authorIvan Kohler <ivan@freeside.biz>
Thu, 26 Jan 2017 03:53:55 +0000 (19:53 -0800)
committerIvan Kohler <ivan@freeside.biz>
Thu, 26 Jan 2017 03:53:55 +0000 (19:53 -0800)
FS/FS/Schema.pm

index bacef72..1630f02 100644 (file)
@@ -5621,7 +5621,8 @@ sub tables_hashref {
       'unique' => [],
       'index' => [ [ 'calldate' ],
                    [ 'src' ], [ 'dst' ], [ 'dcontext' ], [ 'charged_party' ],
-                   [ 'startdate' ],
+                   [ 'startdate' ], [ 'duration' ],
+                   [ 'cdrtypenum' ], [ 'calltypenum' ],
                    [ 'lastapp' ],
                    ['accountcode'], ['uniqueid'], ['carrierid'], ['cdrid'],
                    [ 'sessionnum' ], [ 'subscriber' ],