Skip to content

Commit 6d3e324

Browse files
Also clean experiment_crates table for finished runs
1 parent 60714cb commit 6d3e324

File tree

1 file changed

+9
-0
lines changed

1 file changed

+9
-0
lines changed

src/results/db.rs

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -65,6 +65,15 @@ impl<'a> DatabaseDB<'a> {
6565
)",
6666
&[],
6767
)?;
68+
self.db.execute(
69+
"delete from experiment_crates where rowid in (
70+
select rowid from experiment_crates where \
71+
experiment in (select name from experiments where status = 'completed') \
72+
limit 100
73+
)",
74+
&[],
75+
)?;
76+
6877
Ok(())
6978
}
7079

0 commit comments

Comments
 (0)