oracle - Java Recon Job - Fastest and generic solution -


currently, running application in rds , in process of moving mongodb. now, have synch job syncs data oracle mongo , when row gets added/modified or deleted. write happening on oracle.

planning come recon job compares source , target data. trying full recon fetches data oracle , then compares mongodb find descrepencies.

i planning below approach.

note, oracle db size in terabytes.

1) first thousand rows oracle table a. ( simple jdbc results approach )

2) each entry, create map of key values. ( map)

3) corresponding data mongodb , convert data based on oracle format.

4) each entry, create map of key values.

5) compare these 2 map find if same. ( oracle map equals mongoldb map )

6) repeat same next rows ....

but, approach taking time using multi threading. not have idea on big data, open new ideas.

is there other way or technology can used here parallel processing.

note, there tables mapped straight forward b/w oracle , mongo. few tables in denormalized form in mongo.

thanks,


Comments

Popular posts from this blog

get url and add instance to a model with prefilled foreign key :django admin -

css - Make div keyboard-scrollable in jQuery Mobile? -

ruby on rails - Seeing duplicate requests handled with Unicorn -