Re: Questions about DeferredStores on twisted-storm branch
Yeah, that makes sense to me, so I already implemented it on this way.
In my application I have twisted web resources loaded as "controllers", each resource can have a model object (storm object) attached on it that represents a database table, each model object owns a DeferredStore (or a Store) that depends on application configuration.
I'm developing a Web Applications Framework using Twisted, Storm, Evoque and ExtJS so I think I'll ask a lot around here and twisted lists also.
I get some troubles with DeferredResults but I'm busy now implementing Authentication, and ACL, so I'll ask when I'll back to the code that gave me the problems.
Btw, do you guys know any decent ACL implementation (not based on file system like POSIX one) in Python?, I'm developing it from zero so I'm not a very big fan of reinventing the wheel.
Best Regards.
2010/5/11 James Henstridge
<james-whk3OXXaEJgXC2x5gXVKYQ@public.gmane.org>
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.
--
Oscar Campos Ruiz-Adame -
oscar.campos <at> open-phoenix.comConsultor - Consultant
Open Phoenix IT Consultoría Tecnológica - IT Consulting
_________________________________________________
Tel. +34 644569088
http://www.open-phoenix.com
<div>
<p>Yeah, that makes sense to me, so I already implemented it on this way.<br><br>In my application I have twisted web resources loaded as "controllers", each resource can have a model object (storm object) attached on it that represents a database table, each model object owns a DeferredStore (or a Store) that depends on application configuration.<br><br>I'm developing a Web Applications Framework using Twisted, Storm, Evoque and ExtJS so I think I'll ask a lot around here and twisted lists also.<br><br>I get some troubles with DeferredResults but I'm busy now implementing Authentication, and ACL, so I'll ask when I'll back to the code that gave me the problems.<br><br>Btw, do you guys know any decent ACL implementation (not based on file system like POSIX one) in Python?, I'm developing it from zero so I'm not a very big fan of reinventing the wheel.<br><br>Best Regards.<br><br></p>
<div class="gmail_quote">2010/5/11 James Henstridge <span dir="ltr"><<a href="mailto:james@...">james@...</a>></span><br><blockquote class="gmail_quote">
<div class="im">On Tue, Apr 27, 2010 at 6:03 AM, Oscar Campos<br>
<<a href="mailto:oscar.campos@...">oscar.campos <at> open-phoenix.com</a>> wrote:<br>
> Ty very much for the quick reply.<br>
><br>
> I see.<br>
><br>
> Btw, is DeferredStore meant to be threadsafe?<br><br>
</div>The DeferredStore does all its database access in a thread, so calls<br>
from multiple threads will be serialised. With that in mind though,<br>
it doesn't mean that using a single store for unrelated concurrent<br>
work is a good idea. Things will be serialised on the connection, so<br>
if you want parallelism you really need multiple connections (and<br>
hence multiple DeferredStores).<br><br>
James.<br>
</blockquote>
</div>
<br><br clear="all"><br>-- <br>Oscar Campos Ruiz-Adame -<a href="mailto:oscar.campos@...">oscar.campos <at> open-phoenix.com</a><br>Consultor - Consultant<br>Open Phoenix IT Consultoría Tecnológica - IT Consulting<br>
_________________________________________________<br>Tel. +34 644569088<br><a href="http://www.open-phoenix.com">http://www.open-phoenix.com</a><br>
</div>