Closed doulikecookiedough closed 1 month ago
This has been completed via https://github.com/DataONEorg/hashstore/pull/103.
Documented how to switch HashStore from threading
synchronization to multiprocessing
. There may be a more elegant way to do this, but I feel this is good enough at this time.
In Python, there are two paths to achieve concurrency/parallelism: the
threading
module and themultiprocessing
module. Currently, only athreading
lock is used when synchronizing the storing and deleting of objects, which is completely bypassed when usingmultiprocessing
.To Do:
HashStore
).Example Code: