Hi All,

I'm having a problem with my pool in that it's not enough connections
and I need to modify them.  The default settings are:

max_overflow=10
pool_size=5
timeout=30

I want to change these values, and when looking through the
documentation I found this: http://www.sqlalchemy.org/docs/04/pooling.html

This is for 0.4 however, and I'm using 0.5.  Lastly, in the example
they use on this page it creates a connection to create a QueuePool

Example from website:

import sqlalchemy.pool as pool
import psycopg2

def getconn():
    c = psycopg2.connect(username='ed', host='127.0.0.1',
dbname='test')
    # execute an initialization function on the connection before
returning
    c.cursor.execute("setup_encodings()")
    return c

p = pool.QueuePool(getconn, max_overflow=10, pool_size=5,
use_threadlocal=True)

What exactly is getconn?  Do I need it?  All I want to do is create my
own pool settings and send them through my engine_from_config
commands.

Any ideas?

Thanks for your help!

--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"sqlalchemy" group.
To post to this group, send email to sqlalchemy@googlegroups.com
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/sqlalchemy?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to