A method, device, computer equipment and medium for acquiring data

By monitoring the time period when acquiring data in a standard database, if timeout, it will turn to the data graph model database acquisition. It uses its synchronous update mechanism with the standard database to solve the problem of data acquisition delay caused by network instability in cloud storage and improve data acquisition efficiency and accuracy.

CN111984627BActive Publication Date: 2024-11-26BEIJING XUEZHITU NETWORK TECH
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202010889254.9
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2020-08-28
Publication Date
2024-11-26
Estimated Expiration
2040-08-28

AI Technical Summary

Technical Problem

The existing cloud storage methods rely too much on the network, resulting in delays in data acquisition when the network is unstable, reducing data acquisition efficiency.

Method used

When obtaining target data in a standard database, if the preset time period is not successful, the acquisition and data from the data graph model database will be stopped and the data will be obtained from the data graph model database, and the data will be updated synchronously in the data graph model database to improve efficiency.

Benefits of technology

By acquiring data from the data graph model database, the data acquisition efficiency is improved when the network is unstable, and the accuracy and timeliness of the target data are ensured.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN111984627B_ABST
    Figure CN111984627B_ABST
Patent Text Reader

Abstract

The present application provides a method, apparatus, computer equipment and medium for data acquisition, the method comprising: acquiring a data acquisition request sent by a terminal device; acquiring target data from a standard database according to the data acquisition request; if the target data is not acquired from the standard database within a preset time, then stopping acquiring the target data from the standard database, and acquiring the target data from a data graph model database according to the data acquisition request; and sending the acquired target data to the terminal device. In an embodiment of the present application, when the network is unstable, data can be acquired from the data graph model database, which can improve the efficiency of acquiring accurate target data.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present application relates to the field of data acquisition, and in particular, to a method, apparatus, computer device and medium for data acquisition. Background Art

[0002] From the industrial age to the electrical age and then to the information network age, with the development of science and technology, the cloud age is a stage in the progress of human science and technology. Nowadays, with the rise of cloud services, it is an inevitable trend for enterprises to move to the cloud. Most enterprises use cloud services to realize their own containerization.

[0003] Currently, cloud storage basically achieves data acquisition through the network. This storage method is too dependent on the network. When the network is unstable, it is easy to cause data acquisition delays, reducing the efficiency of data acquisition. Summary of the invention

[0004] In view of this, the purpose of the present application is to provide a method, apparatus, computer device and medium for data acquisition, which are used to solve the problem in the prior art that the data acquisition efficiency is slow when the network is unstable.

[0005] In a first aspect, an embodiment of the present application provides a method for acquiring data, including:

[0006] Obtaining a data acquisition request sent by a terminal device;

[0007] According to the data acquisition request, acquiring target data from a standard database;

[0008] If the target data is not obtained from the standard database within the preset time, then stop obtaining the target data from the standard database, and obtain the target data from the data graph model database according to the data acquisition request;

[0009] The acquired target data is sent to the terminal device.

[0010] Optionally, acquiring target data from a standard database according to the data acquisition request includes:

[0011] extracting a data extraction instruction from the data acquisition request;

[0012] Determining whether the data extraction instruction is a correct instruction;

[0013] If the data extraction instruction is a correct instruction, the target data is obtained from the standard database according to the data extraction instruction.

[0014] Optionally, the data acquisition request carries the login identity information of the target user, and after acquiring the data acquisition request sent by the target user through the terminal device, the method further includes:

[0015] Extracting the target user's login identity information from the data acquisition request;

[0016] Determining the data processing authority corresponding to the login identity information according to the login identity information;

[0017] If the data processing authority does not reach the data acquisition level, sending an acquisition failure prompt message to the terminal device;

[0018] If the data processing authority reaches the data acquisition level, the step of acquiring target data from a standard database according to the data acquisition request is executed.

[0019] Optionally, if the target data is not obtained from the standard database within a preset time period, stopping obtaining the target data from the standard database, and obtaining the target data from the data graph model database according to the data acquisition request, includes:

[0020] If the target data is not obtained from the standard database within the preset time period, the acquisition of the target data from the standard database is stopped, and the configuration information of the target data to be obtained is extracted according to the acquisition request, and the target data is acquired from the data graph model database according to the configuration information of the target data.

[0021] Optionally, if the target data is not obtained from the standard database within a preset time period, stopping obtaining the target data from the standard database, extracting configuration information of the target data to be obtained according to the acquisition request, and obtaining the target data from the data graph model database according to the configuration information of the target data, including:

[0022] If the preset time is reached and the target data is not obtained from the standard database, then the acquisition of the target data from the standard database is stopped, and the configuration information of the target data to be acquired is extracted according to the acquisition request, an index chain is generated according to the configuration information, and the target data corresponding to the index chain is searched in the data graph model database according to the index chain.

[0023] Optionally, the data in the standard database and the data in the data graph model database are updated synchronously.

[0024] In a second aspect, an embodiment of the present application provides a data acquisition device, including:

[0025] A request acquisition module, used to acquire a data acquisition request sent by a terminal device;

[0026] A first data acquisition module, used to acquire target data from a standard database according to the data acquisition request;

[0027] A second data acquisition module, configured to stop acquiring the target data from the standard database if the target data is not acquired from the standard database within a preset time, and acquire the target data from the data graph model database according to the data acquisition request;

[0028] A sending module is used to send the acquired target data to the terminal device.

[0029] Optionally, the first acquisition module includes:

[0030] A first extraction unit, configured to extract a data extraction instruction from the data acquisition request;

[0031] A first judging unit, used to judge whether the data extraction instruction is a correct instruction;

[0032] The first acquisition unit is configured to acquire the target data from the standard database according to the data extraction instruction if the data extraction instruction is a correct instruction.

[0033] In a third aspect, an embodiment of the present application provides a computer device, comprising a memory, a processor, and a computer program stored in the memory and executable on the processor, wherein the processor implements the steps of the above method when executing the computer program.

[0034] In a fourth aspect, an embodiment of the present application provides a computer-readable storage medium, on which a computer program is stored, and when the computer program is executed by a processor, the steps of the above method are executed.

[0035] The data acquisition method proposed in the embodiment of the present application monitors the acquisition time of the target data from the standard database. If the target data has not been acquired within the preset time period, it means that the data acquisition may have failed. At this time, the target data can be acquired from the data graph model database, and then the acquired data is sent to the terminal device. The data in the data graph model database and the data in the standard database are updated at the same time, that is, the data in the data graph model database and the data in the standard database are mostly the same, which can improve the efficiency of acquiring accurate target data.

[0036] In order to make the above-mentioned objects, features and advantages of the present application more obvious and easy to understand, preferred embodiments are specifically cited below and described in detail with reference to the attached drawings. BRIEF DESCRIPTION OF THE DRAWINGS

[0037] In order to more clearly illustrate the technical solutions of the embodiments of the present application, the drawings required for use in the embodiments will be briefly introduced below. It should be understood that the following drawings only show certain embodiments of the present application and therefore should not be regarded as limiting the scope. For ordinary technicians in this field, other related drawings can be obtained based on these drawings without paying creative work.

[0038] Figure 1 A flowchart of a method for acquiring data provided in an embodiment of the present application;

[0039] Figure 2 A schematic diagram of a data graph model database provided in an embodiment of the present application;

[0040] Figure 3 A schematic diagram of the structure of a data acquisition device provided in an embodiment of the present application;

[0041] Figure 4 A schematic diagram of the structure of a computer device provided in an embodiment of the present application. DETAILED DESCRIPTION

[0042] To make the purpose, technical scheme and advantages of the embodiments of the present application clearer, the technical scheme in the embodiments of the present application will be clearly and completely described below in conjunction with the drawings in the embodiments of the present application. Obviously, the described embodiments are only part of the embodiments of the present application, rather than all of the embodiments. The components of the embodiments of the present application generally described and shown in the drawings here can be arranged and designed in various different configurations. Therefore, the following detailed description of the embodiments of the present application provided in the drawings is not intended to limit the scope of the application claimed for protection, but merely represents the selected embodiments of the present application. Based on the embodiments of the present application, all other embodiments obtained by those skilled in the art without making creative work belong to the scope of protection of the present application.

[0043] In the prior art, with the development of science and technology, the cloud era is a staged era of human technological progress. Cloud storage has become an inevitable trend in enterprises. Most enterprises use cloud storage to realize their own containerization, but this cloud storage is too dependent on the network and has certain disadvantages. For example, in the case of K8s (kubernetes, container orchestration engine) used by most enterprises, when using K8s, the staff enters the data acquisition command in the terminal device through the command tool provided by K8s, sends the data acquisition command to the K8s server, and then the K8s server uses the data acquisition command to obtain data from the standard database through the network, and then the server sends the acquired data to the terminal device. The standard database can be deployed in a fixed location. If a terminal device that does not belong to the same area as the standard database needs to obtain data from the standard database, it needs to obtain the data through the network. The farther the distance between the terminal device that needs to obtain data and the deployment location of the standard database, the higher the requirement for network stability. If data is obtained under unstable network conditions, it is easy to cause data acquisition delays due to network instability, which reduces the efficiency of data acquisition.

[0044] The present application embodiment provides a method for obtaining data, such as Figure 1 As shown, the following steps are included:

[0045] S101, obtaining a data acquisition request sent by a terminal device;

[0046] S102, acquiring target data from a standard database according to the data acquisition request;

[0047] S103, if the target data is not obtained from the standard database within a preset time period, stop obtaining the target data from the standard database, and obtain the target data from the data graph model database according to the data acquisition request;

[0048] S104: Send the acquired target data to the terminal device.

[0049] In the above step S101, the terminal device may be a local terminal device, a device for a user to input a data acquisition request, such as a mobile terminal, a television, a computer, a handheld computer, etc. The data acquisition request is a trigger condition for acquiring target data, and the server needs to acquire the target data from the standard database according to the data acquisition request. The standard database is a database deployed at a fixed location. The storage method of the data in the standard database is pre-set, and the staff cannot modify its data storage method.

[0050] In specific implementation, when a user needs to obtain data, he needs to send a data acquisition request through the terminal device. Only when the server obtains the data acquisition request will it know that the user needs to obtain data, and then the server will obtain data according to the data acquisition request. Therefore, only after executing step S101 can the subsequent steps S102 to S104 be executed.

[0051] In the above step S102, the target data required by the terminal device can be determined according to the data acquisition request, so the target data can be obtained from the standard database through the data acquisition request. In the standard database, each data has a corresponding label, which is generated according to the corresponding configuration when the data is stored. For example, server A contains namespace B, namespace B contains deployment C, deployment C contains container D, and container D contains target data, then the label of the target data is server A / namespace B / deployment C / container D.

[0052] In the above step S103, the preset time period refers to a time length that is artificially specified. The data graph model database may be a database for storing data, and the data graph model database stores data in the form of a graph model, such as Figure 2 As shown, the configuration corresponding to the data storage is parsed into an index chain, each node in the index chain corresponds to the corresponding storage level in the configuration, and the common nodes corresponding to different data are integrated and represented by one node.

[0053] In specific implementation, when starting to obtain target data from the standard database through a data acquisition request, the server will start timing. If the timing reaches the preset time period, it may be due to network instability that causes data acquisition delay. In order to improve the efficiency of obtaining target data, it is possible to stop obtaining target data from the standard database and obtain data from the data graph model database according to the data acquisition request. The data in the data graph model database is updated synchronously with the data in the standard database. Therefore, if data cannot be obtained from the standard database, data can be obtained from the data graph model database instead, which can improve the efficiency of obtaining target data.

[0054] In the above step S104, after the target data is acquired, the target data is sent to the terminal device so that the user can acquire the target data as quickly as possible.

[0055] In the embodiment of the present application, by monitoring the acquisition time of the target data from the standard database, if the target data has not been acquired within the preset time period, it means that the data acquisition may have failed. At this time, the target data can be acquired from the data graph model database, and then the acquired data can be sent to the terminal device. The data in the data graph model database and the data in the standard database are updated at the same time, that is, the data in the data graph model database and the data in the standard database are mostly the same, which can improve the efficiency of acquiring accurate target data.

[0056] Acquiring data from a standard database is not a random process, because a standard database is not only used to store data, but also includes functions such as adding new data and deleting data. Therefore, corresponding instructions are required to implement corresponding functions. Each instruction is pre-set. Therefore, the data acquisition request sent by the user needs to carry a data extraction instruction. Only when the data extraction instruction is correct can the target data be quickly acquired. Therefore, step S102 includes:

[0057] Step 1021, extracting a data extraction instruction from the data acquisition request;

[0058] Step 1022, determining whether the data extraction instruction is a correct instruction;

[0059] Step 1023: If the data extraction instruction is a correct instruction, the target data is obtained from the standard database according to the data extraction instruction.

[0060] Step 1024: If the data extraction instruction is not a correct instruction, an instruction error prompt message is sent to the terminal device.

[0061] In the above step 1021, the data extraction instruction may be an instruction for extracting data from a standard database, and the data extraction instruction may carry configuration information corresponding to the target data. The configuration information may be generated according to the configuration corresponding to the data when it is stored.

[0062] In specific implementation, the data acquisition request will carry a lot of information, such as user identity information, data extraction instructions, etc. Therefore, before obtaining the target data from the standard database, it is also necessary to extract the data extraction instructions from the data acquisition request.

[0063] In the above step 1022, the correct instruction may be pre-set, and therefore, it may be determined whether the extracted data prompt instruction is the same as the pre-set data extraction instruction. If they are the same, the extracted data prompt instruction is the correct instruction; if they are not the same, the extracted data prompt instruction is not the correct instruction.

[0064] In the above step 1023, if the extracted data prompt instruction is a correct instruction, the server will send the data extraction instruction to the standard database, so that the standard database searches for the corresponding target data according to the data extraction instruction.

[0065] In the above step 1024, if the extracted data prompt instruction is not a correct instruction, the server will send a prompt message of instruction error to the terminal device. The prompt message may include the number of errors, error content, etc. The prompt message can be displayed in the form of a text message or a voice in the mobile terminal.

[0066] Of course, the data stored in a database is very confidential. Only users of the company who are allowed to access the data can access the data. Therefore, in order to improve data security, it is necessary to authenticate the user who obtains the data. After step S101, it also includes:

[0067] Step 1051, extracting the login identity information of the target user from the data acquisition request;

[0068] Step 1052, matching the login identity information with the historical registration identity information;

[0069] Step 1053: If the login identity information does not match the historical registration identity information, sending an acquisition failure prompt message to the terminal device;

[0070] Step 1054: if the login identity information matches the historical registration identity information, then execute the step of acquiring target data from the standard database according to the data acquisition request.

[0071] In the above step 1051, the login identity information may be the identity information used to log in to the current server. In an enterprise, all employees may share a server, but not all employees have the same permissions. Therefore, in order to ensure data security, only some users may have the permission to obtain data, some users may only be able to view data but not obtain data, and some users may not even have the permission to view data. Therefore, even if all employees log in to the same server, their permissions are different.

[0072] In specific implementation, there is a lot of information carried in the data acquisition request, so it is necessary to extract the login identity information of the target user from the data acquisition request, so that the identity information can be verified.

[0073] In the above step 1052, the data processing authority may be a restriction on data processing on the standard database, and the data processing authority may include the following levels: data non-viewing level, data viewing level, data acquisition level, data modification level, etc.

[0074] In specific implementation, the level of data processing authority corresponding to the login identity information can be found according to the login identity information. The higher the level, the higher the ability of the user to process data in the target database, and the lower the level, the lower the ability of the user to process data in the target database.

[0075] In the above step 1053, if the data processing authority of the target user does not reach the data acquisition level, it can be determined that the target user cannot obtain the target data. In order to avoid the target user waiting for a long time, an acquisition failure prompt message can be sent to the terminal device used by the target user. The acquisition failure prompt message may include any one or more of the following information: acquisition failure information, failure reason, etc.

[0076] In the above step 1053, if the data processing authority of the target user reaches the data acquisition level, the data can be acquired through steps S102 to S103.

[0077] The way of storing data in the data graph model database is relatively complicated. Even if the data graph model database and the standard database update data at the same time, it will take a long time to complete the data storage due to the complicated storage method of the data graph model database. Therefore, when acquiring data, data will be acquired from the standard database first, which reduces the situation where the data in the data graph model database has not been stored yet when acquiring the newly updated data, resulting in data acquisition failure. Although the data storage method of the data graph model database is relatively complicated, the data acquisition method will be simpler and faster. Step S103 includes:

[0078] Step 1031: If the target data is not obtained from the standard database within the preset time period, stop obtaining the target data from the standard database, extract the configuration information of the target data to be obtained according to the acquisition request, and obtain the target data from the data graph model database according to the configuration information of the target data.

[0079] In the above step 1031, the configuration information may be generated according to the configuration corresponding to the data storage, that is, the storage location where the target data is located.

[0080] In specific implementation, if data has not been obtained from the standard database when the preset time period is reached, the waiting time will be stopped, that is, the data will no longer be obtained from the standard database, but the data will be obtained from the data graph model database instead. Obtaining data from the data graph model database is not a disorderly search, but requires certain guidance to find. Therefore, it is necessary to obtain the configuration information of the target data and obtain the target data in the data graph model database according to the guidance of the configuration information of the target data.

[0081] The way data is stored in a data graph model database is different from that in an ordinary database. Figure 2 As shown, the data graph model database stores data in the form of a structure graph, and the structure in the structure graph is constructed based on the connection between the storage levels corresponding to the data storage locations. Each data stored in the data graph model database will have a corresponding storage chain, and the storage chain includes multiple nodes, and each node corresponds to a different storage level. Therefore, when searching for target data through the data graph model database, it is necessary to determine the corresponding index chain based on the configuration information of the target data, and then find the matching storage chain in the data graph model database based on the index chain, and then use the storage chain to find the target data. Step 1031 includes:

[0082] Step 10311: If the target data is not obtained from the standard database within the preset time period, stop obtaining the target data from the standard database, extract the configuration information of the target data to be obtained according to the acquisition request, generate an index chain according to the configuration information, and search the data graph model database for the target data corresponding to the index chain according to the index chain.

[0083] In the above step 10311, if data has not been obtained from the standard database when the preset time period is reached, the waiting time will be stopped, that is, the data will no longer be obtained from the standard database, and the data will be obtained from the data graph model database instead. Obtaining data from the data graph model database is not a random search, but requires certain guidance to find it. Therefore, it is necessary to obtain the configuration information of the target data, and obtain the target data in the data graph model database according to the guidance of the configuration information of the target data. Because each data in the data graph model database will have a corresponding storage chain, it is necessary to determine the index chain according to the configuration information of the target data, and then match the index chain with the storage chain corresponding to each data in the data graph model database, and determine the data corresponding to the storage chain that completely matches the index chain as the target data.

[0084] For example, the configuration information of the target data is stored in container D, container D is stored in deployment C, deployment C is stored in namespace B, and namespace B is stored in server A. According to the configuration information of the target data, the index chain of the target data can be determined as: server A->namespace B->deployment C->container D. According to each node in the index chain, the corresponding storage link is determined in the data graph model database, and then the target data stored in container D is determined.

[0085] In an embodiment of the present application, by monitoring the acquisition time of the target data from the standard database, if the target data has not been acquired within the preset time period, it means that the data acquisition may have failed. At this time, the target data can be acquired from the data graph model database, and then the acquired data is sent to the terminal device. The data in the data graph model database and the data in the standard database are updated at the same time, that is, the data in the data graph model database and the data in the standard database are mostly the same, which can improve the efficiency of acquiring accurate target data. Before acquiring the target data from the standard database, it is also necessary to judge the data extraction instruction, which reduces the situation where the data in the standard database is changed due to instruction errors, improves the security of the data, and reduces data contamination. Before acquiring the data, it is also necessary to verify the identity information of the target user who requests to acquire the data. Only employees who have successfully verified can acquire the data. This can reduce the situation where data is stolen and improve the security of data storage.

[0086] The present application also provides a data acquisition device, such as Figure 3 As shown, including:

[0087] The request acquisition module 301 is used to acquire the data acquisition request sent by the terminal device;

[0088] A first data acquisition module 302, configured to acquire target data from a standard database according to the data acquisition request;

[0089] A second data acquisition module 303 is configured to stop acquiring the target data from the standard database if the target data is not acquired from the standard database at a preset time, and acquire the target data from the data graph model database according to the data acquisition request;

[0090] The sending module 304 is used to send the acquired target data to the terminal device.

[0091] Optionally, the first data acquisition module 302 includes:

[0092] A first extraction unit, configured to extract a data extraction instruction from the data acquisition request;

[0093] A first judging unit, used to judge whether the data extraction instruction is a correct instruction;

[0094] The first acquisition unit is configured to acquire the target data from the standard database according to the data extraction instruction if the data extraction instruction is a correct instruction.

[0095] Optionally, the device further comprises:

[0096] An extraction module, used to extract the login identity information of the target user from the data acquisition request;

[0097] A determination module, used to determine the data processing authority corresponding to the login identity information according to the login identity information;

[0098] a prompt module, configured to send a prompt message indicating that the data has failed to be acquired to the terminal device if the data processing authority does not reach the data acquisition level;

[0099] The first data acquisition module is used to execute the step of acquiring target data from a standard database according to the data acquisition request if the data processing authority reaches the data acquisition level.

[0100] Optionally, the second data acquisition module 303 includes:

[0101] A second data acquisition unit is configured to stop acquiring the target data from the standard database if the target data is not acquired from the standard database within a preset time period, and to extract configuration information of the target data to be acquired according to the acquisition request, and to acquire the target data from the data graph model database according to the configuration information of the target data.

[0102] Optionally, the second data acquisition unit includes:

[0103] A second data acquisition subunit is configured to stop acquiring the target data from the standard database if the target data is not acquired from the standard database within a preset time, extract configuration information of the target data to be acquired according to the acquisition request, generate an index chain according to the configuration information, and search the data graph model database for the target data corresponding to the index chain according to the index chain.

[0104] Optionally, the data in the standard database and the data in the data graph model database are updated synchronously.

[0105] Corresponds to Figure 1 The data acquisition method in the present application embodiment also provides a computer device 400, such as Figure 4As shown, the device includes a memory 401, a processor 402, and a computer program stored in the memory 401 and executable on the processor 402, wherein the processor 402 implements the data acquisition method when executing the computer program.

[0106] Specifically, the above-mentioned memory 401 and processor 402 can be general-purpose memory and processor, which are not specifically limited here. When the processor 402 runs the computer program stored in the memory 401, it can execute the above-mentioned data acquisition method, which solves the problem of slow data acquisition efficiency when the network is unstable in the prior art.

[0107] Corresponds to Figure 1 In the method for acquiring data in the present application, an embodiment of the present application further provides a computer-readable storage medium, on which a computer program is stored, and when the computer program is executed by a processor, the steps of the method for acquiring data are executed.

[0108] Specifically, the storage medium can be a general storage medium, such as a mobile disk, a hard disk, etc. When the computer program on the storage medium is run, the above-mentioned data acquisition method can be executed, which solves the problem of slow data acquisition efficiency when the network is unstable in the prior art. The present application monitors the acquisition time of the target data from the standard database. If the target data has not been acquired within the preset time period, it means that the data acquisition may have failed. At this time, the target data can be acquired from the data graph model database, and then the acquired data is sent to the terminal device. The data in the data graph model database and the data in the standard database are updated at the same time, that is, the data in the data graph model database and the data in the standard database are mostly the same, which can improve the efficiency of acquiring accurate target data.

[0109] In the embodiments provided in the present application, it should be understood that the disclosed methods and devices can be implemented in other ways. The device embodiments described above are merely schematic. For example, the division of the units is only a logical function division. There may be other division methods in actual implementation. For example, multiple units or components can be combined or integrated into another system, or some features can be ignored or not executed. Another point is that the mutual coupling or direct coupling or communication connection shown or discussed can be through some communication interfaces, indirect coupling or communication connection of devices or units, which can be electrical, mechanical or other forms.

[0110] The units described as separate components may or may not be physically separated, and the components shown as units may or may not be physical units, that is, they may be located in one place or distributed on multiple network units. Some or all of the units may be selected according to actual needs to achieve the purpose of the solution of this embodiment.

[0111] In addition, each functional unit in the embodiments provided in the present application may be integrated into one processing unit, or each unit may exist physically separately, or two or more units may be integrated into one unit.

[0112] If the functions are implemented in the form of software functional units and sold or used as independent products, they can be stored in a computer-readable storage medium. Based on this understanding, the technical solution of the present application, or the part that contributes to the prior art or the part of the technical solution, can be embodied in the form of a software product, which is stored in a storage medium and includes several instructions for a computer device (which can be a personal computer, a server, or a network device, etc.) to perform all or part of the steps of the methods described in each embodiment of the present application. The aforementioned storage medium includes: various media that can store program codes, such as a USB flash drive, a mobile hard disk, a read-only memory (ROM), a random access memory (RAM), a magnetic disk or an optical disk.

[0113] It should be noted that similar numbers and letters represent similar items in the following figures. Therefore, once an item is defined in one figure, it does not need to be further defined and explained in subsequent figures. In addition, the terms "first", "second", "third", etc. are only used to distinguish the description and are not to be understood as indicating or implying relative importance.

[0114] Finally, it should be noted that the above-described embodiments are only specific implementation methods of the present application, which are used to illustrate the technical solutions of the present application, rather than to limit them. The protection scope of the present application is not limited thereto. Although the present application is described in detail with reference to the above-mentioned embodiments, ordinary technicians in the field should understand that any technician familiar with the technical field can still modify the technical solutions recorded in the above-mentioned embodiments within the technical scope disclosed in the present application, or can easily think of changes, or make equivalent replacements for some of the technical features therein; and these modifications, changes or replacements do not make the essence of the corresponding technical solutions deviate from the spirit and scope of the technical solutions of the embodiments of the present application. They should all be included in the protection scope of the present application. Therefore, the protection scope of the present application shall be subject to the protection scope of the claims.

Claims

1. A method for data acquisition, characterized in that: include: Obtaining a data acquisition request sent by a terminal device; According to the data acquisition request, acquiring target data from a standard database; If the target data is not obtained from the standard database within the preset time, then the target data is stopped from being obtained from the standard database, and the target data is obtained from the data graph model database according to the data acquisition request, and the data graph model database stores data in the form of a graph model; Sending the acquired target data to the terminal device; If the target data is not obtained from the standard database within the preset time period, then the target data is stopped from being obtained from the standard database, and the target data is obtained from the data graph model database according to the data acquisition request, including: If the target data is not obtained from the standard database within a preset time period, stopping obtaining the target data from the standard database, and extracting configuration information of the target data to be obtained according to the data acquisition request; Determine an index chain according to the configuration information of the target data; The index chain is matched with the storage chain corresponding to each data in the data graph model database, and the data corresponding to the storage chain that completely matches the index chain is determined as the target data.

2. The method according to claim 1, characterized in that The step of acquiring target data from a standard database according to the data acquisition request includes: extracting a data extraction instruction from the data acquisition request; Determining whether the data extraction instruction is a correct instruction; If the data extraction instruction is a correct instruction, the target data is obtained from the standard database according to the data extraction instruction.

3. The method according to claim 1, characterized in that The data acquisition request carries the login identity information of the target user. After acquiring the data acquisition request sent by the target user through the terminal device, the method further includes: Extracting the target user's login identity information from the data acquisition request; Determining the data processing authority corresponding to the login identity information according to the login identity information; If the data processing authority does not reach the data acquisition level, sending acquisition failure prompt information to the terminal device; If the data processing authority reaches the data acquisition level, the step of acquiring target data from a standard database according to the data acquisition request is executed.

4. The method according to claim 1, characterized in that: The data in the standard database and the data in the data graph model database are updated synchronously.

5. A data acquisition device, characterized in that: include: A request acquisition module, used to acquire a data acquisition request sent by a terminal device; A first data acquisition module, used to acquire target data from a standard database according to the data acquisition request; A second data acquisition module is used for stopping acquiring the target data from the standard database if the target data is not acquired from the standard database at a preset time, and acquiring the target data from a data graph model database according to the data acquisition request, wherein the data graph model database stores data in the form of a graph model; A sending module, used for sending the acquired target data to the terminal device; The second data acquisition module is specifically used to: If the target data is not obtained from the standard database within a preset time period, stopping obtaining the target data from the standard database, and extracting configuration information of the target data to be obtained according to the data acquisition request; Determine an index chain according to the configuration information of the target data; The index chain is matched with the storage chain corresponding to each data in the data graph model database, and the data corresponding to the storage chain that completely matches the index chain is determined as the target data.

6. The device according to claim 5, characterized in that The first acquisition module includes: A first extraction unit, configured to extract a data extraction instruction from the data acquisition request; A first judging unit, used to judge whether the data extraction instruction is a correct instruction; The first acquisition unit is configured to acquire the target data from the standard database according to the data extraction instruction if the data extraction instruction is a correct instruction.

7. A computer device comprising a memory, a processor, and a computer program stored in the memory and executable on the processor, characterized in that: When the processor executes the computer program, the steps of the method according to any one of claims 1 to 4 are implemented.

8. A computer-readable storage medium having a computer program stored thereon, characterized in that: When the computer program is executed by a processor, the steps of the method according to any one of claims 1 to 4 are executed.