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 to badger/v3 #78

Merged
merged 1 commit into from
Jul 2, 2021
Merged

Upgrade to badger/v3 #78

merged 1 commit into from
Jul 2, 2021

Conversation

kelindar
Copy link
Collaborator

@kelindar kelindar requested a review from qiaowei-g June 22, 2021 14:33
@@ -14,7 +14,7 @@ import (
"sync/atomic"
"time"

"github.com/dgraph-io/badger/v2"
"github.com/dgraph-io/badger/v3"
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Will it auto upgrade a v2 database on opening?

Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I'm not sure, haven't tried. I would also like @qiaowei-g to review the options. There's many changes in badger and apparently they are using manual memory allocation to use a bit less memory and free it better.

Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

based on the description in badger-#1555, v2 data cannot be read by v3, so we will have to handle the deployment carefully to ensure no data loss.

Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Alright, I'll mark it as 1.3 release so we don't mix things up.

@kelindar kelindar merged commit 3d0ee16 into master Jul 2, 2021
@kelindar kelindar deleted the badger3 branch July 2, 2021 11:15
@kelindar kelindar restored the badger3 branch July 2, 2021 11:15
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants