top button
Flag Notify
    Connect to us
      Facebook Login
      Site Registration Why to Join

Facebook Login
Site Registration

mongodb: Tool for import/export of all DBs, collections, and indexes but NOT the data.

+3 votes

I need a tool for rapidly recreating the proper "schema" (such as it is) of MongoDB instances between environments that pre-creates the right DB names, collections, sets collection caps, and creates the indexes for each collection. I do NOT want to copy all of the data between the instances, though. Each env I manage has different data but the DB/collection/caps/indexes are all the same. Is there an easy way to do this, preferably a tool that exports a JSON doc of all the names, caps and indexes that can then be re-ported into a new instance?

Thanks in advance

posted Jun 29, 2015 by anonymous

Share this question
Facebook Share Button Twitter Share Button Google+ Share Button LinkedIn Share Button Multiple Social Share Button

1 Answer

0 votes

Why don't you try an UI which will help you better while working on mongodb... it makes easy all your operations like import export with data or without,working on collections n dbs.

answer Jan 27, 2016 by Shivam Kumar Pandey
Similar Questions
+2 votes

There is some question regarding export import please help me.
1. how to export and import mongo db 32 bit to 64 bit?
2. after importing is anything goes wrong with files,images?
3. according 64 structure it will accept 32 bit data or not?

0 votes

I am trying to install MongoDB on Windows 7 Enterprise (32bit) VM running in VirtualBox on Windows7 Ultimate 64bit.
The MongoD.exe start up reports a missing Microsoft Hotfix, KB2731284. I downloaded and installed the hot fix on the VM. The hotfix was not required on the Host PC.

Mongod.exe still reported it was not installed. Ran the hotfix a second time and it reported that it was already installed.

I tried uninstalling an reinstalling mongoDB, no luck. Any clues?

+1 vote

I have a project, which has 1000 images. From each image, I get 1 million documents that I currently store in a mongoDB collection.

I have 2 alternatives,
1. Create a separate collection for each image, over multiple projects, say 10 projects, and each image(collection) would have 1 million documents that will be indexed. OR
2. Have a single collection and have 1000x1,000,000 documents in one collection, which again will be indexed.

My research and reading suggests that it is not a very good idea to create 1000 collections (for each image) and create an index for each one of 1000, and go with adding a billion documents to a single collection, to which mongoDB caters with no major issue.
My main aim is to enhance performance for reading. There would be no updates and deletes. Only reads and writes. I can afford writes to be slow, but not reads. So am I right in choosing the 2nd alternative?

Any guidance is highly appreciated.

Contact Us
+91 9880187415
#280, 3rd floor, 5th Main
6th Sector, HSR Layout
Karnataka INDIA.