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

migrations #44

Open
joe-getcouragenow opened this issue Oct 30, 2020 · 4 comments
Open

migrations #44

joe-getcouragenow opened this issue Oct 30, 2020 · 4 comments
Labels
question Further information is requested

Comments

@joe-getcouragenow
Copy link

v2 looks awesome.

Really like the DSL and aggregations.

One thing that is blocking is Migrations. Does anyone have any thoughts on a strategy for this ?

@timshannon
Copy link
Owner

You can just get every key from the old DB and put them into the new one. Everything badgerhold uses (indexes, type info, etc), is stored in the database.

@timshannon timshannon added the question Further information is requested label Oct 30, 2020
@IvanTurgenev
Copy link

You can just get every key from the old DB and put them into the new one. Everything badgerhold uses (indexes, type info, etc), is stored in the database.

to create backups?

@gedw99
Copy link

gedw99 commented Mar 13, 2021

No to migrate the data from one Schema to another.

For small dbs it’s ok but for large ones it’s going to present time and disk space issues.

i guess you could also write a migration to change the shape of the dara within the same dB. Just iterate the type and replace it with a new structure.
Would need to back it up first anyway I suspect in case the power fails half way through etc

@timshannon
Copy link
Owner

timshannon commented Mar 15, 2021 via email

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
question Further information is requested
Projects
None yet
Development

No branches or pull requests

4 participants