Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Upgrade existing cache version to a new version #228

Open
frankenjoe opened this issue Aug 12, 2022 · 1 comment
Open

Upgrade existing cache version to a new version #228

frankenjoe opened this issue Aug 12, 2022 · 1 comment
Labels
enhancement New feature or request load

Comments

@frankenjoe
Copy link
Collaborator

With large databases I sometimes do the following:

  1. go to the audb cache and delete all table files
  2. rename version folder from previous, e.g. 1.0.0, to new version, e.g. 1.0.1
  3. load new version with audb.load()

I usually do this with bug fixes to avoid having two very similar versions where anyway only one should be used in the cache.

I think it might be useful to provide a upgrade() function that converts version A to version B in a similar way. It could be implemented even smarter by only downloading the tables that actually differ between the versions.

@frankenjoe frankenjoe added the enhancement New feature or request label Aug 12, 2022
@hagenw
Copy link
Member

hagenw commented Aug 12, 2022

In #225 I also propose to download each table only once and store it under the version it was created/changed.

@hagenw hagenw added the load label Apr 19, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request load
Projects
None yet
Development

No branches or pull requests

2 participants