mirror of https://github.com/koreader/koreader
[plugin] Statistics: do not increment db sequences unnecessarily during cloud sync (#9921)
When you do an insert using either ON CONFLICT [...] DO NOTHING or INSERT OR IGNORE to prevent duplicate rows, sqlite still increments the sequence counter for each of the duplicate rows that it did not insert. The only way around that is to explicitly write the SQL statement so that it doesn't try to insert the duplicates in the first place.reviewable/pr9926/r1
parent
a53e9847fa
commit
932ed44a9f
Loading…
Reference in New Issue