Skip to content

Backup import uses 3 times the space as all the blobs #1724

Closed
@link2xt

Description

@link2xt

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementNew feature or request

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions