-
Notifications
You must be signed in to change notification settings - Fork 545
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
Can I quickly import rdb data? #412
Comments
Workaround would be to load the rdb into redis, scan the DB, and issue set operations on Garnet. |
Can the follow-up plan do this function? |
This a good idea, to have an rdb-importer for Garnet. Unfortunately, it will require constant maintenance to keep up with any updates to the rdb format. If we had a robust C# rdb parser then we can use the internal Garnet API to convert the data into upsert commands. https://github.com/SamuelFisher/CLRdb https://rdb.fnordig.de/file_format.html |
Very good |
I can write a robust and small RDB (de)serialization .NET library as 3rd-party library in upcoming weeks and publish it on NuGet. Would this work for Garnet? |
I think that would be great idea to start with something as a 3rd-party library and work similarly to what the other projects are doing (i.e. have an rdb to RESP protocol parser or json file) but of course being more up to date. |
Reverse engineering file-formats is right up my alley. This is already much more easier already because I have some source to look at, which normally isn't the case for me 😄 (I can reverse protocols/file-formats out of a black-box if need be) I will of course only look at Redis souce pre license change (I have a fork frozen at last commit before the license change |
By the looks of it, I may have a time slot to tackle this starting UPDATE: gotta postpone a bit. Up for grabs in the meantime. |
Hey @PaulusParssinen - any interest in resuming this work? In general, we would LOVE to see you contribute again to Garnet :). |
Ideally, Garnet would have a native --restore-rdb switch that would read the RDB file and use GarnetApi to populate the database on startup without having to use a library to translate. JSON etc as intermediate format is expensive and unnecessary. |
Hey! There is interest but severe lack of time unfortunately.. It turns out one can't just ignore your studies indefinitely to focus on open-source contributions and other procrastinating😅 I have thought about picking this up but I'm glad to see @s3w3nofficial has stepped up in my stead, thank you! 🫡 If @s3w3nofficial gets the basic version in, we can always improve and build on top of it and I'll happily help where and when I can. Quick comment at the current PR. Writing efficient RDB (de)serialization logic for these commands is no trivial task and you really have to know your |
Feature request type
sample request
Is your feature request related to a problem? Please describe
After saving the existing redis as rdb, I want to import it into garnet
Describe the solution you'd like
You can import them by running commands
Describe alternatives you've considered
No response
Additional context
No response
The text was updated successfully, but these errors were encountered: