To import data into a database, click with the right mouse button on the database name and select the option "Import documents" in the context menu. It is possible to import individual documents or entire collections into the database. This can be done via drag & drop using files or by direct text input, as shown in the figure shown below. In both cases the formatting of the data is to be observed, otherwise the import will fail.
...
Based the import of the data on the database level, the name of the destination collection must be specified. The import mode determines whether to add documents to existing data or whether the collection should be emptied prior to importing. The "Drop duplicate keys" option determines the behavior when importing documents whose id field is equal to the id field of already existing documents. If this option is enabled, those documents are ignored and the import is processedwill be continued. Otherwise the import operation aborts. The file can be imported either via drop drag and drop in the appropriate field or by using the "Select Files" button to select the file from the file system. Click Click on the button "Import" starts to start the import.
Text-Import
For the import of documents via text input choose the option "Import documents from textbox" as source. The data you input in into the text box must be valid JSON data, which are located within an array. The remaining options are analogous to the File Import.
...
Hinweis |
---|
The import process can may take some time. It is therefore therefor advisable to access mongoimport for larger amounts of data. |