Closed GoogleCodeExporter closed 9 years ago
Yes. I am also facing the same problem.
Original comment by surendr...@gmail.com
on 18 Jan 2010 at 7:28
The datastore does not distinguish between insert and update so this behavior,
while
unexpected, makes sense to me. If you want to know if a record exists with a
given
primary key, start a txn and attempt to fetch the record by the pk. If the
record exists
then you've got your answer. If the record does not exist you can then insert,
and since
you're using a txn, if someone else inserts a record with that pk in between
the time
you fetched and inserted, you'll get a ConcurrentModificationException, which
is
another indication that the record already exists.
Original comment by max.r...@gmail.com
on 18 Feb 2010 at 12:31
Original issue reported on code.google.com by
vinayaga...@gmail.com
on 17 Dec 2009 at 9:43