|
Re: Maximum pool size considered harmful: msg#00080web.zope.zodb
The creation of a session to an Oracle database takes 5 seconds via ODBC. This is also true for the ADO.Net world when the requestes are routed towards the ODBC layer. So its a good idea to be able to "close" a session, but not really. When a session is created, several objects are most likely instantiated at several places in the code. We have access to some of this code, but not to everything. The thing that is most likely to continue to work, is to let a thread, as a precaution, continue to work on his objects himself. So depending on the database, sometimes we need to perform a true close, sometimes not etc. So it would be nice to have cache of database connections, but the concrete behavior should be adaptable during runtime. > Doing so simplifies application code avoids a > whole class of bugs. Connections *should* be > able to be garbage collected if application > code stops using them. > > Applications that don't care about reusing > connections needn't bother closing them. > OTOH, applications that do care, like Zope, > will continue to use close. Exactly. And that is "cache management" for me. Martin _______________________________________________ For more information about ZODB, see the ZODB Wiki: http://www.zope.org/Wikis/ZODB/ ZODB-Dev mailing list - ZODB-Dev@xxxxxxxx http://mail.zope.org/mailman/listinfo/zodb-dev |
|
| <Prev in Thread] | Current Thread | [Next in Thread> |
|---|---|---|
| Previous by Date: | Re: Maximum pool size considered harmful: 00080, Jim Fulton |
|---|---|
| Next by Date: | major news released with much more to follow: 00080, Evan Higgins |
| Previous by Thread: | Re: Maximum pool size considered harmfuli: 00080, Jim Fulton |
| Next by Thread: | Re: Maximum pool size considered harmful: 00080, Chris Withers |
| Indexes: | [Date] [Thread] [Top] [All Lists] |
| News | FAQ | advertise |