tornadio2 cached results

23 views
Skip to first unread message

dobrysmak

unread,
Mar 15, 2012, 6:37:39 AM3/15/12
to django...@googlegroups.com
Hi, 
i'm running tornadio2 server with socket.io and i run into a problem, when i'm getting some data from db via django's orm the socket server doesn't want to get new fresh data from db, every time the event occurs. He's just keeping the same data from begging.
Does anyone had same problem?

Bye.  

dobrysmak

unread,
Mar 15, 2012, 10:12:11 AM3/15/12
to django...@googlegroups.com
Figured out that tornadio2 or tornado is somehow keepeing django's orm data in memory pulling that same data on each db request.
When i'm reffering to mysql database via  python MySQLdb, making connection each request. i'm getting updated results, that's ok. 

How to force tornadio2/tornado to get the updated data from db via django?


Tom Evans

unread,
Mar 15, 2012, 10:59:37 AM3/15/12
to django...@googlegroups.com

Are you mistaking the difference between read committed and repeatable
read DB isolation levels? With repeatable read, all reads within a
transaction will get the same results, until the transaction is
committed.

Cheers

Tom

Reply all
Reply to author
Forward
0 new messages