Use UPSERT when storing user mentions
Using UPSERT saves us a query, avoids cases where we get RecordNotUnique, and removes the use of SAVEPOINT which can cause PG performance issues.
Showing
Please register or sign in to comment
Using UPSERT saves us a query, avoids cases where we get RecordNotUnique, and removes the use of SAVEPOINT which can cause PG performance issues.