From: Damyan Ivanov Date: Thu, 22 Apr 2021 20:43:55 +0000 (+0300) Subject: speed up transaction storage a bit X-Git-Tag: v0.18.0~52 X-Git-Url: https://git.ktnx.net/?a=commitdiff_plain;ds=inline;h=451569cb01799c684b210cd6839d68825092a117;hp=451569cb01799c684b210cd6839d68825092a117;p=mobile-ledger.git speed up transaction storage a bit by updating existing records in-place. sqlite's insert or replace statement tries insert, and when that fails because of unique/primary key violation *removes* the existing record together with any child records and then retries the insert. it is almost like deleting all the transactions and inserting them again, but with a failed insert before that ---