How to find and delete duplicates in a list of database things in backend workflow?

So I have found a solution with the help of @chris.williamson1996 and the following post:

For anybody who comes across this I will try to elaborate a little bit more how I did it:


Be aware that this only removes one duplicate. If you have more than one duplicate of the same thing make sure to catch it also.

This approach does not involve any issues with race-conditions - however being on a wu plan this could come at a higher price than other methods.

Another solution could be to make use of any external service APIs e.g. any model from openAI could do the job and depending on the amount of things this could be cheaper.

Thanks again for everyone involved.

Cheers

2 Likes