data-import
data-import copied to clipboard
sequel based dsl to migrate data from a legacy database to a new home.
this is just an idea, I'm not sure if I like it though. I find myself writing the following code a lot: ``` ruby import 'something' do dependencies 'other thing'...
It would be nice to have a simple construct to group import blocks like: ``` ruby group 'employees' do dependencies 'manager', 'software developers', 'testers' end ``` In my use case...
while running a migration we have access to the "old new" id-mapping table. ``` ruby mapping 'Country' do |context, value| {:country_id => context.definition('Countries').new_id_of(value)} end ``` It would be cool if...
Currently each import block runs in a transaction. This may cause some issues with large datasets. My research showed that there is (practically) no hard limit of statements per transaction....
I think we should bundle up the rake task to run the import.