Uploaded image for project: 'Java Driver'
  1. Java Driver
  2. JAVA-2120

InsertMany should not stop on error

    XMLWordPrintableJSON

Details

    • Icon: Task Task
    • Resolution: Done
    • Icon: Major - P3 Major - P3
    • None
    • 3.2.2
    • Async
    • None

    Description

      Following scenario:
      Writing thousands of entries to my MongoDb with insertMany.
      If there are Problems (e.g. duplicate keys) the operation stops and I get one error in my callback.

      would it be better to track that error and proceed inserting all other entries?
      To show all errors the callback could give a list of throwables, instead of a single throwable.

      Attachments

        Activity

          People

            Unassigned Unassigned
            ChampS Ben [X]
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: