Resource data acquisition method, device, electronic device, and storage medium
By aligning resource data with event information using the most recent updates and binding with event identifiers, the solution addresses storage inefficiencies and errors in resource data management, reducing costs and improving accuracy.
Patent Information
- Application Number
- CN202210028087.8
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2022-01-11
- Publication Date
- 2024-12-31
- Estimated Expiration
- 2042-01-11
AI Technical Summary
The frequent occurrence of resource replacement events leads to increased storage pressure and costs due to the need to store resource data at each event, while the frequency of data changes is lower, causing inefficiencies and potential errors in existing technologies.
The proposed solution involves acquiring and storing current resource data during resource replacement events by establishing a binding relationship between the current resource data and event information, using the most recently updated data as the current resource data, and binding it with event identifiers to reduce storage space and improve accuracy.
This approach reduces storage costs and minimizes data errors by aligning resource data with event information in real-time, ensuring accuracy and efficiency in resource data management.
Smart Images

Figure CN114372059B_ABST
Abstract
Description
Technical Field
[0001] The present disclosure relates to the field of big data storage, and more specifically, to a resource data acquisition method, device, electronic device, and storage medium. Background Art
[0002] Currently, when a resource replacement event occurs, it is usually necessary to obtain the resource data at the time of replacement in real time (e.g., a snapshot) and store it together with the current replacement event so that the resource data can be used for related analysis and processing (e.g., data recovery, data testing, etc.) later.
[0003] Since one piece of resource data is stored each time a resource replacement event occurs, as the number of resource replacement events increases, greater pressure will be placed on storage resources, leading to increased storage costs. Summary of the invention
[0004] The present disclosure provides a resource data acquisition method, device, electronic device, and storage medium to at least solve the problems in the above-mentioned related technologies.
[0005] According to a first aspect of an embodiment of the present disclosure, a resource data acquisition method is provided, comprising: in response to a resource replacement event, acquiring current resource data of the resource from a resource data set, wherein the resource data set is used to store changed resource data obtained each time relevant data of the resource changes; and obtaining resource data corresponding to the resource replacement event by establishing a binding relationship between the current resource data and event information of the resource replacement event.
[0006] Optionally, the acquiring the current resource data of the resource from the resource data set includes: acquiring the most recently updated resource data of the resource from the resource data set as the current resource data of the resource.
[0007] Optionally, in response to a resource replacement event, obtaining current resource data of the resource from a resource data set includes: during the resource replacement event, executing an operation of obtaining current resource data of the resource from the resource data set.
[0008] Optionally, in response to a resource replacement event, obtaining current resource data of the resource from a resource data set includes: after the resource replacement event is completed, executing an operation of obtaining current resource data of the resource from the resource data set.
[0009] Optionally, each resource data in the resource data set has a data identifier, and the event information has an event identifier, and establishing a binding relationship between the current resource data and the event information of the resource replacement event includes: establishing the binding relationship by binding the data identifier of the current resource data with the event identifier of the event information.
[0010] Optionally, after obtaining the resource data corresponding to the resource replacement event, the method further includes: receiving a request to view the resource data corresponding to the resource replacement event; in response to the request, searching the resource data bound to the event information of the resource replacement event from the resource data set based on the event information of the resource replacement event to obtain resource data related to the resource replacement event; and sending the found resource data to the client that sent the request.
[0011] Optionally, the method of searching the resource data set for resource data bound to the event information of the resource replacement event based on the event information of the resource replacement event includes: obtaining a data identifier bound to the event identifier of the event information; and searching the resource data set for resource data corresponding to the obtained data identifier.
[0012] According to the second aspect of an embodiment of the present disclosure, a resource data acquisition device is provided, comprising: a resource data acquisition unit, configured to: in response to a resource replacement event, obtain current resource data of the resource from a resource data set, wherein the resource data set is used to store the changed resource data obtained each time the relevant data of the resource changes; and a resource data binding unit, configured to: obtain resource data corresponding to the resource replacement event by establishing a binding relationship between the current resource data and event information of the resource replacement event.
[0013] Optionally, the resource data acquisition unit may be configured to: acquire the most recently updated resource data of the resource from the resource data set as the current resource data of the resource.
[0014] Optionally, the resource data acquisition unit may be configured to: during the resource replacement event, execute an operation of acquiring current resource data of the resource from the resource data set.
[0015] Optionally, the resource data acquisition unit may be configured to: after the resource replacement event is completed, execute an operation of acquiring current resource data of the resource from the resource data set.
[0016] Optionally, each resource data in the resource data set has a data identifier, the event information has an event identifier, and the resource data binding unit may be configured to establish the binding relationship by binding the data identifier of the current resource data with the event identifier in the event information.
[0017] Optionally, it also includes a resource data query unit, which can be configured to: after obtaining the resource data corresponding to the resource replacement event, receive a request to view the resource data corresponding to the resource replacement event; in response to the request, based on the event information of the resource replacement event, search for the resource data bound to the event information of the resource replacement event from the resource data set to obtain the resource data related to the resource replacement event; and send the found resource data to the client that sent the request.
[0018] Optionally, the resource data query unit may be configured to: obtain a data identifier bound to an event identifier of the event information; and search the resource data set for resource data corresponding to the obtained data identifier.
[0019] According to a third aspect of an embodiment of the present disclosure, there is provided an electronic device, comprising: at least one processor; and at least one memory storing computer executable instructions, wherein the computer executable instructions, when executed by the at least one processor, prompt the at least one processor to execute a resource data acquisition method according to the present disclosure.
[0020] According to a fourth aspect of an embodiment of the present disclosure, a computer-readable storage medium storing instructions is provided. When the instructions are executed by at least one processor, the at least one processor is prompted to execute the resource data acquisition method according to the present disclosure.
[0021] According to a fifth aspect of an embodiment of the present disclosure, a computer program product is provided, and instructions in the computer program product can be executed by a processor of a computer device to complete the resource data acquisition method according to the present disclosure.
[0022] The technical solution provided by the embodiments of the present disclosure brings at least the following beneficial effects:
[0023] According to the resource data acquisition method, device, electronic device, and storage medium disclosed in the present invention, resource data of a resource is generated and stored when the relevant data of a resource changes. Since the frequency of changes in the relevant data of a resource is much lower than the frequency of resource replacement events, the storage space occupied by the resource data of the resource can be greatly reduced, thereby saving storage costs.
[0024] In addition, according to the resource data acquisition method, device, electronic device, and storage medium disclosed in the present invention, the current resource data of the resource is obtained during the process of a resource replacement event and bound to the event information of the resource replacement event. This can avoid the situation where the resource data of the resource is obtained according to the event information of the resource replacement event after the resource replacement event is completed, resulting in an error between the resource data and the actual resource data corresponding to the resource replacement event, thereby improving the accuracy of the resource data.
[0025] It is to be understood that the foregoing general description and the following detailed description are exemplary and explanatory only and are not restrictive of the present disclosure. BRIEF DESCRIPTION OF THE DRAWINGS
[0026] The drawings herein are incorporated into and constitute a part of the specification, illustrate embodiments consistent with the present disclosure, and together with the description are used to explain the principles of the present disclosure, and do not constitute improper limitations on the present disclosure.
[0027] Figure 1 1 is an exemplary system architecture 100 illustrating in which exemplary embodiments of the present disclosure may be applied.
[0028] Figure 2 is a schematic diagram illustrating a resource data acquisition process according to an exemplary embodiment of the present disclosure.
[0029] Figure 3 is a flowchart illustrating a resource data acquisition method according to an exemplary embodiment of the present disclosure.
[0030] Figure 4 is a block diagram illustrating a resource data acquisition apparatus according to an exemplary embodiment of the present disclosure.
[0031] Figure 5 is a block diagram illustrating an electronic device 500 according to an exemplary embodiment of the present disclosure. DETAILED DESCRIPTION
[0032] In order to enable ordinary persons in the art to better understand the technical solutions of the present disclosure, the technical solutions in the embodiments of the present disclosure will be clearly and completely described below in conjunction with the accompanying drawings.
[0033] It should be noted that the terms "first", "second", etc. in the specification and claims of the present disclosure and the above-mentioned drawings are used to distinguish similar objects, and are not necessarily used to describe a specific order or sequence. It should be understood that the data used in this way can be interchanged where appropriate, so that the embodiments of the present disclosure described herein can be implemented in an order other than those illustrated or described herein. The implementation methods described in the following examples do not represent all implementation methods consistent with the present disclosure. Instead, they are merely examples of devices and methods consistent with some aspects of the present disclosure as detailed in the attached claims.
[0034] It should be noted that the phrase "at least one of the items" in the present disclosure includes three types of parallel situations: "any one of the items", "a combination of any number of the items", and "all of the items". For example, "including at least one of A and B" includes the following three parallel situations: (1) including A; (2) including B; (3) including A and B. Another example is "executing at least one of step 1 and step 2" which means the following three parallel situations: (1) executing step 1; (2) executing step 2; (3) executing step 1 and step 2.
[0035] In order to reduce the storage cost of resource data and improve the accuracy of resource data, the present disclosure proposes a resource data acquisition method, device, electronic device, and storage medium. Specifically, when the relevant data of a resource changes, the resource data of the resource is generated and stored. Since the frequency of changes in the relevant data of the resource is much lower than the frequency of resource replacement events, the storage space occupied by the resource data can be greatly reduced, saving storage costs. In addition, during the process of a resource replacement event, the current resource data of the resource is acquired in real time and bound to the event information of the resource replacement event. This can avoid the situation where the resource data of the resource is acquired according to the event information of the resource replacement event after the resource replacement event is completed, resulting in errors between the resource data and the actual resource data corresponding to the resource replacement event, thereby improving the accuracy of the resource data. Below, reference will be made to Figures 1 to 5 The data acquisition method, device, electronic device, and storage medium according to the exemplary embodiments of the present disclosure are described in detail.
[0036] Figure 1 1 is an exemplary system architecture 100 illustrating in which exemplary embodiments of the present disclosure may be applied.
[0037] like Figure 1As shown, the system architecture 100 may include terminal devices 101, 102, 103, a network 104 and a server 105. The network 104 is used to provide a medium for a communication link between the terminal devices 101, 102, 103 and the server 105. The network 104 may include various connection types, such as wired, wireless communication links or optical fiber cables, etc. Users can use the terminal devices 101, 102, 103 to interact with the server 105 through the network 104 to receive or send messages (for example, for sending resource replacement requests, requests to view resource data, or receiving resource data, etc.). Various applications related to resource processing may be installed on the terminal devices 101, 102, 103, such as production management systems, operation systems, etc. The terminal devices 101, 102, 103 may be hardware or software. When the terminal devices 101, 102, 103 are hardware, they may be various electronic devices with display screens and capable of performing resource processing, including but not limited to smart phones, tablet computers, laptop portable computers, desktop computers, etc. When the terminal devices 101, 102, and 103 are software, they can be installed in the electronic devices listed above, and can be implemented as multiple software or software modules (for example, to provide distributed services), or as a single software or software module. No specific limitation is made here.
[0038] The server 105 may be a server that provides various services, such as a background server that provides support for multimedia applications installed on the terminal devices 101, 102, and 103. The background server may, for example, parse, store, and process resource change data in response to a resource change event, or parse, store, and process data related to resource replacement in response to a resource replacement event.
[0039] It should be noted that the server can be hardware or software. When the server is hardware, it can be implemented as a distributed server cluster consisting of multiple servers, or it can be implemented as a single server. When the server is software, it can be implemented as multiple software or software modules (for example, used to provide distributed services), or it can be implemented as a single software or software module. No specific limitation is made here.
[0040] Figure 2 is a schematic diagram illustrating a resource data acquisition process according to an exemplary embodiment of the present disclosure.
[0041] Reference Figure 2 When the relevant data of a resource changes, the server generates a resource data set according to the changes in the relevant data of the resource. When a resource replacement event occurs, the server obtains the current resource data of the resource from the resource data set, and establishes a binding relationship between the current resource and the event information of the resource replacement event, and obtains the resource data corresponding to the resource replacement event.
[0042] Since the frequency of changes in resource-related data (for example, resource quantity information, resource description information, etc.) is much lower than the frequency of resource replacement events, the amount of resource data generated when resource-related data changes is much lower than the amount of resource data generated when a resource replacement event occurs, thereby saving storage space for storing resource data and reducing storage costs.
[0043] Figure 3 is a flowchart illustrating a resource data acquisition method according to an exemplary embodiment of the present disclosure.
[0044] Reference Figure 3 In step 301, in response to a resource replacement event, current resource data of the resource may be obtained from a resource data set, wherein the resource data set is used to store changed resource data obtained each time related data of the resource is changed.
[0045] Here, resources can be commodities, advertisements, data traffic, etc., and there is no restriction on this. Resource replacement events refer to resource transactions, such as commodity transactions, purchases of data traffic, etc. During the display process of resources, their related data (for example, resource quantity information, resource description information, etc.) usually changes. Each time the related data of a resource changes, the changed resource data of the resource can be generated. For example, in a commodity transaction scenario, the description of the same commodity (for example, commodity price, quantity, origin, composition, etc.) may change. Each time the change occurs, the changed commodity information can be obtained and saved as the commodity data of the commodity.
[0046] According to an exemplary embodiment of the present disclosure, the most recently updated resource data of the resource can be obtained from the resource data set as the current resource data of the resource. Specifically, the most recently updated resource data reflects the most recent update of the resource. When a resource replacement event occurs, using the most recently updated resource data as the current resource data of the resource can avoid data errors.
[0047] According to an exemplary embodiment of the present disclosure, after the resource replacement event is completed, an operation of obtaining the current resource data of the resource from the resource data set can be performed. Specifically, in order to avoid affecting the execution process of the resource replacement event (for example, in the commodity trading process, avoiding the situation of failure to generate an order), the current resource data of the resource can be obtained from the resource data set after the resource replacement event is completed (for example, in the commodity trading process, generating and completing an order). According to another exemplary embodiment of the present disclosure, an operation of obtaining the current resource data of the resource from the resource data set can also be performed during the process of the resource replacement event. Specifically, the related technology generates the resource data of the resource by querying the event information of the resource replacement event after the resource replacement event is completed. From the perspective of the time node, there is already a lag. On the other hand, in the process of querying the event information, there may also be a situation where the data is blocked, which further aggravates the degree of lag. When there is a change in the relevant data of the resource within the lag time interval, the resource data finally queried and generated is the resource data after the relevant data of the resource is changed, rather than the resource data at the time when the resource replacement occurs, resulting in a resource data error. In view of this, the present invention obtains the current resource data of the resource from the resource data set while executing the resource replacement event, which can avoid the lag of the obtained resource data, thereby avoiding resource data errors to a great extent and improving the accuracy of the resource data corresponding to the resource replacement event.
[0048] In step 302, resource data corresponding to the resource replacement event may be obtained by establishing a binding relationship between current resource data and event information of the resource replacement event.
[0049] According to an exemplary embodiment of the present disclosure, each resource data in the resource data set has a data identifier, and the event information of the resource replacement event has an event identifier. The binding relationship can be established by binding the data identifier of the current resource data of the resource with the event identifier of the event information of the resource replacement event. For example, in a commodity trading scenario, a commodity data is generated each time the commodity information changes, and each commodity data is given a unique id (i.e., data identifier) at the same time as it is generated to distinguish it from other commodity data. When purchasing a commodity, an order will be generated, and each order has a unique order number (i.e., event identifier). The order number can be used to query the order details of this order that is different from other orders, for example, query the price, quantity, and commodity details description, etc. Therefore, by binding the commodity data id to the order number, the correspondence between the order data and the commodity data can be achieved. During a product information change cycle, the product details description of multiple orders of the same product remains unchanged. Therefore, product data is generated when the relevant information of the product changes. When conducting product transactions, the product data of the current order is obtained by binding the order with the product data. This can not only obtain the product data of the current order, but also avoid the storage pressure caused by generating product data based on each order.
[0050] According to an exemplary embodiment of the present disclosure, after obtaining resource data corresponding to a resource replacement event, a request to view resource data corresponding to the resource replacement event can be received, and in response to the request, based on the event information of the resource replacement event, resource data bound to the event information is searched from a resource data set, resource data related to the resource replacement event is obtained, and the found resource data is sent to the client that sent the request. Specifically, a data identifier bound to an event identifier of the event information can be obtained, and resource data corresponding to the obtained data identifier can be searched from a resource data set, which can improve the query efficiency of resource data.
[0051] Figure 4 is a block diagram illustrating a resource data acquisition apparatus according to an exemplary embodiment of the present disclosure.
[0052] Reference Figure 4 According to an exemplary embodiment of the present disclosure, a resource data acquisition device 400 may include a resource data acquisition unit 401 and a resource data binding unit 402 .
[0053] The resource data acquisition unit 401 may acquire the current resource data of the resource from the resource data set of the resource in response to a resource replacement event, wherein the resource data set is used to store updated resource data obtained each time relevant data of the resource changes.
[0054] Here, resources can be commodities, advertisements, data traffic, etc., and there is no restriction on this. Resource replacement events refer to resource transactions, such as commodity transactions, purchases of data traffic, etc. During the display process of resources, their related data (for example, resource quantity information, resource description information, etc.) usually changes. Each time the related data of a resource changes, the changed resource data of the resource can be generated. For example, in a commodity transaction scenario, the description of the same commodity (for example, commodity price, quantity, origin, composition, etc.) may change. Each time the change occurs, the changed commodity information can be obtained and saved as the commodity data of the commodity.
[0055] According to an exemplary embodiment of the present disclosure, the resource data acquisition unit 401 can acquire the latest updated resource data of the resource from the resource data set as the current resource data of the resource. Specifically, the latest updated resource data reflects the most recent update of the resource. When resource replacement occurs, using the latest updated resource data as the current resource data of the resource can avoid data errors.
[0056] According to an exemplary embodiment of the present disclosure, the resource data acquisition unit 401 may perform an operation of acquiring the current resource data of the resource from the resource data set after the resource replacement event is completed. Specifically, in order to avoid affecting the execution process of the resource replacement event (for example, in the commodity transaction process, avoiding the situation where the order generation fails), the current resource data of the resource may be acquired from the resource data set after the resource replacement event is completed (for example, in the commodity transaction process, an order is generated and completed).
[0057] According to another exemplary embodiment of the present disclosure, the resource data acquisition unit 401 may also perform an operation of acquiring the current resource data of the resource from the resource data set during the process of the resource replacement event. Specifically, the related technology generates the resource data of the resource by querying the event information of the resource replacement event after the resource replacement event is completed. From the perspective of the time node, there is already a lag. On the other hand, in the process of querying the event information of the resource replacement event, there may also be a situation where the data is blocked, which further aggravates the degree of lag. When the relevant data of the resource changes during the lag time interval, the resource data finally queried and generated is the resource data after the relevant data of the resource is changed, rather than the resource data at the time when the resource replacement occurs, resulting in resource data errors. In view of this, the source data acquisition unit 401 of the present disclosure acquires the current resource data of the resource from the resource data set while executing the resource replacement event, which can avoid the lag of the acquired resource data, thereby avoiding the occurrence of resource data errors to a great extent, and improving the accuracy of the resource data corresponding to the resource replacement event.
[0058] The resource data binding unit 402 may obtain the resource data corresponding to the resource replacement event by establishing a binding relationship between the current resource data of the resource and the event information of the resource replacement event.
[0059] According to an exemplary embodiment of the present disclosure, each resource data in the resource data set has a data identifier, and the event information of the resource replacement event has an event identifier. The resource data binding unit 402 can establish the binding relationship by binding the data identifier of the current resource data of the resource with the event identifier of the event information of the resource replacement event.
[0060] According to an exemplary embodiment of the present disclosure, the snapshot acquisition device 400 further includes a snapshot data query unit 403 ( Figure 4 (not shown in the figure), after obtaining the resource data corresponding to the resource replacement event, the snapshot data query unit 403 can receive a request to view the resource data corresponding to the resource replacement event, and in response to the request, search the resource data bound to the event information from the resource data set based on the event information of the resource replacement event, obtain the resource data related to the resource replacement event, and send the found resource data to the client. Specifically, the data identifier bound to the event identifier of the event information can be obtained, and the resource data corresponding to the obtained data identifier can be searched from the resource data set, which can improve the query efficiency of the resource data.
[0061] Figure 5 is a block diagram of an electronic device 500 according to an exemplary embodiment of the present disclosure.
[0062] Reference Figure 5 The electronic device 500 includes at least one memory 501 and at least one processor 502, wherein the at least one memory 501 stores a set of computer executable instructions, and when the computer executable instruction set is executed by the at least one processor 502, a resource data acquisition method according to an exemplary embodiment of the present disclosure is executed.
[0063] As an example, the electronic device 500 may be a PC, a tablet device, a personal digital assistant, a smart phone, or other device capable of executing the above-mentioned instruction set. Here, the electronic device 500 is not necessarily a single electronic device, but may also be any device or circuit collection capable of executing the above-mentioned instructions (or instruction sets) individually or in combination. The electronic device 500 may also be part of an integrated control system or system manager, or may be configured as a portable electronic device interconnected with a local or remote (e.g., via wireless transmission) interface.
[0064] In the electronic device 500, the processor 502 may include a central processing unit (CPU), a graphics processing unit (GPU), a programmable logic device, a dedicated processor system, a microcontroller or a microprocessor. As an example and not limitation, the processor may also include an analog processor, a digital processor, a microprocessor, a multi-core processor, a processor array, a network processor, etc.
[0065] The processor 502 may execute instructions or codes stored in the memory 501, wherein the memory 501 may also store data. Instructions and data may also be sent and received over a network via a network interface device, wherein the network interface device may employ any known transmission protocol.
[0066] The memory 501 may be integrated with the processor 502, for example, by placing RAM or flash memory within an integrated circuit microprocessor or the like. In addition, the memory 501 may include a separate device, such as an external disk drive, a storage array, or any other storage device that can be used by a database system. The memory 501 and the processor 502 may be operatively coupled, or may communicate with each other, such as through an I / O port, a network connection, etc., so that the processor 502 can read files stored in the memory.
[0067] In addition, the electronic device 500 may also include a video display (such as a liquid crystal display) and a user interaction interface (such as a keyboard, a mouse, a touch input device, etc.) All components of the electronic device 500 may be connected to each other via a bus and / or a network.
[0068] According to an exemplary embodiment of the present disclosure, a computer-readable storage medium storing instructions may also be provided, wherein when the instructions are executed by at least one processor, the at least one processor is prompted to execute the resource data acquisition method according to the present disclosure. Examples of computer-readable storage media here include: read-only memory (ROM), random access programmable read-only memory (PROM), electrically erasable programmable read-only memory (EEPROM), random access memory (RAM), dynamic random access memory (DRAM), static random access memory (SRAM), flash memory, non-volatile memory, CD-ROM, CD-R, CD+R, CD-RW, CD+RW, DVD-ROM, DVD-R, DVD+R, DVD-RW, DVD+RW, DVD-RAM, BD-ROM, BD-R, BD-R LTH, BD-RE, Blu-ray or optical disk storage, hard disk drive (HDD), solid state drive (SSD), card storage (such as, multimedia card, secure digital (SD) card or extreme digital (XD) card), magnetic tape, floppy disk, magneto-optical data storage device, optical data storage device, hard disk, solid state disk and any other device, any other device is configured to store computer programs and any associated data, data files and data structures in a non-transitory manner and provide the computer programs and any associated data, data files and data structures to a processor or computer so that the processor or computer can execute the computer program. The computer program in the above-mentioned computer-readable storage medium can be run in an environment deployed in a computer device such as a client, a host, an agent device, a server, etc. In addition, in one example, the computer program and any associated data, data files and data structures are distributed on a networked computer system, so that the computer program and any associated data, data files and data structures are stored, accessed and executed in a distributed manner by one or more processors or computers.
[0069] According to an exemplary embodiment of the present disclosure, a computer program product may also be provided. Instructions in the computer program product may be executed by a processor of a computer device to implement the resource data acquisition method according to the exemplary embodiment of the present disclosure.
[0070] According to the resource data acquisition method, device, electronic device, and storage medium disclosed in the present invention, resource data of a resource is generated and stored when the relevant data of a resource changes. Since the frequency of changes in the relevant data of a resource is much lower than the frequency of resource replacement events, the storage space occupied by the resource data of the resource can be greatly reduced, thereby saving storage costs.
[0071] In addition, according to the data acquisition method, device, electronic device, and storage medium disclosed in the present invention, the current resource data of the resource is obtained during the process of a resource replacement event and bound to the event information of the resource replacement event. This can avoid the situation where the resource data of the resource is obtained based on the event information of the resource replacement event after the resource replacement event is completed, resulting in an error between the resource data and the actual resource data corresponding to the resource replacement event, thereby improving the accuracy of the resource data.
[0072] Those skilled in the art will readily appreciate other embodiments of the present disclosure after considering the specification and practicing the invention disclosed herein. This application is intended to cover any variations, uses, or adaptations of the present disclosure that follow the general principles of the present disclosure and include common knowledge or customary techniques in the art that are not disclosed in the present disclosure. The specification and examples are intended to be exemplary only, and the true scope and spirit of the present disclosure are indicated by the following claims.
[0073] It should be understood that the present disclosure is not limited to the exact structures that have been described above and shown in the drawings, and that various modifications and changes may be made without departing from the scope thereof. The scope of the present disclosure is limited only by the appended claims.
Claims
1. A resource data acquisition method, characterized in that: include: In response to a resource replacement event, obtaining current resource data of the resource from a resource data set, wherein the resource data set is used to store changed resource data obtained each time relevant data of the resource is changed, and each resource data in the resource data set corresponds to a change in relevant data of the resource; By establishing a binding relationship between the current resource data and the event information of the resource replacement event, resource data corresponding to the resource replacement event is obtained, Each resource data in the resource data set has a data identifier, the event information has an event identifier, and the establishing of a binding relationship between the current resource data and the event information of the resource replacement event includes: The binding relationship is established by binding the data identifier of the current resource data with the event identifier of the event information.
2. The resource data acquisition method according to claim 1, characterized in that: The acquiring the current resource data of the resource from the resource data set comprises: The most recently updated resource data of the resource is obtained from the resource data set as the current resource data of the resource.
3. The resource data acquisition method according to claim 1, characterized in that: The step of obtaining the current resource data of the resource from the resource data set in response to the resource replacement event includes: During the resource replacement event, an operation of acquiring current resource data of the resource from the resource data set is performed.
4. The resource data acquisition method according to claim 1, characterized in that: The step of obtaining the current resource data of the resource from the resource data set in response to the resource replacement event includes: After the resource replacement event is completed, an operation of acquiring current resource data of the resource from the resource data set is performed.
5. The resource data acquisition method according to claim 1, characterized in that: After obtaining the resource data corresponding to the resource replacement event, the method further includes: receiving a request for viewing resource data corresponding to the resource replacement event; In response to the request, searching the resource data set for resource data bound to the event information of the resource replacement event based on the event information of the resource replacement event to obtain resource data related to the resource replacement event; The found resource data is sent to the client that sent the request.
6. The resource data acquisition method according to claim 5, characterized in that: The searching, based on the event information of the resource replacement event, from the resource data set for resource data bound to the event information of the resource replacement event comprises: Acquire a data identifier bound to an event identifier of the event information; The resource data corresponding to the acquired data identifier is searched from the resource data set.
7. A resource data acquisition device, characterized in that: include: A resource data acquisition unit is configured to: in response to a resource replacement event, acquire current resource data of the resource from a resource data set, wherein the resource data set is used to store changed resource data obtained each time the relevant data of the resource is changed, and each resource data in the resource data set corresponds to a change in the relevant data of the resource; The resource data binding unit is configured to: obtain resource data corresponding to the resource replacement event by establishing a binding relationship between the current resource data and the event information of the resource replacement event, Each resource data in the resource data set has a data identifier, the event information has an event identifier, and the resource data binding unit is configured as follows: The binding relationship is established by binding the data identifier of the current resource data with the event identifier of the event information.
8. The resource data acquisition device according to claim 7, characterized in that: The resource data acquisition unit is configured to: The most recently updated resource data of the resource is obtained from the resource data set as the current resource data of the resource.
9. The resource data acquisition device according to claim 7, characterized in that: The resource data acquisition unit is configured to: During the resource replacement event, an operation of acquiring current resource data of the resource from the resource data set is performed.
10. The resource data acquisition device according to claim 7, characterized in that: The resource data acquisition unit is configured to: After the resource replacement event is completed, an operation of acquiring current resource data of the resource from the resource data set is performed.
11. The resource data acquisition device according to claim 7, characterized in that: It also includes a resource data query unit configured to: After obtaining the resource data corresponding to the resource replacement event, receiving a request to view the resource data corresponding to the resource replacement event; In response to the request, searching the resource data set for resource data bound to the event information of the resource replacement event based on the event information of the resource replacement event to obtain resource data related to the resource replacement event; The found resource data is sent to the client that sent the request.
12. The data acquisition device according to claim 11, characterized in that: The resource data query unit is configured as follows: Acquire a data identifier bound to an event identifier of the event information; The resource data corresponding to the acquired data identifier is searched from the resource data set.
13. An electronic device, characterized in that: include: at least one processor; at least one memory storing computer executable instructions, Wherein, when the computer executable instructions are executed by the at least one processor, the at least one processor is prompted to execute the resource data acquisition method according to any one of claims 1 to 6.
14. A computer-readable storage medium storing instructions, characterized in that: When the instructions are executed by at least one processor, the at least one processor is prompted to execute the resource data acquisition method according to any one of claims 1 to 6.
15. A computer program product comprising computer instructions, characterized in that When the computer instructions are executed by at least one processor, the resource data acquisition method according to any one of claims 1 to 6 is implemented.