You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
This uses `ON CONFLICT DO UPDATE` instead of checking the error
and making a second query. This is faster (fewer round trips) and
also simpler (don't need to make sure the error is actually a
conflict -- the server does that for us).
FixesBattochon#7
Right now you do this:
This ignores all errors in the
INSERT
, and also requires two round trips.It would be better to do a single query with an
ON CONFLICT (uid) DO UPDATE ...
.The text was updated successfully, but these errors were encountered: