开发者

Django on Jython with Oracle: Too many open cursors

I am running Django on Jython with Oracle and I often get the famous

"Too man开发者_StackOverflow社区y open cursors"

error.

It never happens with the same code with Python and the cx_Oracle driver.

Is there something wrong with the zxJDBC driver or perhaps there is a way to ask Django to close the cursors when I am done with the querysets?

Thanks,

Stephane


Sounds like a closing problem to me.

I think the with keyword is supposed to help with closing resources in Python. I don't know if connection handling is something that Django does for you or if you still have to manage them in your code, but perhaps that would be one way to address it.

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜