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

Add reference to original object when inserting duplicate key

    XMLWordPrintableJSON

Details

    • Icon: New Feature New Feature
    • Resolution: Done
    • Icon: Minor - P4 Minor - P4
    • None
    • 2.7.2
    • None
    • None
    • RHEL 5, Java 1.6, Maven 2

    Description

      When inserting a duplicate document, it would be cool if the original ID could be returned with the DuplicateKey exception. Rather than querying for my document before inserting it, I'm simply inserting it and catching the DuplicateKey exception. I'd like to be able to add the ID to my "duplicate" object so I can continue processing without having to query again for it.

      Attachments

        Activity

          People

            jeff.yemin@mongodb.com Jeffrey Yemin
            themanatuf themanatuf
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: