How can you make sure that one user insert is not influenced by another user?
Like transactions...
Do you use a batch job in combination with IF NOT EXISTS?
BEGIN UNLOGGED BATCH
INSERT INTO atable ("user1") value (10)
INSERT INTO atable ("user2") value (-10)
APPLY BATCH