[storm] Questions about DeferredStores on twisted-storm branch

James Henstridge james at jamesh.id.au
Tue May 11 13:56:15 BST 2010


On Tue, Apr 27, 2010 at 6:03 AM, Oscar Campos
<oscar.campos at open-phoenix.com> wrote:
> Ty very much for the quick reply.
>
> I see.
>
> Btw, is DeferredStore meant to be threadsafe?

The DeferredStore does all its database access in a thread, so calls
from multiple threads will be serialised.  With that in mind though,
it doesn't mean that using a single store for unrelated concurrent
work is a good idea.  Things will be serialised on the connection, so
if you want parallelism you really need multiple connections (and
hence multiple DeferredStores).

James.



More information about the storm mailing list