张骏 wrote: > > Should we use the code > """ > def close( self ): > if setting.USING_THREAD_POOL: > return > else: > self.connection.close() > """ > instead of the oranginal "DatabaseWrap.close" function for high performence?
If I understood you correctly, you proposes to introduce new USING_THREAD_POOL setting. If it is set, we don't close connection hoping that it is going to be reused, if the thread itself was reused for other request. It leaves the connection open until thread dies and is garbage-collected, or closed by database implicitly. It sounds possible and it is very easy to implement. Does anybody else have any thoughts for or against this proposal? Thanks, Eugene --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Django developers" group. To post to this group, send email to django-developers@googlegroups.com To unsubscribe from this group, send email to [EMAIL PROTECTED] For more options, visit this group at http://groups.google.com/group/django-developers -~----------~----~----~----~------~----~------~--~---