You should not do it for UPDATE
and DELETE
, as if there is impact on performance, it is not a positive one.
For INSERT
there might be situations where your INSERT
will raise an exception (UNIQUE CONSTRAINT
violation etc), in which case you might want to prevent it with the IF EXISTS
and handle it more gracefully.