the uniqueness exists at the database level, therefore you need to go
to the database to check.
If you can generally assume the object is unique, then you could
bypass the check, catch the unique constraint violation exception and
ask the user to submit their request again.