switz
switz

Reputation: 25188

Migrate mongodb to redis

I have a small mongodb database that I want to migrate to a redis store. I do not want to use them in conjunction with the other, unless the overhead is so small it's insignificant.

How can I go about doing this? I found very little information on this subject.

Upvotes: 0

Views: 2762

Answers (1)

Sushant Gupta
Sushant Gupta

Reputation: 9448

Since your database is just 10MB I would recommend look at language drivers for mongo and redis. Mongo records are simple JSON and redis has support for hashmaps, sets and lists. I guess you really won't be having any problem migrating for 10MB database. You really don't need any serious solution to migrate. A simple iteration over mongo collection would do your work in maybe a fraction of a second.

Upvotes: 1

Related Questions