Skip to content

Exception in bulk insert  #1907

Open
Open
@iniyanp

Description

@iniyanp

oids = mongokls.objects.insert(mongo_objs_list,load_bulk=False)

Let's say I have created compound index in my db. so when I try to insert objects let say
object1
object2
object3

and both object2,object3 already present in db. In that case, object1 gets inserted successfully. but exception has been thrown. Because of that I don't know which object would be inserted.

Is there a way to know which object is inserted, when there is exception in other docs.?

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions