Skip to content

Duplicate insert #1

@HarrisonJackson

Description

@HarrisonJackson

I am getting duplicate inserts when I have a data set like this:

{ "guid":"a"},
{ "guid":"c"},

Followed by an import on data set like this:

{"guid":"a"},
{"guid":"b"},
{"guid":"c"},

After the first data set is inserted (just a and c) we try to import a new json set with a,b,c:

try to fetch objects a,b,c from managedObjectContext
return objects a,c

compare a==a
update a

compare b==c
insert b

compare c==b
insert c

object c is then duplicated

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions