After having played for a long time with Django, I'm trying a bit of Flask with SQLAlchemy, and I must say I quite like it. However there is something that I don't get:
I have a small Flask / SQLAlchemy app that uses PostgreSQL.
In my __init__.py file I have:
from flask import Flask
from flask.ext.sqlalchemy import SQLAlchemy
app = Flask(__name__)
app.config.from_object('settings')
db = SQLAlchemy(app)
I wanted to know:
- Is there automatic connection pooling ? Or does every call to Model.query... create a new connection to the database?
 - If not, how can I configure it?
 - If yes, what are the defaults, how can I modify the values?
 
Thank you very much for you help !