Hi,

I am keeping a table mapping from Long to a persistent object.

However, I would like to add the persistent object iff this object has not
been already added to the table.

I thought about a solution:

-Keeping a second table with Key == my object unique id.
-Before adding the object to my primary table, I check that this unique Id
is not in the secondary table.

However,  this solution is very time consuming : it decreases the time
whole writing operation by 30%

What is, please, the right solution for that ?

Best regards

Benjamin

Reply via email to