Problems when SQL server gone away
Asked by
aaroncio
Hi!
I am doing many simple queries to a server, the problem is when i lost the connection to the server, the query remains blocked and it keep in this way forever, is there a way to stablish a max time to execute and get response of the query?.
I tried doing threads but the result is a many threads blocked
for user_id in ids:
query = PySQLPool.
q = query.query('select id from Users where id = ' + str(user_id))
Thanks!
PD Sorry for my bad english
Question information
- Language:
- English Edit question
- Status:
- Solved
- For:
- PySQLPool Edit question
- Assignee:
- Nikoleta Verbeck Edit question
- Solved by:
- aaroncio
- Solved:
- Last query:
- Last reply:
To post a message you must log in.