Business backtracking method and device based on graph model and electronic equipment
By obtaining the full graph data table in the graph model and updating the model using the incremental graph data table, the problem of long time-consuming backtracking operations on the graph model is solved, and a more efficient business backtracking operation is achieved, which is suitable for multi-time unit backtracking scenarios.
Patent Information
- Application Number
- CN202310302160.0
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2023-03-24
- Publication Date
- 2024-09-24
AI Technical Summary
Existing technologies take a long time to perform business backtracking operations through graph models and are inconvenient to operate. The entire graph model needs to be rebuilt to trace back past business states, resulting in excessive time consumption.
A business backtracking method based on graph models is proposed. By determining the backtracking time unit, the full graph data table is obtained, the full graph model is generated, and the incremental graph data table is used to update the model, thereby reducing the need for full graph model construction in each subsequent time unit. The full amount of data only needs to be constructed once at the start time of the traceback.
It significantly reduces the time consumption of business backtracking operations and improves the convenience of operations. It is especially suitable for business scenarios that require continuous backtracking of multiple time units.
Smart Images

Figure 00000000_0000
Abstract
Description
Technical Field
[0001] The present disclosure relates to the field of data processing technology, and in particular to a business backtracking method, device and electronic device based on a graph model. Background Art
[0002] A graph is a discrete structure consisting of vertices and edges connecting the vertices. In computer science, graphs are one of the most flexible data structures, with "vertices" representing entities and "edges" representing relationships between entities. Many problems can be modeled and solved using graph models. For example: social and relationship networks between people, using graphs in chemistry to distinguish isomers with different structures but the same molecular formula, etc. Correspondingly, graph models belong to structural models and can be used to describe the relationships between a large number of things in nature and human society. Using graph models in modeling can use graph theory as a tool. Analyzing according to the properties of the graph provides an effective method for studying various systems, especially complex systems. Graph models are widely used in natural sciences, engineering technology, social economy, and management.
[0003] In practical applications, business objects included in a business are usually abstracted as vertices in a graph model, and edges in the graph model are constructed based on the associations between multiple business objects. The graph model can intuitively determine the associations between multiple business objects included in a business, which has the advantage of being intuitive and clear.
[0004] However, a graph model can usually only display the business status at a specific point in time. If you need to trace back the business status at a certain point in the past, you need to rebuild the graph model at the corresponding point in time, which takes a lot of time. It can be seen that it takes a long time and is inconvenient to perform business backtracking operations through graph models. Summary of the invention
[0005] The present disclosure provides a business backtracking method, device and electronic device based on a graph model, which are used to improve the execution efficiency of business backtracking operations.
[0006] In a first aspect, the present disclosure provides a business backtracking method based on a graph model, comprising the following steps:
[0007] Determine a backtracking time unit corresponding to a business backtracking cycle, obtain a full graph data table corresponding to the backtracking time unit based on a predefined graph model framework, and generate a full graph model corresponding to the backtracking time unit according to the full graph data table;
[0008] Obtaining a business event corresponding to a first time unit included in the business backtracking cycle, and backtracking the business event corresponding to the first time unit according to the full graph model corresponding to the backtracking time unit; the backtracking time unit is earlier than the first time unit;
[0009] Based on the graph model framework, an incremental graph data table corresponding to a first time unit included in the business backtracking cycle is obtained, and a full graph model corresponding to the first time unit is generated according to the incremental graph data table corresponding to the first time unit;
[0010] Obtain the business event corresponding to the second time unit included in the business backtracking cycle, and perform backtracking processing on the business event corresponding to the second time unit according to the full graph model corresponding to the first time unit; wherein the second time unit is later than the first time unit.
[0011] In a second aspect, the present disclosure provides a business backtracking device based on a graph model, comprising:
[0012] A first model generation unit is adapted to determine a backtracking time unit corresponding to a business backtracking period, obtain a full-quantity graph data table corresponding to the backtracking time unit based on a predefined graph model framework, and generate a full-quantity graph model corresponding to the backtracking time unit according to the full-quantity graph data table;
[0013] A first backtracking unit is adapted to obtain a business event corresponding to a first time unit included in the business backtracking cycle, and backtrack the business event corresponding to the first time unit according to a full graph model corresponding to the backtracking time unit; the backtracking time unit is earlier than the first time unit;
[0014] A second model generating unit is adapted to obtain, based on the graph model framework, an incremental graph data table corresponding to a first time unit included in the business traceback cycle, and generate a full graph model corresponding to the first time unit according to the incremental graph data table corresponding to the first time unit;
[0015] The second backtracking unit is suitable for obtaining the business events corresponding to the second time unit included in the business backtracking cycle, and backtracking the business events corresponding to the second time unit according to the full graph model corresponding to the first time unit; wherein the second time unit is later than the first time unit.
[0016] In a third aspect, the present disclosure provides an electronic device, comprising: at least one processor; and a memory communicatively connected to the at least one processor; wherein the memory stores one or more computer programs executable by the at least one processor, and one or more of the computer programs are executed by the at least one processor to enable the at least one processor to perform the above method.
[0017] In a fourth aspect, the present disclosure provides a computer-readable storage medium having a computer program stored thereon, wherein the computer program implements the above method when executed by a processor / processing core.
[0018] The embodiment provided by the present disclosure can determine the backtracking time unit corresponding to the business backtracking cycle, obtain the full graph data table corresponding to the backtracking time unit based on the predefined graph model framework, and thus generate the full graph model corresponding to the backtracking time unit. Correspondingly, the business event corresponding to the first time unit contained in the business backtracking cycle is obtained, and the business event corresponding to the first time unit is backtracked according to the full graph model corresponding to the backtracking time unit. In addition, the incremental graph data table corresponding to the first time unit contained in the business backtracking cycle is obtained based on the graph model framework, and the full graph model corresponding to the first time unit is generated according to the incremental graph data table corresponding to the first time unit; the business event corresponding to the second time unit contained in the business backtracking cycle is obtained, and the business event corresponding to the second time unit is backtracked according to the full graph model corresponding to the first time unit. It can be seen that in this method, it is only necessary to obtain the full graph data table once for the backtracking time unit, and in the subsequent process, it is only necessary to obtain the full graph model of the time unit through the incremental graph data table corresponding to each time unit in the business backtracking cycle. Since the incremental operation is less time-consuming, this method can significantly reduce the time-consuming business backtracking operation and improve the convenience of operation.
[0019] It should be understood that the content described in this section is not intended to identify the key or important features of the embodiments of the present disclosure, nor is it intended to limit the scope of the present disclosure. Other features of the present disclosure will become easily understood through the following description. BRIEF DESCRIPTION OF THE DRAWINGS
[0020] The accompanying drawings are used to provide a further understanding of the present disclosure and constitute a part of the specification. Together with the embodiments of the present disclosure, they are used to explain the present disclosure and do not constitute a limitation of the present disclosure. The above and other features and advantages will become more apparent to those skilled in the art by describing detailed example embodiments with reference to the accompanying drawings, in which:
[0021] Figure 1 A flowchart of a business backtracking method based on a graph model provided by an embodiment of the present disclosure;
[0022] Figure 2 A flowchart of a business backtracking method based on a graph model provided for a specific example of the present disclosure;
[0023] Figure 3 A block diagram of a business backtracking device based on a graph model provided by an embodiment of the present disclosure;
[0024] Figure 4 A block diagram of an electronic device provided in an embodiment of the present disclosure. DETAILED DESCRIPTION
[0025] In order to enable those skilled in the art to better understand the technical solutions of the present disclosure, the exemplary embodiments of the present disclosure are described below in conjunction with the accompanying drawings, including various details of the embodiments of the present disclosure to facilitate understanding, which should be considered as merely exemplary. Therefore, those of ordinary skill in the art should recognize that various changes and modifications can be made to the embodiments described herein without departing from the scope and spirit of the present disclosure. Similarly, for the sake of clarity and conciseness, the description of well-known functions and structures is omitted in the following description.
[0026] In the absence of conflict, the various embodiments of the present disclosure and the various features therein may be combined with each other.
[0027] As used herein, the term "and / or" includes any and all combinations of one or more of the associated listed items.
[0028] The terms used herein are only used to describe specific embodiments and are not intended to limit the present disclosure. As used herein, the singular forms "a" and "the" are also intended to include plural forms, unless the context clearly indicates otherwise. It will also be understood that when the terms "including" and / or "made of" are used in this specification, the presence of the features, wholes, steps, operations, elements and / or components is specified, but the presence or addition of one or more other features, wholes, steps, operations, elements, components and / or groups thereof is not excluded. "Connected" or "connected" and similar words are not limited to physical or mechanical connections, but can include electrical connections, whether direct or indirect.
[0029] Unless otherwise defined, all terms (including technical and scientific terms) used herein have the same meaning as commonly understood by those of ordinary skill in the art. It will also be understood that terms such as those defined in commonly used dictionaries should be interpreted as having a meaning consistent with their meaning in the context of the relevant art and the present disclosure, and will not be interpreted as having an idealized or overly formal meaning unless explicitly defined as such herein.
[0030] According to the business backtracking method based on the graph model of the embodiment of the present disclosure, it can be executed by an electronic device such as a terminal device or a server. The terminal device can be a vehicle-mounted device, a user equipment (User Equipment, UE), a mobile device, a user terminal, a terminal, a cellular phone, a cordless phone, a personal digital assistant (Personal Digital Assistant, PDA), a handheld device, a computing device, a vehicle-mounted device, a wearable device, etc.; the server can be an independent physical server, or a server cluster or distributed system composed of multiple physical servers, or a cloud server providing cloud computing services. The method can be specifically implemented by a processor calling a computer program stored in a memory.
[0031] In the related art, a graph model can usually only display the business status at a specific point in time. If you need to trace back the business status at a certain point in the past, you need to rebuild the graph model at the corresponding point in time, which takes a lot of time. It can be seen that it takes a long time and is inconvenient to perform business backtracking operations through graph models. In order to solve the above problems, the present application proposes a business backtracking method based on a graph model. In this method, it is only necessary to obtain the full graph data table once. In the subsequent process, it is only necessary to use the incremental graph data table corresponding to each time unit in the business backtracking cycle to obtain the full graph model of the time unit. Since incremental operations take less time, this method can significantly reduce the time consumption of business backtracking operations and improve the convenience of operations.
[0032] Figure 1 A flowchart of a business backtracking method based on a graph model is provided for one embodiment of the present disclosure. Figure 1 , the method comprising:
[0033] Step S110: Determine the backtracking time unit corresponding to the business backtracking cycle, obtain the full graph data table corresponding to the backtracking time unit based on the pre-defined graph model framework, and generate the full graph model corresponding to the backtracking time unit according to the full graph data table.
[0034] Among them, the business backtracking cycle refers to: the time range that can be traced back each time the business performs a backtracking operation. Generally, the business backtracking cycle contains multiple time units, and each time unit can be in various forms such as natural days, natural months, hours, minutes, etc. For example, generally, the business backtracking cycle is 30 days, so each time the backtracking operation is performed, the business data within 30 days before the current date can be traced back. Correspondingly, the backtracking time unit corresponding to the business backtracking cycle refers to: when the earliest time unit in the business backtracking cycle is determined as the first time unit, the time unit adjacent to the first time unit and earlier than the first time unit. It can be seen that the backtracking time unit does not belong to the current business backtracking cycle, but is a time unit before the first time unit contained in the current business backtracking cycle. For example, assuming that the business backtracking cycle is from April 1 to April 30, the backtracking time unit corresponds to March 31.
[0035] In this step, the full graph data table corresponding to the backtracking time unit is obtained based on the predefined graph model framework. The graph model framework is used to define the correspondence between each vertex and edge in the graph model, as well as the business fields corresponding to each vertex in the data table. Therefore, based on the graph model framework, the relevant business fields are extracted from the data table to obtain the full graph data table corresponding to the backtracking time unit. Accordingly, a full graph model corresponding to the backtracking time unit is generated according to the full graph data table. The full graph data table corresponding to the backtracking time unit is used to describe the business status corresponding to the backtracking time unit. The full graph model is a graph model generated based on the full graph data table to describe the business status at a specified moment. The full graph model contains the full amount of business status information corresponding to the specified moment.
[0036] Step S120: Obtain the business event corresponding to the first time unit included in the business backtracking cycle, and backtrack the business event corresponding to the first time unit according to the full graph model corresponding to the backtracking time unit; wherein the backtracking time unit is earlier than the first time unit.
[0037] Among them, the first time unit included in the business traceback cycle can be any time unit in the business traceback cycle. Usually, the first time unit included in the business traceback cycle refers to: any time unit except the last time unit in the business traceback cycle (that is, the latest time unit). The business event corresponding to the first time unit refers to: event information associated with the business execution process that occurs within the duration of the first time unit. Among them, the specific connotation of the business event is related to the business scenario. For example, in the user approval scenario, business events include: user registration events, submission of approval events, approval passed events or approval failed events, etc.
[0038] In addition, backtracking processing means: going back to a certain point in history and calculating the result values of variables under the data environment at that time, which is the data basis for backtracking reasoning verification. The so-called graph backtracking means: going back to a certain point in history and calculating the result values of variables in the graph data relationship structure at that time, which is the data basis for backtracking reasoning verification. Because the graph data changes dynamically over time, in order to determine the data situation at a certain historical point in time, it is necessary to go back to the corresponding point in time for calculation. Accordingly, when backtracking the business event corresponding to the first time unit, it is necessary to implement it according to the full graph model corresponding to the backtracking time unit.
[0039] In an optional implementation, the first time unit is the first time unit in the business backtracking cycle. Accordingly, since the model data of the full graph model corresponding to the first time unit has not yet been implemented when the business event corresponding to the first time unit occurs, that is, the full graph model corresponding to the first time unit has not yet been formed, therefore, when backtracking the business event corresponding to the first time unit, it can only be processed based on the full graph model of the time unit before the first time unit, that is, the backtracking time unit. In other words, the model data of the full graph model corresponding to each time unit can only be generated at the end of the time unit. Therefore, when backtracking the business event corresponding to each time unit, it can only be processed based on the full graph model of the time unit before the current time unit. In another optional implementation, the first time unit is not the first time unit in the business backtracking cycle. Accordingly, it is necessary to first obtain the incremental graph data tables corresponding to each time unit before the first time unit, and then generate the full graph model corresponding to the previous time unit of the first time unit based on the incremental graph data tables corresponding to each time unit before the first time unit, so as to perform backtracking processing on the business events corresponding to the first time unit according to the full graph model corresponding to the previous time unit of the first time unit. In short, regardless of whether the first time unit is the first time unit, it is necessary to perform backtracking processing on the business events corresponding to the first time unit based on the full graph model corresponding to the backtracking time unit.
[0040] Among them, when performing backtracking processing, it is mainly based on the generated full graph model corresponding to the time when the business event occurred, to determine the graph elements associated with the event elements contained in the business event, so as to obtain the event association information associated with the business event based on the graph elements, and then verify the processing process of the business event based on the event association information to verify whether the processing result of the business event is reasonable, so as to determine whether to optimize the processing method of similar events in the subsequent processing process based on the verification result.
[0041] Step S130: Based on the graph model framework, obtain the incremental graph data table corresponding to the first time unit included in the business traceback cycle, and generate the full graph model corresponding to the first time unit according to the incremental graph data table corresponding to the first time unit.
[0042] As mentioned above, when the business event corresponding to the first time unit occurs, the full graph model corresponding to the first time unit has not yet been generated. Therefore, in order to facilitate the backtracking of the business event of the next time unit corresponding to the first time unit in subsequent steps, it is necessary to pre-generate the full graph model corresponding to the first time unit. In this step, the incremental graph data table corresponding to the first time unit is obtained, so as to generate the full graph model corresponding to the first time unit based on the incremental graph data table corresponding to the first time unit.
[0043] Among them, unlike the full graph data table that focuses on describing the business status corresponding to the retrospective time unit, the incremental graph data table is used to describe the data operations generated within the duration of the corresponding time unit. It can be seen that the full graph data table is used to characterize the business status at a certain moment, while the incremental graph data table is used to characterize the data operations that occurred within a certain period of time. Accordingly, on the basis of the full graph model corresponding to the retrospective time unit, the model update operation is performed on the full graph model corresponding to the retrospective time unit through the data operations recorded in the incremental graph data table corresponding to the first time unit, thereby obtaining the full graph model corresponding to the first time unit.
[0044] Since the incremental graph data table only records the incremental data operations that occur within a specified period of time (first time unit), the amount of data is relatively small. Therefore, using the incremental graph data table to generate the full graph model corresponding to the first time unit can greatly improve the efficiency of building the full graph model.
[0045] In an optional implementation, the first time unit is the first time unit in the business backtracking cycle, and the backtracking time unit is adjacent to the first time unit and earlier than the first time unit. Accordingly, when generating the full graph model corresponding to the first time unit according to the incremental graph data table corresponding to the first time unit, it is specifically implemented in the following manner: on the basis of the full graph model corresponding to the backtracking time unit, generate the full graph model corresponding to the first time unit according to the incremental graph data table corresponding to the first time unit. Specifically, according to the incremental graph data table corresponding to the first time unit, the full graph model corresponding to the backtracking time unit is updated, thereby obtaining the full graph model corresponding to the first time unit.
[0046] In another optional implementation, the first time unit is not the first time unit in the business backtracking cycle. That is, the first time unit is not adjacent to the backtracking time unit. Accordingly, when generating the full graph model corresponding to the first time unit according to the incremental graph data table corresponding to the first time unit, it is specifically implemented in the following manner: determine the forward time unit adjacent to the first time unit and earlier than the first time unit, and on the basis of the full graph model corresponding to the forward time unit, generate the full graph model corresponding to the first time unit according to the incremental graph data table corresponding to the first time unit. Among them, the forward time unit of the first time unit is the previous time unit of the first time unit. In other words, the forward time unit is a time unit located in front of the first time unit (the forward time unit of the first time unit is adjacent to the first time unit and earlier than the first time unit). Specifically, according to the incremental graph data table corresponding to the first time unit, an update operation is performed on the full graph model corresponding to the forward time unit, thereby obtaining the full graph model corresponding to the first time unit. Among them, the full graph model corresponding to the forward time unit is obtained by updating the full graph model corresponding to a time unit located before the forward time unit.
[0047] Step S140: Obtain the business event corresponding to the second time unit included in the business backtracking cycle, and backtrack the business event corresponding to the second time unit according to the full graph model corresponding to the first time unit; the second time unit is later than the first time unit.
[0048] Normally, the second time unit is adjacent to the first time unit and is later than the first time unit. Accordingly, the second time unit may be any time unit in the business backtracking cycle. Normally, the second time unit included in the business backtracking cycle refers to any time unit other than the first time unit in the business backtracking cycle. Since the backtracking process usually requires continuous backtracking of business events of multiple time units in order to obtain accurate verification results for similar events, in this step, the backtracking process is performed in a manner similar to step S120.
[0049] In an optional implementation, the above-mentioned first time unit is the first time unit in the business backtracking cycle, and the second time unit is the second time unit in the business backtracking cycle. Accordingly, in order to facilitate the backtracking processing of business events of multiple time units continuously, after the business events corresponding to the second time unit are backtracked according to the full graph model corresponding to the first time unit, the following operations are further performed: First, the incremental graph data table corresponding to the i-th time unit contained in the business backtracking cycle is obtained, and the full graph model corresponding to the i-th time unit is generated according to the incremental graph data table corresponding to the i-th time unit and the full graph model corresponding to the i-1-th time unit. Then, the business event corresponding to the i+1-th time unit contained in the business backtracking cycle is obtained, and the business event corresponding to the i+1-th time unit is backtracked according to the full graph model corresponding to the i-th time unit; wherein i is greater than or equal to 2 and less than or equal to N, N is the total number of time units contained in the business backtracking cycle, and the N-th time unit is the latest time unit in the business backtracking cycle. It can be seen that through this method, the business events corresponding to each time unit in the business backtracking cycle can be traced back in turn, so as to generate the full graph model of each time unit in chronological order, and based on the full graph model of the previous time unit, the business events of the subsequent time unit can be traced back.
[0050] In summary, in this method, you only need to obtain the full graph data table once, and in the subsequent process, you only need to update the full graph model of the previous time unit through the incremental graph data table. Since incremental operations take less time, compared with the traditional method of building a full graph data table for each time unit, this method can significantly reduce the time consumption of business backtracking operations and improve the convenience of operations. It is especially suitable for business scenarios that require continuous backtracking of multiple time units.
[0051] In addition, those skilled in the art may also make various modifications and variations to the above embodiments:
[0052] In an optional implementation, before the method is executed, in order to improve the efficiency of building the graph model, a graph model framework matching the business needs can be further constructed according to the metadata information, so as to quickly build the graph model through the graph model framework. Accordingly, the graph model framework is specifically defined in the following manner: First, metadata information corresponding to multiple original data tables stored in the database is obtained. The metadata information can display the library, table, field, data source, life cycle and other information corresponding to each original data table in the database. Then, according to the metadata information, multiple target fields for creating the graph model and the field association relationship between the multiple target fields are determined. Specifically, the metadata information is displayed in the user operation interface, and when a field screening instruction triggered for a specified field in the metadata information is received, the field corresponding to the field screening instruction is determined as the target field. In addition, the field association relationship between the multiple target fields is determined according to factors such as the dependency relationship, reference relationship, data storage location and the like between the fields. Finally, according to the multiple target fields and the field association relationship between the multiple target fields, the corresponding graph model framework is defined; wherein the multiple target fields correspond to the multiple vertices in the graph model framework, and the field association relationship between the multiple target fields corresponds to the edge between the vertices. It can be seen that compared with the traditional method of manually building a graph model framework, this method can greatly improve the efficiency of building a graph model framework with the help of metadata. Since metadata can accurately describe the various attributes of the original data table, metadata can intuitively and accurately specify the fields required in the graph model framework and the relationship between the fields, thereby accurately and efficiently creating a graph model.
[0053] In addition, the full graph data table corresponding to the retrospective time unit can be generated in a variety of ways. For example, in an optional implementation method, the above-mentioned full graph data table is generated by a first type of query statement: First, through the first type of query statement, the graph model framework is queried for the data status information corresponding to the retrospective time unit. Among them, the first type of query statement is used to query the data state corresponding to the end time point of the retrospective time unit. Since the full graph data table is generated according to the business state of a moment, it is necessary to use the first type of query statement to query the data state corresponding to the end time point of the retrospective time unit. For example, query the data state corresponding to 24:00 on March 31. In a specific example, the first type of query statement can be a Hive SQL statement, and the parameter value of the time parameter contained in the first type of query statement is used to characterize a specific time point, for example, the parameter value is used to characterize a certain moment. Then, the full graph data table corresponding to the retrospective time unit is generated according to the query result of the data state information. Among them, the full graph data table is used to describe the data state of the business data corresponding to the retrospective time unit. With the help of the first type of query statements, the data status of business data that matches the graph model at a specified time can be automatically filtered, thereby automatically generating a full graph data table, improving the efficiency of data table generation.
[0054] In addition, when generating the incremental graph data table, it can be implemented with the help of the second type of query statement. Accordingly, after generating the full graph data table corresponding to the traceback time unit according to the query result of the data status information, the following operations are further performed: through the second type of query statement, the graph model framework corresponds to the data operation information of each time unit included in the business traceback cycle, and the incremental graph data table corresponding to each time unit included in the business traceback cycle is generated according to the query result of the data operation information. Among them, the second type of query statement is used to query the data operations triggered within the unit duration of each time unit. Since the incremental graph data table is generated according to one or more data operations triggered within the time period, it is necessary to use the second type of query statement to query the data operations triggered within the duration of each time unit. For example, query all data operations triggered within March 30. In a specific example, the second type of query statement can also be a Hive SQL statement, and the parameter value of the time parameter contained in the second type of query statement is used to characterize a time period, for example, the parameter value is used to characterize the starting time point and the ending time point of a time period. Then, the incremental graph data table corresponding to the time unit is generated according to the data operations triggered within the unit duration of the time unit. Among them, the incremental graph data table is used to describe the data operation corresponding to the specified time unit. With the help of the second type of query statement, the data operations matching the graph model within the specified period can be automatically filtered, thereby automatically generating the incremental graph data table, which improves the efficiency of data table generation.
[0055] Accordingly, in an optional implementation, when generating a full graph model corresponding to the first time unit according to the incremental graph data table corresponding to the first time unit, it is specifically implemented in the following manner: First, obtain the incremental graph data table corresponding to the first time unit contained in the business backtracking cycle. Optionally, when generating the full graph data table and the incremental graph data table corresponding to each time unit in the above process, the incremental graph data tables corresponding to multiple time units can be stored in sequence to the preset storage space in the order of the time units. Accordingly, the incremental graph data table corresponding to the first time unit is directly obtained from the preset storage space. Then, according to the incremental graph data table corresponding to the first time unit, the data operation triggered within the unit duration of the first time unit is obtained. Specifically, according to each data record contained in the incremental graph data table, the detailed information such as the operation type, operation time, and operation result of the data operation triggered within the unit duration of the first time unit can be determined. Finally, according to the data operation triggered within the unit duration of the first time unit, the full graph model corresponding to the first time unit is obtained. For example, in an optional implementation, the first time unit is the first time unit in the business backtracking cycle, and accordingly, according to the data operation triggered within the unit duration of the first time unit, the model update operation is performed on the full graph model corresponding to the backtracking time unit, thereby obtaining the full graph model corresponding to the first time unit. Specifically, according to the detailed information such as the operation type, operation time, and operation result of the data operation triggered within the unit duration of the first time unit, the model update operation is performed on the full graph model corresponding to the backtracking time unit, thereby obtaining the full graph model corresponding to the first time unit. For another example, in another optional implementation, the first time unit is a non-first time unit in the business backtracking cycle, and accordingly, according to the data operation triggered within the unit duration of the first time unit, the model update operation is performed on the full graph model corresponding to the forward time unit of the first time unit, thereby obtaining the full graph model corresponding to the first time unit. Specifically, according to the detailed information such as the operation type, operation time, and operation result of the data operation triggered within the unit duration of the first time unit, the model update operation is performed on the full graph model corresponding to the forward time unit of the first time unit, thereby obtaining the full graph model corresponding to the first time unit.
[0056] In addition, the business backtracking processing in this embodiment can be implemented in a variety of ways. For example, in an optional implementation method, the business events corresponding to each time unit included in the business backtracking cycle include: event subject and event result. Accordingly, when the business event corresponding to the second time unit is backtracked according to the full graph model corresponding to the first time unit, it is specifically implemented in the following way: First, according to the full graph model corresponding to the first time unit, determine the target vertex corresponding to the event subject of the business event corresponding to the second time unit, and the associated vertex that has an association relationship with the target vertex. Then, according to the associated operation event corresponding to the associated vertex, the business event corresponding to the second time unit is backtracked.
[0057] For example, in a specific example, the event subject of a business event may be a user in an approval business event. The event results may include: approval results and performance results. The graph model is used to characterize the association relationship between multiple users. Accordingly, the target vertex corresponding to the event subject of the business event is the vertex in the graph model corresponding to the user included in the business event. Accordingly, the associated vertex that has an association relationship with the target vertex corresponds to: a user associated with the user included in the business event, such as the user's friend, customer, family, etc. It can be seen that in this example, the graph model is used to characterize the association relationship between each user. By analyzing the associated vertices corresponding to the business events of the same type of business events or the same user, the commonality between the associated vertices corresponding to the business events of the same type of business events or the same user can be extracted, so as to perform backtracking verification based on the commonality. For example, for the users included in multiple business events with approval results of passing but performance results of failing, it is found that the users in these business events are all associated with a specific user or a specific event. Then, the specific user can be determined as a risk user, or the specific event can be determined as a risk event, so that in the subsequent approval, the approval application of the user associated with the specific user or the specific event will be reviewed in detail.
[0058] For ease of understanding, the following uses a specific example to describe in detail the specific implementation details of the business backtracking method based on the graph model in this application:
[0059] In some related technologies, backtracking is performed by manually reconstructing the graph. For example, if you need to backtrack the graph of a certain day one year ago, you need to find the historical data of that day that constitutes the graph, and then build a new graph by initializing the graph data. Then, analysis applications are performed based on the new graph, such as redeveloping variables, community discovery and exploration, etc. If you want to backtrack data for multiple days, you need to repeat the above steps multiple times. The entire cycle takes a very long time. For example, if you want to backtrack 45 days of data, you need to repeat the graph construction 45 times. The graph computing throughput is 45 times that of daily graph computing, and tens of billions of points and edges are continuously constructed. The overall backtracking cycle is more than 40 days.
[0060] It can be seen that in the relevant technology, it is necessary to build a full graph data table for each day included in the backtracking period and generate a full graph model. However, the amount of full data is huge and the processing process is time-consuming. The construction and calculation costs involved in backtracking a subgraph are as follows: Assuming that the full network data volume contains 400 million vertices, 600 million edges, and 3 billion attributes, the total storage is about 300G (and increases over time), the graph construction time is more than 6 hours, the graph backtracking calculation time is more than 2 hours, and the total time to backtrack one day's data sample is more than 10 hours.
[0061] It can be seen that the relevant technology has at least the following defects: On the one hand, in the step of preparing graph data at a certain point in time, it is necessary to pull data snapshots according to the time window, and it is necessary to pull the full amount of data before the day every day, and the amount of data will increase over time. On the other hand, in the step of building the graph, the construction of the full amount of data is very time-consuming: first, extract the data from the two-dimensional table of the data warehouse into a two-dimensional table structure, and then import it from the two-dimensional table structure to the graph database. The fastest way to import is to extract the data from a csv file, and use the initialization load method to load and convert it into a graph database data file. This process requires stopping the graph database service, clearing the old data, and then loading the full amount of new data. If there are 400 million vertices and 1 billion relationships, this process will take several hours.
[0062] In order to solve the above problems, in this example, there is no need to build full data for each time unit. It is only necessary to build full data once at the start time of the backtracking. The subsequent time units can be backtracked directly through incremental data, which greatly reduces the time consumption of graph model construction and significantly reduces the amount of data to be processed, improving processing efficiency. In the process of graph backtracking, the most time-consuming part is the preparation of full data every day and the conversion of full data every day into graph data. This process requires downtime and operation and maintenance access. Therefore, this example compresses the time of each link of the composition and automates the iterative calculation, thereby greatly improving the backtracking efficiency.
[0063] Among them, Figure 2As shown in the figure, this example specifically includes the following steps:
[0064] Step S201: define the graph model framework.
[0065] Among them, to build a graph, you first need to define which "vertices" and "relationships" are in the graph, and this definition often requires manual analysis and sorting based on historical data assets to explore, analyze and organize entities and determine the associations. This example automatically implements this kind of manual analysis and sorting work through the metadata definition function. That is: pre-generate the metadata overview of all original data tables. Based on the metadata overview, determine the vertices, relationships, etc., and thus complete the definition of the graph model framework. During the definition process, it can be described based on a common language (Hive SQL). This language description can both express the graph model framework and execute the common language to generate graph structured data.
[0066] The full picture of metadata is represented by a metadata information list provided by the big data platform, which is used to display information such as libraries, tables, fields, data sources, and life cycles in asset data. The metadata definition of the entire graph is completed through the description information of the SQL language and the definition of additional information of the fields parsed by SQL. Generally, a graph cannot be determined only through SQL. Because a graph must have vertices, vertices need to have unique index IDs and various attributes of vertices, and the graph must also have a relationship between the starting vertex and the ending vertex, and there are also some attributes on the relationship. Therefore, in this example, the SQL language needs to be adjusted to describe how vertices and relationships are determined:
[0067] a. Vertex determination: Through the description of HIVE SQL, all field information can be parsed and extracted from the SQL statement. A certain field can be manually specified as the unique index of the vertex, and other fields can be used as the attributes of the entity vertex.
[0068] b. Determination of relationships: After defining multiple vertices, the relationships can be determined based on certain events generated between the vertices. This relationship is also described through HIVE SQL. The description language must define the necessary attributes of the graph structure, including START_NODE (starting vertex), END_NODE (ending vertex), REL_TYPE (relationship between vertices) and other elements.
[0069] Step S202: construct a graph model based on the graph model framework.
[0070] Based on the graph model framework defined above, the graph model is constructed. The metadata defined above is both a graph definition description and a general description language for building graphs. Through the build engine function, the build syntax is sent to the big data platform to build graph data, and graph data can be generated. Based on the metadata information of the graph and the selected build time window, the build engine automatically generates HIVE SQL / Spark SQL scripts for building the full graph and daily incremental graphs. The big data platform provides underlying data distributed storage and distributed computing capabilities. The HIVE SQL / Spark SQL scripts generated by the build engine calculate the full graph data and incremental graph data through the distributed computing of the big data platform and store them in the form of two-dimensional tables. During backtracking, the backtracking engine interacts with the generated two-dimensional table data and enters the graph database to become real graph structure data.
[0071] Step S203: Perform backtracking processing based on the graph model.
[0072] Backtracking is performed based on the constructed graph model. The backtracking method in the related art is to build the full amount of graph data on a daily basis. This example implements graph backtracking based on a combination of full and incremental data, specifically including the following processes:
[0073] a. Initialize and build the full data of the earliest time point tn-1 days of the backtracking. Where t is the current date, n is the backtracking period, and if the backtracking period is 30 days, then tn-1 days is the data of 31 days before the current date.
[0074] b. Calculate the data samples of day tn. The data samples of day tn are the samples corresponding to the business events of the 30 days before the current date. The data samples of day tn are back-tracked according to the full graph model corresponding to the full data of day tn-1.
[0075] c. Simulate the entry of real-time data, replay the data of day tn for data writing, and obtain the full graph of day tn. Among them, the real-time data is the data operation information of day tn recorded in the incremental graph data table corresponding to day tn. Based on the full graph model of day tn-1, according to the data operation information of day tn, the full graph model of day tn can be obtained.
[0076] d. Complete the back-calculation of samples corresponding to the business events on day t-n+1 based on the full graph model on day tn.
[0077] en=n+1 Repeat the above steps c and d to implement the subsequent daily backtracking until the sample backtracking calculation of t-1 is completed.
[0078] For example: suppose you need to look back 30 days of data.
[0079] First, construct the full data of day t-31 (400 million vertices, 1 billion edges). Then, calculate the sample of day t-30 and store the result. Next, replay the incremental data of day t-30 (1 million vertices, 6 million edges), write the incremental data, and get the full data of day t-30 (401 million vertices, 1 billion 6 million edges). Then, calculate the sample of day t-29 and store the result. Repeat the above process until the sample calculation of day t-1 is completed.
[0080] In summary, this example has at least the following advantages:
[0081] First, regarding the definition process of the graph model framework: the traditional offline manual sorting and design are converted to platform tool definition, unified management of entity and relationship logic definitions and gradual sedimentation into stable logic for easy reuse, which improves design reusability and the graph definition efficiency is expected to increase by 30%.
[0082] Second, regarding the process of graph model construction: the traditional manual customized development for each network model is transformed into a standardized automated graph construction function based on model metadata. There is no need to customize the graph construction every time, and the graph efficiency is improved by 50%.
[0083] Third, regarding the graph backtracking process: the traditional manual daily graph backtracking is converted to automatic backtracking of variables through the backtracking engine. During the backtracking process, only the data construction of the earliest day needs to be initialized (the most time-consuming one). Incremental data is used to simulate data updates every day (small data volume and less time consumption). After the incremental update is completed, the samples of the day are calculated again. The steps are repeated until the backtracking is completed. Through test comparison, the backtracking verification efficiency is improved by about 40 times.
[0084] It can be understood that the above-mentioned various method embodiments mentioned in the present disclosure can be combined with each other to form a combined embodiment without violating the principle logic. Due to space limitations, the present disclosure will not repeat them. It can be understood by those skilled in the art that in the above-mentioned method of the specific implementation method, the specific execution order of each step should be determined according to its function and possible internal logic.
[0085] In addition, the present disclosure also provides a business backtracking device, an electronic device, and a computer-readable storage medium based on a graph model, all of which can be used to implement any of the business backtracking methods based on a graph model provided by the present disclosure. The corresponding technical solutions and descriptions are referred to in the corresponding records of the method part and will not be repeated here.
[0086] Figure 3 A block diagram of a business backtracking device based on a graph model is provided in an embodiment of the present disclosure.
[0087] Reference Figure 3 The embodiment of the present disclosure provides a service backtracking device 30 based on a graph model, and the service backtracking device 30 based on a graph model includes:
[0088] The first model generation unit 31 is adapted to determine a backtracking time unit corresponding to a business backtracking period, obtain a full-quantity graph data table corresponding to the backtracking time unit based on a predefined graph model framework, and generate a full-quantity graph model corresponding to the backtracking time unit according to the full-quantity graph data table;
[0089] A first backtracking unit 32 is adapted to obtain a business event corresponding to a first time unit included in the business backtracking cycle, and backtrack the business event corresponding to the first time unit according to a full graph model corresponding to the backtracking time unit; the backtracking time unit is earlier than the first time unit;
[0090] The second model generating unit 33 is adapted to obtain, based on the graph model framework, an incremental graph data table corresponding to a first time unit included in the business traceback cycle, and generate a full graph model corresponding to the first time unit according to the incremental graph data table corresponding to the first time unit;
[0091] The second backtracking unit 34 is suitable for obtaining the business events corresponding to the second time unit included in the business backtracking cycle, and backtracking the business events corresponding to the second time unit according to the full graph model corresponding to the first time unit; wherein the second time unit is later than the first time unit.
[0092] In an optional implementation, when the first time unit is the first time unit in the business backtracking cycle, the backtracking time unit is adjacent to the first time unit and earlier than the first time unit; and the second model generating unit is specifically adapted to: based on the full amount graph model corresponding to the backtracking time unit, generate the full amount graph model corresponding to the first time unit according to the incremental graph data table corresponding to the first time unit;
[0093] In the case that the first time unit is not the first time unit in the business backtracking cycle, the second model generation unit is specifically adapted to: determine a forward time unit that is adjacent to and earlier than the first time unit, and based on the full graph model corresponding to the forward time unit, generate a full graph model corresponding to the first time unit according to the incremental graph data table corresponding to the first time unit.
[0094] In an optional implementation, the device further includes:
[0095] A framework definition module for defining a graph model framework, wherein the framework definition module is specifically suitable for:
[0096] Obtaining metadata information corresponding to a plurality of original data tables stored in a database;
[0097] Determine, according to the metadata information, a plurality of target fields for creating a graph model and a field association relationship between the plurality of target fields;
[0098] A corresponding graph model framework is defined based on the multiple target fields and the field association relationships between the multiple target fields; wherein the multiple target fields correspond to multiple vertices in the graph model framework, and the field association relationships between the multiple target fields correspond to edges between vertices.
[0099] In an optional implementation, the framework definition module is further adapted to:
[0100] Through the first type of query statements, query the data status information of the graph model framework corresponding to the backtracking time unit;
[0101] Generate a full graph data table corresponding to the backtracking time unit according to the query result of the data status information;
[0102] The first type of query statement is used to query the data status corresponding to the end time point of the backtracking time unit.
[0103] In an optional implementation, the framework definition module is further adapted to:
[0104] Through the second type of query statements, query the data operation information of each time unit included in the business backtracking cycle corresponding to the graph model framework, and generate an incremental graph data table corresponding to each time unit included in the business backtracking cycle according to the query result of the data operation information;
[0105] The second type of query statements are used to query data operations triggered within the unit duration of each time unit.
[0106] In an optional implementation manner, the second model generating unit is specifically adapted to:
[0107] Obtain an incremental graph data table corresponding to a first time unit included in the business backtracking cycle;
[0108] According to the incremental graph data table corresponding to the first time unit, obtaining the data operation triggered within the unit duration of the first time unit;
[0109] According to the data operation triggered within the unit duration of the first time unit, a full graph model corresponding to the first time unit is obtained.
[0110] In an optional implementation, the business event includes: an event subject and an event result;
[0111] Then the second tracing back unit is specifically adapted to:
[0112] Determine, according to the full graph model corresponding to the first time unit, a target vertex corresponding to the event subject of the business event corresponding to the second time unit, and an associated vertex having an associated relationship with the target vertex;
[0113] According to the associated operation event corresponding to the associated vertex, a backtracking process is performed on the business event corresponding to the second time unit.
[0114] Figure 4 A block diagram of an electronic device provided in an embodiment of the present disclosure.
[0115] Reference Figure 4 An embodiment of the present disclosure provides an electronic device, which includes: at least one processor 501; at least one memory 502, and one or more I / O interfaces 503, which are connected between the processor 501 and the memory 502; wherein the memory 502 stores one or more computer programs that can be executed by at least one processor 501, and the one or more computer programs are executed by at least one processor 501 in accordance with the above-mentioned business backtracing method based on the graph model.
[0116] The present disclosure also provides a computer-readable storage medium on which a computer program is stored, wherein the computer program implements the above-mentioned business backtracking method based on the graph model when executed by a processor / processing core. The computer-readable storage medium may be a volatile or non-volatile computer-readable storage medium.
[0117] The embodiments of the present disclosure also provide a computer program product, including a computer-readable code, or a non-volatile computer-readable storage medium carrying the computer-readable code. When the computer-readable code runs in a processor of an electronic device, the processor in the electronic device executes the above-mentioned business backtracing method based on the graph model.
[0118] It will be appreciated by those skilled in the art that all or some of the steps, systems, and functional modules / units in the methods disclosed above may be implemented as software, firmware, hardware, and appropriate combinations thereof. In a hardware implementation, the division between the functional modules / units mentioned in the above description does not necessarily correspond to the division of physical components; for example, a physical component may have multiple functions, or a function or step may be performed by several physical components in cooperation. Some or all physical components may be implemented as software executed by a processor, such as a central processing unit, a digital signal processor, or a microprocessor, or may be implemented as hardware, or may be implemented as an integrated circuit, such as an application-specific integrated circuit. Such software may be distributed on a computer-readable storage medium, which may include a computer storage medium (or a non-transitory medium) and a communication medium (or a temporary medium).
[0119] As is known to those of ordinary skill in the art, the term computer storage media includes volatile and nonvolatile, removable and non-removable media implemented in any method or technology for storing information (such as computer-readable program instructions, data structures, program modules or other data). Computer storage media include, but are not limited to, random access memory (RAM), read-only memory (ROM), erasable programmable read-only memory (EPROM), static random access memory (SRAM), flash memory or other memory technology, portable compact disk read-only memory (CD-ROM), digital versatile disk (DVD) or other optical disk storage, magnetic cassettes, magnetic tapes, magnetic disk storage or other magnetic storage devices, or any other medium that can be used to store desired information and can be accessed by a computer. In addition, it is known to those of ordinary skill in the art that communication media typically contain computer-readable program instructions, data structures, program modules or other data in a modulated data signal such as a carrier wave or other transmission mechanism, and may include any information delivery medium.
[0120] The computer-readable program instructions described herein can be downloaded from a computer-readable storage medium to each computing / processing device, or downloaded to an external computer or external storage device via a network, such as the Internet, a local area network, a wide area network, and / or a wireless network. The network can include copper transmission cables, optical fiber transmissions, wireless transmissions, routers, firewalls, switches, gateway computers, and / or edge servers. The network adapter card or network interface in each computing / processing device receives the computer-readable program instructions from the network and forwards the computer-readable program instructions for storage in the computer-readable storage medium in each computing / processing device.
[0121] The computer program instructions for performing the operation of the present disclosure may be assembly instructions, instruction set architecture (ISA) instructions, machine instructions, machine-related instructions, microcode, firmware instructions, state setting data, or source code or object code written in any combination of one or more programming languages, including object-oriented programming languages, such as Smalltalk, C++, etc., and conventional procedural programming languages, such as "C" language or similar programming languages. Computer-readable program instructions may be executed completely on a user's computer, partially on a user's computer, as an independent software package, partially on a user's computer, partially on a remote computer, or completely on a remote computer or server. In the case of a remote computer, the remote computer may be connected to the user's computer via any type of network, including a local area network (LAN) or a wide area network (WAN), or may be connected to an external computer (e.g., using an Internet service provider to connect via the Internet). In some embodiments, an electronic circuit, such as a programmable logic circuit, a field programmable gate array (FPGA), or a programmable logic array (PLA), may be customized by utilizing the state information of the computer-readable program instructions, and the electronic circuit may execute the computer-readable program instructions, thereby realizing various aspects of the present disclosure.
[0122] The computer program product described herein may be implemented in hardware, software, or a combination thereof. In one optional embodiment, the computer program product is embodied as a computer storage medium, and in another optional embodiment, the computer program product is embodied as a software product, such as a software development kit (SDK), etc.
[0123] Various aspects of the present disclosure are described herein with reference to the flowcharts and / or block diagrams of the methods, devices (systems) and computer program products according to the embodiments of the present disclosure. It should be understood that each box in the flowchart and / or block diagram and the combination of each box in the flowchart and / or block diagram can be implemented by computer-readable program instructions.
[0124] These computer-readable program instructions can be provided to a processor of a general-purpose computer, a special-purpose computer, or other programmable data processing device, thereby producing a machine, so that when these instructions are executed by the processor of the computer or other programmable data processing device, a device that implements the functions / actions specified in one or more boxes in the flowchart and / or block diagram is generated. These computer-readable program instructions can also be stored in a computer-readable storage medium, and these instructions cause the computer, programmable data processing device, and / or other equipment to work in a specific manner, so that the computer-readable medium storing the instructions includes a manufactured product, which includes instructions for implementing various aspects of the functions / actions specified in one or more boxes in the flowchart and / or block diagram.
[0125] Computer-readable program instructions may also be loaded onto a computer, other programmable data processing apparatus, or other device so that a series of operating steps are performed on the computer, other programmable data processing apparatus, or other device to produce a computer-implemented process, thereby causing the instructions executed on the computer, other programmable data processing apparatus, or other device to implement the functions / actions specified in one or more boxes in the flowchart and / or block diagram.
[0126] The flow chart and block diagram in the accompanying drawings show the possible architecture, function and operation of the system, method and computer program product according to multiple embodiments of the present disclosure. In this regard, each square box in the flow chart or block diagram can represent a part of a module, program segment or instruction, and a part of the module, program segment or instruction includes one or more executable instructions for realizing the specified logical function. In some alternative implementations, the function marked in the square box can also occur in a sequence different from that marked in the accompanying drawings. For example, two continuous square boxes can actually be executed substantially in parallel, and they can sometimes be executed in reverse order, depending on the functions involved. It should also be noted that each square box in the block diagram and / or flow chart, and the combination of the square boxes in the block diagram and / or flow chart can be implemented with a dedicated hardware-based system that performs the specified function or action, or can be implemented with a combination of special hardware and computer instructions.
[0127] Example embodiments have been disclosed herein, and although specific terms are employed, they are used and should be interpreted only in a general illustrative sense and not for limiting purposes. In some instances, it will be apparent to those skilled in the art that, unless otherwise expressly noted, features, characteristics, and / or elements described in conjunction with a particular embodiment may be used alone or in combination with features, characteristics, and / or elements described in conjunction with other embodiments. Therefore, those skilled in the art will appreciate that various changes in form and detail may be made without departing from the scope of the present disclosure as set forth in the appended claims.
Claims
1. A business backtracking method, characterized in that: include: Determine a backtracking time unit corresponding to a business backtracking cycle, obtain a full graph data table corresponding to the backtracking time unit based on a predefined graph model framework, and generate a full graph model corresponding to the backtracking time unit according to the full graph data table; Obtaining a business event corresponding to a first time unit included in the business backtracking cycle, and backtracking the business event corresponding to the first time unit according to the full graph model corresponding to the backtracking time unit; the backtracking time unit is earlier than the first time unit; Based on the graph model framework, an incremental graph data table corresponding to a first time unit included in the business backtracking cycle is obtained, and a full graph model corresponding to the first time unit is generated according to the incremental graph data table corresponding to the first time unit; Obtain the business event corresponding to the second time unit included in the business backtracking cycle, and perform backtracking processing on the business event corresponding to the second time unit according to the full graph model corresponding to the first time unit; wherein the second time unit is later than the first time unit.
2. The method according to claim 1, characterized in that In the case where the first time unit is the first time unit in the service traceback cycle, the traceback time unit is adjacent to the first time unit and is earlier than the first time unit; Furthermore, generating the full graph model corresponding to the first time unit according to the incremental graph data table corresponding to the first time unit includes: generating the full graph model corresponding to the first time unit according to the incremental graph data table corresponding to the first time unit on the basis of the full graph model corresponding to the retrospective time unit; In the case that the first time unit is not the first time unit in the business backtracking cycle, generating the full graph model corresponding to the first time unit according to the incremental graph data table corresponding to the first time unit includes: determining a forward time unit adjacent to the first time unit and earlier than the first time unit, and generating the full graph model corresponding to the first time unit according to the incremental graph data table corresponding to the first time unit on the basis of the full graph model corresponding to the forward time unit.
3. The method according to claim 2, characterized in that The graph model framework is defined in the following way: Obtaining metadata information corresponding to a plurality of original data tables stored in a database; Determine, according to the metadata information, a plurality of target fields for creating a graph model and a field association relationship between the plurality of target fields; A corresponding graph model framework is defined based on the multiple target fields and the field association relationships between the multiple target fields; wherein the multiple target fields correspond to multiple vertices in the graph model framework, and the field association relationships between the multiple target fields correspond to edges between vertices.
4. The method according to claim 3, characterized in that After the corresponding graph model framework is generated, the following steps are also included: Through the first type of query statements, query the data status information of the graph model framework corresponding to the backtracking time unit; Generate a full graph data table corresponding to the backtracking time unit according to the query result of the data status information; The first type of query statement is used to query the data status corresponding to the end time point of the backtracking time unit.
5. The method according to claim 4, characterized in that After generating the full graph data table corresponding to the traceback time unit according to the query result of the data status information, the method further includes: Through the second type of query statements, query the data operation information of each time unit included in the business backtracking cycle corresponding to the graph model framework, and generate an incremental graph data table corresponding to each time unit included in the business backtracking cycle according to the query result of the data operation information; The second type of query statements are used to query data operations triggered within the unit duration of each time unit.
6. The method according to claim 5, characterized in that The obtaining of the incremental graph data table corresponding to the first time unit included in the business traceback cycle, and generating the full graph model corresponding to the first time unit according to the incremental graph data table corresponding to the first time unit includes: Obtain an incremental graph data table corresponding to a first time unit included in the business backtracking cycle; According to the incremental graph data table corresponding to the first time unit, obtaining the data operation triggered within the unit duration of the first time unit; According to the data operation triggered within the unit duration of the first time unit, a full graph model corresponding to the first time unit is obtained.
7. The method according to any one of claims 1 to 6, characterized in that: The business event includes: event subject and event result; Then, the backtracking of the business event corresponding to the second time unit according to the full graph model corresponding to the first time unit includes: Determine, according to the full graph model corresponding to the first time unit, a target vertex corresponding to the event subject of the business event corresponding to the second time unit, and an associated vertex having an associated relationship with the target vertex; According to the associated operation event corresponding to the associated vertex, a backtracking process is performed on the business event corresponding to the second time unit.
8. A business backtracking device based on a graph model, characterized in that: include: A first model generation unit is adapted to determine a backtracking time unit corresponding to a business backtracking period, obtain a full-quantity graph data table corresponding to the backtracking time unit based on a predefined graph model framework, and generate a full-quantity graph model corresponding to the backtracking time unit according to the full-quantity graph data table; A first backtracking unit is adapted to obtain a business event corresponding to a first time unit included in the business backtracking cycle, and backtrack the business event corresponding to the first time unit according to a full graph model corresponding to the backtracking time unit; the backtracking time unit is earlier than the first time unit; A second model generating unit is adapted to obtain, based on the graph model framework, an incremental graph data table corresponding to a first time unit included in the business traceback cycle, and generate a full graph model corresponding to the first time unit according to the incremental graph data table corresponding to the first time unit; The second backtracking unit is suitable for obtaining the business events corresponding to the second time unit included in the business backtracking cycle, and backtracking the business events corresponding to the second time unit according to the full graph model corresponding to the first time unit; wherein the second time unit is later than the first time unit.
9. An electronic device, characterized in that: include: at least one processor; as well as a memory communicatively connected to the at least one processor; wherein, The memory stores one or more computer programs executable by the at least one processor, and the one or more computer programs are executed by the at least one processor to enable the at least one processor to perform the method according to any one of claims 1 to 7.
10. A computer-readable storage medium having a computer program stored thereon, characterized in that: When the computer program is executed by a processor, the computer program implements the method according to any one of claims 1 to 7.
