Skip to content

sqlite_zip profile - cache/reuse decompressed db #7100

@eimrek

Description

@eimrek

Currently when an sqlite_zip backend is loaded, the sqlite db is decompressed from the .aiida file into a temporary location, which can take a while for larger archives. After the process closes, this decompressed db file is removed.

This is bad e.g. when one wants to interactively load/unload different profiles (e.g. on a jupyter notebook), or in some cases when running the REST API (seems to happen e.g. with multiple gunicorn workers).

It might be better to cache the decompressed sqlite DB either in the temporary directory (e.g. by using a deterministic name), or maybe cached in the .aiida folder.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions