improvement: batch inserts for stateids

This commit is contained in:
Timo Kösters
2021-08-03 16:14:07 +02:00
parent 49ade0cfbd
commit 41ec7cf5d0
3 changed files with 91 additions and 65 deletions

View File

@@ -243,7 +243,10 @@ impl Tree for SqliteTable {
let statement = Box::leak(Box::new(
guard
.prepare(&format!("SELECT key, value FROM {} ORDER BY key ASC", &self.name))
.prepare(&format!(
"SELECT key, value FROM {} ORDER BY key ASC",
&self.name
))
.unwrap(),
));