Data query apparatus and method
AssigneeYinwang Intelligent Technologies Co., Ltd.
InventorsJiesheng Ye, Jie Li
Life of this patent
Estimating the term…
Abstract
This application provides data query apparatuses and methods. One example data query apparatus includes an intermediate agent and a data reload module. The intermediate agent obtains a first request for first data of a first vehicle in a first time period. If the first data is not obtained from a database, the intermediate agent sends a second request to the data reload module to reload original data of the first data. The data reload module obtains the original data from a data storage node, reloads second data to the database, and sends indication information indicating completion. The intermediate agent then obtains the second data from the database and feeds it back to a user.
Claims20
A data query apparatus, wherein the apparatus is configured to provide a data query service for a user, and the apparatus comprises:
- an intermediate agent configured to:
- obtain a first request, requesting to obtain first data of a first vehicle in a first time period;
- and
- in response to a failure to obtain the first data from a database, send a second request to a data reload module, wherein the second request is used to request to reload original data of the first data;
- and
- the data reload module, configured to:
- obtain the original data from a data storage node based on the second request;
- reload second data corresponding to the original data back to the database;
- and
- send indication information to the intermediate agent module, wherein the indication information indicates that data reloading is completed;
- and
- the intermediate agent is further configured to:
- obtain the second data from the database based on the indication information;
- and
- feed back the second data to the user.
A data query method, applied to a data query apparatus, wherein the data query apparatus comprises an intermediate agent and a data reload module, and the method comprises:
- obtaining, by the intermediate agent a first request requesting to obtain first data of a first vehicle in a first time period;
- in response to a failure to obtain the first data from a database, sending, by the intermediate agent, a second request to the data reload module, wherein the second request is used to request to reload original data of the first data;
- obtaining, by the data reload module, the original data from a data storage node based on the second request;
- reloading second data corresponding to the original data to the database;
- sending, by the data reload module, indication information to the intermediate agent, wherein the indication information indicates that data reloading is completed;
- obtaining, by the intermediate agent, the second data from the database based on the indication information;
- and
- feeding back the second data to a user.
A computer program product, comprising computer executable instructions stored on a non-transitory computer-readable medium, wherein when the instructions are executed by at least one processor, cause the at least one processor to:
- obtain a first request by an intermediate agent, wherein the first request is used to request to obtain first data of a first vehicle in a first time period;
- in response to a failure to obtain the first data from a database, send a second request to a data reload module by the intermediate agent, wherein the second request is used to request to reload original data of the first data;
- obtain the original data from a data storage node based on the second request, by the data reload module, and reload second data corresponding to the original data to the database;
- send indication information to the intermediate agent by the data reload module, wherein the indication information indicates that data reloading is completed;
- and
- obtain the second data from the database based on the indication information by the intermediate agent and feed back the second data to a user.
Dependencies are inferred from the claim text.