How much time it takes to recover a Firebird database after a power failure?


Short answer: When you use forced writes on your databases (the default setting) there is usually no need for recovery. You simply continue working.

Long:

Firebird is a MGA (multi-generational) database and keeps all the record versions in the database file. There are no log files like with other database systems, and there is no need to roll those logs forward to get the operational database.

If the database file is not damaged (i.e. the filesystem is clean) then your applications can start working at once. The transactions that were commited before the power failure are written to the disk. This is one more reason to keep the transactions short (see the FAQ #42 for more info).


Do you find this FAQ incorrect or incomplete? Please e-mail us what needs to be changed. To ensure quality, each change is checked by our editors (and often tested on live Firebird databases), before it enters the main FAQ database. If you desire so, the changes will be credited to your name. To learn more, visit our add content page.



All contents are copyright © 2007-2024 FirebirdFAQ.org unless otherwise stated in the text.


Links   Firebird   News   FlameRobin   Powered by FB: Home Inventory   Euchre  
Add content   About  

Categories
 Newbies
 SQL
 Installation and setup
 Backup and restore
 Performance
 Security
 Connectivity and API
 HOWTOs
 Errors and error codes
 Miscellaneous