Reputation: 71
How to do an atomic upsert in persistent?
Haven't managed to find a way to do an upsert, insert or update, operation using the persistent API. Something like update after insertBy seems to be the closest thing. But if I haven't understood something wrong, this won't be atomic and is thus prone to race conditions.
Upvotes: 7
Views: 962