Files
2012-02-21 01:15:00 -05:00

1 line
1.2 KiB
JSON

[{"user_id": 11827, "stars": [], "topic_id": 39171, "date_created": 1307962505.487963, "message": "I tried using the Django ORM from a separate thread. Quickly, I found out that the thread finished, but the DB connection was kept alive. After a while, my DB ran out of DB connections.", "group_id": 81, "id": 1379205}, {"user_id": 11827, "stars": [], "topic_id": 39171, "date_created": 1307962605.265528, "message": "I tried seeking more info on this topic, but found mostly questions. So, what's the right way of doing this? Should I explicitly close the connection? How?", "group_id": 81, "id": 1379223}, {"user_id": 257, "stars": [], "topic_id": 39171, "date_created": 1307965743.4856939, "message": "but you probably want to maintain a connection pool", "group_id": 81, "id": 1379476}, {"user_id": 257, "stars": [], "topic_id": 39171, "date_created": 1307965713.7609, "message": "closing the connection is django.db.close_connection()", "group_id": 81, "id": 1379472}, {"user_id": 11827, "stars": [], "topic_id": 39171, "date_created": 1308033460.2355139, "message": "Thanks. I ended up going through the source code and found it. I'm really surprised Django doesn\u2019t use some sort of connection pool itself.", "group_id": 81, "id": 1388213}]