PoolDb
Use this class to create a pool of processes that can use the db (in parallel).
Class that extends multiprocessing.pool to allow to use the db in the sub processes. It clears the db connection before and after the pool.
:param Pool: description :type Pool: type
Initialize self. See help(type(self)) for accurate signature.
AnyAnytuple - ()AnyAnyEquivalent of func(*args, **kwds).
Pool must be running.
Anydict - {}Asynchronous version of apply() method.
Anydict - {}AnyAnySetEquivalent of map() -- can be MUCH slower than Pool.map().
AnyAnyint - 1Like imap() method but ordering of results is arbitrary.
AnyAnyint - 1Apply func to each element in iterable, collecting the results
in a list that is returned.
AnyAnyAnyAsynchronous version of map() method.
AnyAnyAnyAnyAnyLike map() method but the elements of the iterable are expected to
be iterables as well and will be unpacked as arguments. Hence
func and (a, b) becomes func(a, b).
AnyAnyAnyAsynchronous version of starmap() method.
AnyAnyAnyAnyAnyAnyAny