CPC G06F 16/27 (2019.01) [G06F 16/2379 (2019.01)] | 20 Claims |
1. A computer-implemented method for executing a query on a target database against a copy of a most recent source data, the method comprising:
maintaining linked databases comprising a source database and a related target database, wherein tables of the source database are continuously synchronized with respective tables in the target database;
receiving a direct query against a table in the target database, the query comprising a request for using the most recent source data, wherein the direct query does not originate in the source database of the linked databases or is not forwarded from the source database of the linked databases;
in response to the query including an amount of time to wait for the most recent source data, the target database requesting a status about a latest data regarding the table in the query;
requesting by a replication engine component to verify when the most recent source data are replicated to the target database, based on comparing timestamps of data records in the target database versus a timestamp of a commit statement for respective data in the source database for replicated tables in the query; and
based on the replicated tables in the query being available prior to an expiration of the amount of time to wait, executing the query.
|