开发者

Django and SphinxQL - how to disable transactions?

开发者 https://www.devze.com 2023-03-22 05:11 出处:网络
I have to use a SphinxQL in Django, but SphinxQL seems doesn\'t suppor开发者_高级运维t transaction. How to disable transactions for SphinxQL connection? Is it possible? I replaced Django MySQL backend

I have to use a SphinxQL in Django, but SphinxQL seems doesn't suppor开发者_高级运维t transaction. How to disable transactions for SphinxQL connection? Is it possible? I replaced Django MySQL backend with MySQLdb and it works, but I prefer using native Django components.


You could manage that via

set autocommit=0
insert
...
commit
set autocommit=1
0

精彩评论

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