Local Failover
Posted: Thu 03 Mar 2016 19:03
I am using lacal failover with a database in disconnected mode, everything is autocommit and the datasets have the autoclose property and always fetchall.
The Database Connection sets:
On Error: Fail := false;
OnConnectionLost: RetryMode := rmReconnectExecute;
I simulate lost connction by stopping the firebird instance. I have two issues:
1. Even when I do nothing with the attached loaded datasets, after some time the reconnect event occures. Why? I assumed that in disconnected mode even updating is buffered with cachedUpdates.
2. If the connection is lost the application is completely frozen and "thaws" when the connection can be restored. Is it possible to have the UI responsive during that time?
The Database Connection sets:
On Error: Fail := false;
OnConnectionLost: RetryMode := rmReconnectExecute;
I simulate lost connction by stopping the firebird instance. I have two issues:
1. Even when I do nothing with the attached loaded datasets, after some time the reconnect event occures. Why? I assumed that in disconnected mode even updating is buffered with cachedUpdates.
2. If the connection is lost the application is completely frozen and "thaws" when the connection can be restored. Is it possible to have the UI responsive during that time?