Every story and comment from the Hacker News API, in a layout borrowed from 2001.
A comment on A todo list for new ASP.NET Core projects. Parent comment
Checking first and failing can still be problematic without the right database isolation setting.
Better to try it and catch the database error (which might include another unique constraint other than primary key... depending on db design).
There are no comments on this comment yet.
Checking first and failing can still be problematic without the right database isolation setting.
Better to try it and catch the database error (which might include another unique constraint other than primary key... depending on db design).