Patent attributes
A method for maintaining linked databases including a source database and a target database, maintaining first metadata in a recovery log file of the source database, maintaining second metadata that identifies portions of data that are replicated from the source database to the target database as part of the selected partitions of the selected tables, receiving an indication that a crash of the source database has occurred, determining a first recovery metric value for recovering the source database's, determining a second recovery metric value for recovering the source database's data from the target database based on the second metadata, and determining whether to recover the source database's data from the recovery log file of the source database or from the target database based on a comparison of the determined first recovery metric value and the second recovery metric value.