Set database connection timeout in Python

前端 未结 4 1297
情歌与酒
情歌与酒 2020-12-10 04:48

I\'m creating a RESTful API which needs to access the database. I\'m using Restish, Oracle, and SQLAlchemy. However, I\'ll try to frame my question as generically as possi

4条回答
  •  南方客
    南方客 (楼主)
    2020-12-10 05:29

    You could look at setting up PROFILEs in Oracle to terminate the queries after a certain number of logical_reads_per_call and/or cpu_per_call

提交回复
热议问题