Versionen im Vergleich

Schlüssel

  • Diese Zeile wurde hinzugefügt.
  • Diese Zeile wurde entfernt.
  • Formatierung wurde geändert.

To import data into a database, right-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 You can import single documents or entire collections into the database here. This can be done via drag by dragging & drop dropping using files or by direct text input , as shown in the figure shown below. In both cases the formatting of the data is has to be observedin a correct form, otherwise the import will fail.

File-Import

With this option the file import of the imported data is executed via comes from a JSON file. Choose "import documents from file" within in the popup window import dialogue to select this kind of import. 

Hinweis

The documents in the JSON file must have to be formatted according to the mongoexport function of MongoDB. This means that a file created by mongoexport can be imported in Mongo Management Studio.

Based Is the import of the data based on the database level, the name of the destination collection must has to be specified. The import mode determines whether to add documents to the existing data or whether the collection should be emptied cleared prior to importing. The "Drop duplicate keys" option determines the behavior when importing of imported 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 will be continued. Otherwise is continued, otherwise the import operation abortsis aborted. The file files can be imported either via drop drag and drop in by dragging and dropping it into the appropriate field or by using the "Select Files" button to and select the file from the file system. Click on the button "Import"-button to start the import.

Text-Import

For the text-based import of documents via text input choose the option "Import documents from textbox" as source. The data you input put into the text box must has to be valid JSON data, which are is located within an array. The remaining options are analogous correspond to the File Import.

Hinweis

The import process may take some time. It is therefor advisable therefore recommended to access use mongoimport for larger amounts of data.