]> git.ktnx.net Git - mobile-ledger.git/commitdiff
speed up transaction storage a bit
authorDamyan Ivanov <dam+mobileledger@ktnx.net>
Thu, 22 Apr 2021 20:43:55 +0000 (23:43 +0300)
committerDamyan Ivanov <dam+mobileledger@ktnx.net>
Thu, 22 Apr 2021 20:43:55 +0000 (23:43 +0300)
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


No differences found