US 12,405,950 B2
Data query method and apparatus for adjusting data loading to reduce query latency
Khalid Ahmed, Markham (CA); Yuen Chau Pang, Toronto (CA); and Lei Guo, Markham (CA)
Assigned to HUAWEI CLOUD COMPUTING TECHNOLOGIES CO., LTD., Guizhou (CN)
Filed by Huawei Cloud Computing Technologies Co., Ltd., Guizhou (CN)
Filed on Oct. 3, 2023, as Appl. No. 18/480,348.
Prior Publication US 2025/0110956 A1, Apr. 3, 2025
Int. Cl. G06F 16/2453 (2019.01); G06F 11/34 (2006.01); G06F 16/2455 (2019.01); G06F 16/25 (2019.01)
CPC G06F 16/24539 (2019.01) [G06F 11/3419 (2013.01); G06F 16/24552 (2019.01); G06F 16/252 (2019.01)] 20 Claims
OG exemplary drawing
 
1. A method, comprising:
receiving, by a computer device, a first query request from a client communicatively coupled to the computer device, the first query request including a first data identifier;
sending back first data indicated by the first data identifier to the client;
obtaining a query time cost of the first data, a loading time cost of the first data, a data freshness target, and a query latency target,
wherein the query time cost of the first data indicates a first time interval of querying the first data from a data destination communicatively coupled to the computer device, and
wherein the loading time cost of the first data indicates a second time interval of loading the first data from a data source to the data destination;
determining a retrieving strategy based on the query time cost of the first data, the loading time cost of the first data, the data freshness target, and the query latency target;
retrieving, from the data destination, second data and a data relationship that are associated with the first data according to the retrieving strategy, wherein the second data and the data relationship meet the data freshness target, wherein the data relationship includes a relationship between the second data and the first data, wherein the first data and the second data are nodes in a graph structure of data, and wherein the data relationship between the first data and the second data is an edge in the graph structure of the data;
after the retrieving the second data and the data relationship, receiving a second query request from the client, the second query request including a second data identifier; and
sending back the second data indicated by the second data identifier to the client.