Re: [pylons-discuss] Re: using pyramid without an ORM ?

2022-08-15 Thread Tom Willis
sqlalchemy core is a better option than going straight to the driver imo. And you can call postgresql functions from the session, however if you are using pyramid transaction and zope.sqlalchemy you will want to get in the habit of marking the transactions as changes were made for the functions tha

Re: [pylons-discuss] Re: using pyramid without an ORM ?

2022-08-15 Thread Jonathan Vanasco
I second what Michael said. The sqlalchemy starter template is the right way to go. The major thing this template does, is provide you with the glue between a SQLAlchemy "Session" and the pyramid request. See : https://github.com/Pylons/pyramid-cookiecutter-starter/blob/latest/%7B%7Bcookiecu

Re: [pylons-discuss] using pyramid without an ORM ?

2022-08-15 Thread Arndt Droullier
Hi, I use Postgres and Pyramid without ORM. It's quite straight forward and I don't see any reason against this approach. 'Connection Pooling' might be a problem because Postgres is quite slow when it comes to setting up new connections. If necessary you could handle it outside of Pyramid/Python by