Re: Saving Oracle Connection across requests

2009-09-15 Thread Jani Tiainen
There exists Oracle connection pool daemon and django backend to utilize it. Check http://code.google.com/p/pyorapool/ Connecting to Oracle is rather slow operation and if possible you really like connection pooling. Though even I'm using ajax based system to rather db intensive app that gets

Re: Saving Oracle Connection across requests

2009-09-14 Thread Rafael Ferreira
If you are on 11g you can try to use this: http://www.oracle.com/technology/tech/oci/pdf/oracledrcp11g.pdf otherwise you can look for something like mysqlproxy for oracle (if such thing exist). The real question here tho is why do you care so much about reusing connections? I can tell you that co

Saving Oracle Connection across requests

2009-09-14 Thread lfrodrigues
Hello, I'm not sure this is possible but I would to save a oracle connection across several requests (like I do with a normal object) I would like to: if 'object' in request.session: do stuff else: import cx_Oracle conn = cx_Oracle.connect(constring) request.session['object'] = conn do stu