export couchbase data to mongodb

85 views
Skip to first unread message

George Xie

unread,
Apr 16, 2014, 2:14:54 PM4/16/14
to mongod...@googlegroups.com
Hi,
We have a running couchbase cluster. We would like to export all data in the couchbase to a Mongodb database. What's the fastest way?

thanks
George

Asya Kamsky

unread,
Apr 21, 2014, 11:28:37 AM4/21/14
to mongodb-user
This is a tricky question - it's not a matter of fastest export - the question is do you need to restructure the data during the export/import?

If you didn't, then you could use some sort of a tool to dump out JSON documents from Couchbase and load them into MongoDB using 'mongoimport' - unfortunately I don't see any evidence that there is a tool to dump out json from Couchbase.

Since you might want to re-consider your schema anyway (since you're basically moving from key-value structure to document structure where you can index various secondary fields directly) it might make sense to write a light weight script which pulls data from one, applies whatever transformations you need to make and inserts them into the other.

Asya



--
You received this message because you are subscribed to the Google Groups "mongodb-user"
group.
 
For other MongoDB technical support options, see: http://www.mongodb.org/about/support/.
---
You received this message because you are subscribed to the Google Groups "mongodb-user" group.
To unsubscribe from this group and stop receiving emails from it, send an email to mongodb-user...@googlegroups.com.
To post to this group, send email to mongod...@googlegroups.com.
Visit this group at http://groups.google.com/group/mongodb-user.
To view this discussion on the web visit https://groups.google.com/d/msgid/mongodb-user/3cb1ff71-d8fb-4dbc-8c94-267ce69801a9%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply all
Reply to author
Forward
0 new messages