[sqlalchemy] SQLAlchemy redis mysql, max_user_connection

2014-11-07 Thread Enrico Bottani
Hello everybody, I'm developing a web service and I'm using SQLAlchemy as an ORM backed by MySql, I'm using flask to handle web requests, and redis-rq as queue system. Most of my service is about reading data from db so performance is fairly good. Now I'm adding a feature where I would like

[sqlalchemy] BaseClass.query.filter only base class

2014-01-21 Thread Enrico Bottani
Hello everybody, I have a question about a query I'm trying to obtain. I have three classes: Unit -- QuestionUnit -- VideoQuestionUnit This is working fine with SQLAlchemy, what I'm struggling now is trying to get only the QuestionUnits, but not the VideoQuestionUnit. I would like to

Re: [sqlalchemy] Multiple inheritance issue

2014-01-10 Thread Enrico Bottani
, January 9, 2014 8:15:14 PM UTC+1, Michael Bayer wrote: On Jan 9, 2014, at 11:32 AM, Enrico Bottani bei...@mac.com javascript: wrote: Hello guys, I'm building a web service to provide data to our SDK and I'm facing a wired problem. I have created 4 different models for my needs, a base

[sqlalchemy] Multiple inheritance issue

2014-01-09 Thread Enrico Bottani
Hello guys, I'm building a web service to provide data to our SDK and I'm facing a wired problem. I have created 4 different models for my needs, a base class that is called *Unit*, two derivatives from the base class *VideoUnit*, *QuestionUnit*, and the last class is a derivative of both