Edgewall Software

Changes between Initial Version and Version 1 of Ticket #3645, comment 50


Ignore:
Timestamp:
Aug 18, 2015, 4:08:32 PM (9 years ago)
Author:
Ryan J Ollos

Legend:

Unmodified
Added
Removed
Modified
  • Ticket #3645, comment 50

    initial v1  
    66Thread safe: I don't know[[br]]
    77(how to know this ??? :S)
    8 
    9 Replying to [comment:8 cboos]:
    10 > Using a pool of database connections is a common way to limit the amount of resources used (never use more than the max specified number of concurrent connections) and at the same time to be more reactive (most of the time, there's already an open connection waiting to be used).
    11 >
    12 > That being said, you can experiment with having a connection per query, and if this proves more convenient in the case of MySQL, we could make that configurable.
    13 >
    14 > {{{
    15 > Index: trac/db/mysql_backend.py
    16 > ===================================================================
    17 > --- trac/db/mysql_backend.py  (revision 3968)
    18 > +++ trac/db/mysql_backend.py  (working copy)
    19 > @@ -99,7 +99,7 @@
    20 >  class MySQLConnection(ConnectionWrapper):
    21 >      """Connection wrapper for MySQL."""
    22 
    23 > -    poolable = True
    24 > +    poolable = False
    25 
    26 >      def _mysqldb_gt_or_eq(self, v):
    27 >          """This function checks whether the version of python-mysqldb
    28 > }}}