开发者

Is django orm & templates thread safe?

开发者 https://www.devze.com 2022-12-27 04:47 出处:网络
I\'m using django orm and templates to create a backgrou开发者_如何学运维nd service that is ran as management command.

I'm using django orm and templates to create a backgrou开发者_如何学运维nd service that is ran as management command.

Do you know if django is thread safe?

I'd like to use threads to speed up processing. The processing is blocked by I/O not CPU so I don't care about performance hit caused by GIL.


If you need run jobs in background, you should use celery

0

精彩评论

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