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 selects the entry "import recordsselect "Import documents" in the context menu. It is possible to import individual You can import single documents or entire collections in into the database here. This can be done via drag by dragging & drop dropping using file 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 records documents from file" in the import -popup dialogue to select this optionkind 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 those documents will be are ignored and the import is be processed. Otherwise 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  Click on   the  button  "Import" starts the -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 in 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 can may take some time. It is therefore advisable recommended to access use mongoimport for larger amounts of data.