File tree Expand file tree Collapse file tree 2 files changed +5
-6
lines changed Expand file tree Collapse file tree 2 files changed +5
-6
lines changed Original file line number Diff line number Diff line change @@ -859,8 +859,9 @@ impl Connection for SqliteConnection {
859
859
series : & [ u32 ] ,
860
860
artifact_row_ids : & [ Option < ArtifactIdNumber > ] ,
861
861
) -> Vec < Vec < Option < f64 > > > {
862
- let conn = self . raw_ref ( ) ;
863
- let mut query = conn
862
+ let mut conn = self . raw_ref ( ) ;
863
+ let tx = conn. transaction ( ) . unwrap ( ) ;
864
+ let mut query = tx
864
865
. prepare_cached ( "select min(value) from pstat where series = ? and aid = ?;" )
865
866
. unwrap ( ) ;
866
867
series
Original file line number Diff line number Diff line change @@ -374,12 +374,10 @@ impl StatisticSeries {
374
374
. map ( |aid| aid. lookup ( & index) )
375
375
. collect :: < Vec < _ > > ( ) ;
376
376
377
- let mut conn = ctxt. conn ( ) . await ;
378
- let mut tx = conn. transaction ( ) . await ;
377
+ let conn = ctxt. conn ( ) . await ;
379
378
380
379
let start = std:: time:: Instant :: now ( ) ;
381
- let res = tx
382
- . conn ( )
380
+ let res = conn
383
381
. get_pstats ( & sids, & aids)
384
382
. await
385
383
. into_iter ( )
You can’t perform that action at this time.
0 commit comments