阅读背景:

如何在Web请求期间限制数据库查询时间?

来源:互联网 

We've got a pretty typical django app running on postgresql 9.0. We've recently discovered some db queries that have run for over 4 hours, due to inefficient searches in the admin interface. While we plan to fix these queries, as a safeguard we'd like to artificially constrain database query time to 15 seconds--but only in the context of a web request; batch jobs and celery tasks should not be bounded by this constraint.We've got a pretty typical django app running o




你的当前访问异常,请进行认证后继续阅读剩余内容。

分享到: