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
Script to migrate data between engine types. #2
Comments
I'm currently toying with the different backends so I've tried to implement this at https://github.com/gryphius/pyzor/blob/feature_migrationscript/extra/pyzor-migrate.py the script simply iterates over the source records and writes them the the destination backend which may not be the fastest possible way but gets the job done in a few lines of code
is this what the OP had in mind? |
Haha, yes it's exactly what I had in mind. And this was the reason why I added the ability to iterate over engines in 71e13f2.
We don't really care about speed here, as it is only a simple utility script. But let's change to using
As this is more optimized for MySQL engine. Then submit it as a pull request. Thanks! |
thanks for your feedback.. I tried to change to iteritems() according to your example , but this still causes the iterator to abort after the first exception. I guess if we want to do it this way, we'd have to do some exception handling in the iterators directly? |
Good point: e12a2ba |
#2. Merge pyzor db backend migration script.
Looks good, thank you @gryphius! I won't add any tests for this at the moment, since it is only a utility script. |
It would be useful to have a script that would allow migrating data between various engine types. (for e.g. migrating the MySQL data to redis)
This doesn't necessarily have to be deployed.
The text was updated successfully, but these errors were encountered: