Async issue with pool size option in Pipeline Execute Snap
In my pipeline, I use Pipeline Execute snap to run some sub-pipeline.
I like using the pool size option in this Snap so that it can create multiple pipelines running at concurrently.
However, like any other concurrent thing, sometimes there is a small chance that 2 or more concurrent threads write the same data into the same place(e.g. database) at the same time, although there’s a check in my pipeline for the data existance in DB before doing insert. (If no data, then insert, if there is data, then update)
Is there any locking or thread safe mechanisams (like Java lock) in Snaplogic that can prevent such threading issue?
Thanks
Yes if the location is made sure to exist before this is written.
I am pretty sure you wont have to insert 100s of locations every load. It is a one time thing.
Glad you figured it!!