Re: Using the Django ORM in a long-running worker process

2016-08-19 Thread Daniel Tao
Thank you for the thorough response, which has proven very helpful, mainly by reinforcing what I was growing to suspect: we've updated the code in our worker processes to close the DB connection after every message, and sure enough we've seen a huge improvement in the form of significantly fewer

Re: Using the Django ORM in a long-running worker process

2016-08-16 Thread Daniel Tao
6 AM UTC-5, Daniel Tao wrote: > > Hi folks, > > My team has built a service comprising 3 main parts, a web application and > 2 long-running worker processes that process events from a message > exchange. All of these components interact with the same database and use > the same

Using the Django ORM in a long-running worker process

2016-08-15 Thread Daniel Tao
Hi folks, My team has built a service comprising 3 main parts, a web application and 2 long-running worker processes that process events from a message exchange. All of these components interact with the same database and use the same underlying Django "app" for ORM models (i.e. the 2 worker p