Uploaded image for project: 'MongoDB Database Tools'
  1. MongoDB Database Tools
  2. TOOLS-60

Mongoimport silenty ignores rows with update modifers

    XMLWordPrintableJSON

Details

    Description

      Running "monigoimport --upsert" seems to ignore rows with modifiers in. Perhaps these aren't supported, but it doesn't acknowledge any type of error. In any case, this should definitely be supported!

      As an example, the following data file:

      { _id: 1, value: 123 }

      { _id: 2, $set:

      { value: 123 }

      }

      MongoImport will happily tell me it has "imported 2 objects", but only the one exists. The same happens if the row with _id 2 already exists. It fails silently.

      I'm currently writing a ruby script to do this for me... But clearly this should be supported by the provided tools.

      Apologies if this has since been fixed but I can't find any relevant tickets in the bug tracker.

      Attachments

        Activity

          People

            Unassigned Unassigned
            ian@mongodb.com Ian Whalen (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: