Check whether an object is in DB before adding, to avoid duplicates

I want to check whether an object is in DB before adding, to avoid duplicates.

Is the fastest way to try loading an object from the DB, see if the resulting list is empty, then add it? Or is there a faster way than the below?

Hi, @Andreas_Marinopoulos

I can offer you the following solution to avoid duplication. Find your object by objectId.

Regards,
Marina

Thanks!