badger icon indicating copy to clipboard operation
badger copied to clipboard

[FEATURE]: Data comparison between multiple badger instance

Open tangxusc opened this issue 3 years ago • 4 comments

Have you tried Badger before this proposal? and did not find anything similar?

None

What you wanted to do.

background

When using Badger to build a distributed storage system, data in multiple unowned replication shards cannot be quickly compared

expect

Badger supports data comparison by key prefix for multiple instances

What you actually did.

No response

Why wasn't it great, with examples.

No response

Additional information.

No response

tangxusc avatar Jul 18 '23 11:07 tangxusc

You can always iterate over two badger instances and figure out the differences between the two. Will that not work for you?

mangalaman93 avatar Jul 18 '23 22:07 mangalaman93

Is there a better way to use iterative methods to transmit key and value data across multiple distributed nodes that consume significant performance?

tangxusc avatar Jul 19 '23 08:07 tangxusc

you could stream a snapshot and compare that, or compute a checksum (or another hash) and compare that.

mangalaman93 avatar Jul 19 '23 11:07 mangalaman93

I will try using Merkel tree to calculate abstracts and quickly compare them at different nodes. Thank you

tangxusc avatar Jul 20 '23 08:07 tangxusc