Closed
Description
When backup is imported, backup is first copied, then blobs are copied to disk, and then VACUUM
is executed to delete blobs table from the database. When VACUUM
is executed, sqlite copies the database one more time.
A solution for this problem is to use a new backup format based on sqlar format, as proposed by @csb0730. In this format, messages database is stored as another blob/file in the archive, so after unpacking, there is no need to VACUUM
it. Only the backup database/archive contains blobs.
See issues deltachat/deltachat-core#261 and #1640 for discussion.
Implementation for non-async core is in csb0730@a87ddf0