[Zope] SQL-based LoginManager and subtransactions

2001-01-26 Thread Fred Yankowski

I haven't been following this discussion, but it sounds like there's
the potential for SQL operations performed by LoginManager to
interfere with other SQL operations such as logging uploaded files, in
the case where the database system does not support nested (sub-)
transactions.  Correct?  If so, would it help to create a separate
database access object, and therefore separate connection (I think),
just for the use of LoginManager?  Or could this cause some deadlock
between the LoginManager and other connections?  I'm quite interested
in potential problems here as I plan to use PostgreSQL with
LoginManager on my sites.

On Fri, Jan 26, 2001 at 06:23:57PM +0100, Oliver Bleutgen wrote:
 As we use Loginmanager with postgres, I have know idea how to not
 invoke Z SQL methods when upload.  Has anybody an idea if and under
 what circumstances the above snipped could do harm?

-- 
Fred Yankowski   [EMAIL PROTECTED]  tel: +1.630.879.1312
Principal Consultant www.OntoSys.com   fax: +1.630.879.1370
OntoSys, Inc 38W242 Deerpath Rd, Batavia, IL 60510, USA

___
Zope maillist  -  [EMAIL PROTECTED]
http://lists.zope.org/mailman/listinfo/zope
**   No cross posts or HTML encoding!  **
(Related lists - 
 http://lists.zope.org/mailman/listinfo/zope-announce
 http://lists.zope.org/mailman/listinfo/zope-dev )




Re: [Zope] SQL-based LoginManager and subtransactions

2001-01-26 Thread Oliver Bleutgen

 I haven't been following this discussion, but it sounds like there's
 the potential for SQL operations performed by LoginManager to
 interfere with other SQL operations such as logging uploaded files, in
 the case where the database system does not support nested (sub-)
 transactions.  Correct? 

No, but I'm really not familiar enough with the ZODB machinery and 
zope internals to tell do much more than wild guesses.
The problem seems to be that the ZODB and things like Zcatalog know
about subtransactions (you can disable them with the latter one),
but some (the most) zope db-adapters don't.
Now zope seems to use subtransactions internally and to expect the DAs 
to provide them also (commit_sub), but for now it seems to not completly
clear when and why - see the thread "subtransactions".
For file-uploads the threshold may be ~ 120kb, that is which 
bites people with loginmanager/postgres.
The workaround from I cited should at least solve the zope-error,
but I have no idea if it can hurt.
The best thing would be to properly implement the missing methods in the
DAs, I guess, unfortunately this is above my head for now.

PS: the sybase DA seems to know about commit_sub


cheers,
oliver

___
Zope maillist  -  [EMAIL PROTECTED]
http://lists.zope.org/mailman/listinfo/zope
**   No cross posts or HTML encoding!  **
(Related lists - 
 http://lists.zope.org/mailman/listinfo/zope-announce
 http://lists.zope.org/mailman/listinfo/zope-dev )