Queue pool > 1 creates duplicate record in database
Hi all, I have issue while using queue that I set queue pool > 1, I have the queue data from the list of 10 items of vehicleOwner, 4 of them are the same vehicleOwnerId (not unique in database). When the queue starts the microflows, if the vehicleOwnerId does not exists in database, it will create vehicleOwnerId. If the queue pool I set it to 1, no issue, but if I set it > 1, it will create the same VehicleOwner in the database. Do you have any solution to avoid multi threads like this?
Could you move the retrieve / create logic for the VehicleOwner outside the queue so this is done before you add the other data to the queue for processing?