Start a separate thread in init() and just do queries from a timer in that thread?
Yes, correct.
Also, since DbManager uses a connection pool, will this prevent other connections in the pool from going stale as well?
Yes, I think so.
Seems to be working so far... I'm sure I'll be back here if ...
Search found 18 matches
- 24 Jun 2009, 17:55
- Forum: Server Side Extension Development
- Topic: DatabaseManager and connection pooling
- Replies: 17
- Views: 22965
- 23 Jun 2009, 16:37
- Forum: Server Side Extension Development
- Topic: DatabaseManager and connection pooling
- Replies: 17
- Views: 22965
But it seems that if no queries are done for about an hour or so, the next query will take at least a few minutes, which is totally unacceptable
Ok I see. In this case it is possible that the connection between SFS and the DB becomes stale.
In order to avoid this you can simply keep it alive from ...
Ok I see. In this case it is possible that the connection between SFS and the DB becomes stale.
In order to avoid this you can simply keep it alive from ...
- 23 Jun 2009, 15:19
- Forum: Server Side Extension Development
- Topic: DatabaseManager and connection pooling
- Replies: 17
- Views: 22965
- 23 Jun 2009, 13:42
- Forum: Server Side Extension Development
- Topic: DatabaseManager and connection pooling
- Replies: 17
- Views: 22965
- 23 Jun 2009, 04:12
- Forum: Server Side Extension Development
- Topic: DatabaseManager and connection pooling
- Replies: 17
- Views: 22965
- 24 Apr 2009, 23:58
- Forum: Server Side Extension Development
- Topic: DatabaseManager and connection pooling
- Replies: 17
- Views: 22965
- 23 Apr 2009, 22:59
- Forum: Server Side Extension Development
- Topic: DatabaseManager and connection pooling
- Replies: 17
- Views: 22965
- 23 Apr 2009, 16:30
- Forum: Server Side Extension Development
- Topic: DatabaseManager and connection pooling
- Replies: 17
- Views: 22965
- 23 Apr 2009, 14:45
- Forum: Server Side Extension Development
- Topic: DatabaseManager and connection pooling
- Replies: 17
- Views: 22965
- 21 Apr 2009, 20:36
- Forum: Server Side Extension Development
- Topic: DatabaseManager and connection pooling
- Replies: 17
- Views: 22965
- 21 Apr 2009, 16:46
- Forum: Server Side Extension Development
- Topic: DatabaseManager and connection pooling
- Replies: 17
- Views: 22965
DatabaseManager and connection pooling
Hi,
We have a zone-level extension and while it has been working fine, we have been seeing some database-related issues in the last few days.
Earlier today, our extension could not execute any queries to the database, with the following error in the SFS logs:
DbManager could not retrive a ...
We have a zone-level extension and while it has been working fine, we have been seeing some database-related issues in the last few days.
Earlier today, our extension could not execute any queries to the database, with the following error in the SFS logs:
DbManager could not retrive a ...
- 18 Mar 2009, 23:27
- Forum: Server Side Extension Development
- Topic: Python documentation is not up to date :)
- Replies: 18
- Views: 25811
- 18 Mar 2009, 22:11
- Forum: Server Side Extension Development
- Topic: Python documentation is not up to date :)
- Replies: 18
- Views: 25811
- 18 Mar 2009, 21:56
- Forum: Server Side Extension Development
- Topic: Python documentation is not up to date :)
- Replies: 18
- Views: 25811
- 17 Mar 2009, 23:30
- Forum: Server Side Extension Development
- Topic: Python documentation is not up to date :)
- Replies: 18
- Views: 25811