A method, device and storage medium for clearing redundant business data

By constructing a reference relationship tree and modifying the reference relationship information, redundant data in the business database is identified and deleted, which solves the problem of redundant data occupying storage space and affecting business processes in the existing technology, and achieves accurate positioning and delete.

CN112131211BActive Publication Date: 2024-10-18BEIKE TECH CO LTD
View PDF 4 Cites 0 Cited by

Patent Information

Application Number
CN202010976427.0
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2020-09-15
Publication Date
2024-10-18
Estimated Expiration
2040-09-15

AI Technical Summary

Technical Problem

Existing technology is difficult to effectively identify and remove redundant data with strong coupling between business data, causing redundant data to occupy database storage space and affect business processes.

Method used

By constructing a reference relationship tree, the reference relationship information of the business data is modified according to the upper-level business requirements, the business data that is out of association is determined to be redundant data, and it is deleted from the business database.

Benefits of technology

It achieves accurate positioning and deletion of redundant data, avoids redundant data occupying storage space, and ensures the smooth progress of business processes.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN112131211B_ABST
    Figure CN112131211B_ABST
Patent Text Reader

Abstract

The present application discloses a method, device and storage medium for clearing redundant business data, specifically comprising: configuring a platform to obtain business data from a business database; performing configuration operations on the obtained business data according to upper-level business requirements to modify the reference relationship information of the business data; determining business data that is out of association with the reference relationship tree according to the modified reference relationship information, and treating the out-of-association business data as redundant data; and configuring the platform to instruct the business database to delete the redundant data. The application of the embodiment of the present application can accurately locate redundant data, avoid wasting business database storage resources, and ensure that the business process is not disturbed by redundant business data and proceeds smoothly.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present application relates to the field of computer technology, and in particular to a method for clearing redundant business data, a device for clearing redundant business data, a computer-readable storage medium, and an electronic device. Background Art

[0002] With the development of computer and Internet technology, more and more businesses are conducted online. In online business, due to the large amount of business data, a large amount of business data usually needs to be stored in the business database. The business system obtains business data from the business database and conducts various businesses based on the information provided by the business data. However, during the business process, some business data may become unnecessary redundant data and become dirty data. If these redundant data are not cleaned up, not only will the database storage space be occupied, but if the business operation is misused, it may also affect the smooth progress of the business.

[0003] In the prior art, complex mathematical models are usually constructed, and data mining techniques are used to determine and remove redundant data. However, in business scenarios where the coupling between business data is very strong, it is difficult to establish an effective mathematical model to accurately locate and remove redundant data. Summary of the invention

[0004] In view of the above-mentioned prior art, an embodiment of the present invention discloses a method for clearing redundant business data, which can avoid redundant occupation of database storage space and impact on business, and achieve the purpose of accurately locating and deleting redundant data.

[0005] The present application embodiment provides a method for clearing redundant service data, the method comprising:

[0006] The configuration platform obtains business data from a business database, each business data in the business database is provided with reference relationship information, the business data is a condition for driving the operation of the business process, the reference relationship information indicates the association relationship between different business data, and all business data in the business database are constructed into a reference relationship tree by the reference relationship information;

[0007] Performing configuration operations on the acquired business data according to upper-layer business requirements to modify reference relationship information of the business data;

[0008] The configuration platform determines the business data that is out of association with the reference relationship tree according to the modified reference relationship information, and regards the business data that is out of association as redundant data;

[0009] The configuration platform instructs the business database to delete the redundant data.

[0010] Further,

[0011] The reference relationship information includes the number of times cited and the business data of the citing party;

[0012] The step of performing configuration operations on the acquired business data according to upper-layer business requirements to modify the reference relationship information between the business data includes:

[0013] The business data that needs to be configured is used as the first business data, and the business data referenced by the first business data is used as the second business data, and the first business data and the second business data already have an association relationship;

[0014] When the upper-layer service requirement is to delete the reference of the first service data to the second service data, deleting the reference of the second service data in the configuration operation of the first service data;

[0015] In the reference relationship information of the second business data, the number of times the reference is made is reduced by 1;

[0016] In the reference relationship information of the second business data, the first business data is deleted from the referenced business data.

[0017] Further,

[0018] The reference relationship information includes the number of times it is referenced and the service data of the referencer; the step of performing configuration operations on the obtained service data according to the upper-layer service requirements to modify the reference relationship information between the service data further includes:

[0019] The business data that needs to be configured is used as the first business data, and the business data referenced by the first business data is used as the second business data, and there is no association relationship between the first business data and the second business data;

[0020] When the upper-layer service requirement is to establish a reference of the first service data to the second service data, a reference to the second service data is created in a configuration operation of the first service data;

[0021] In the reference relationship information of the second business data, the number of times the reference is made is increased by 1;

[0022] In the reference relationship information of the second business data, the first business data is added to the referencing party business data.

[0023] Further,

[0024] The reference relationship information includes the number of references, the business data of the referencer, and the reference type, wherein the reference type includes strong reference and weak reference, which are used to indicate the degree of association of the business data;

[0025] The step of performing configuration operations on the acquired business data according to upper-layer business requirements to modify the reference relationship information between the business data further includes:

[0026] The business data that needs to be configured is used as the first business data, and the business data referenced by the first business data is used as the second business data, and the first business data and the second business data already have an association relationship;

[0027] When the upper-level business requirement is to change the reference type of the first business data to the second business data, if the degree of association between the first business data and the second business data is a strong reference, then in the reference relationship information of the second business data, the reference type is changed to a weak reference; if the degree of association between the first business data and the second business data is a weak reference, then in the reference relationship information of the second business data, the reference type is changed to a strong reference.

[0028] Further,

[0029] The step of the configuration platform determining the business data that is disconnected from the reference relationship tree according to the modified reference relationship information includes:

[0030] A leaf node of the reference relationship tree is used as the current node, each node in the reference relationship tree includes the business data and reference relationship information, and the referencing party business data is the parent node and the referenced party business data is the child node;

[0031] Determine whether the number of times the current node is referenced is 0. If so, determine that the business data corresponding to the current node is no longer associated with the reference relationship tree, and jump to the step of taking the next leaf node as the new current node;

[0032] Determine whether the number of times the current node is referenced is greater than 0, and whether the reference type in the reference relationship information of the current node has a strong reference. If so, determine that the business data corresponding to the current node has an association relationship with the reference relationship tree, and jump to the step of taking the next leaf node as the new current node;

[0033] Determine whether the number of times the current node has been referenced is greater than 0, and the reference types in the reference relationship information of the current node are all weak references. If so, backtrack in the reference relationship tree toward the root node for each referenced business data in the current node. If the reference types in the reference relationship information of all ancestor nodes experienced during the backtracking process do not contain strong references, determine that the business data corresponding to the current node and all ancestor nodes experienced during the backtracking process are all disconnected from the reference relationship tree; if the reference types in the reference relationship information of the ancestor nodes experienced during the backtracking process contain strong references, determine that the business data corresponding to the current node and all ancestor nodes experienced during the backtracking process are associated with the reference relationship tree;

[0034] The next leaf node is used as the new current node, and the step of determining whether the number of times the current node is referenced is 0 is returned and repeated until all leaf nodes in the reference relationship tree are processed.

[0035] The embodiment of the present invention also discloses a device for clearing redundant business data, which can avoid redundant occupation of database storage space and influence on business, and achieve the purpose of accurately locating and deleting redundant data.

[0036] An embodiment of the present application provides a device for clearing redundant service data, the device comprising:

[0037] A data acquisition unit is used to acquire business data from a business database, each business data in the business database is provided with reference relationship information, the business data is a condition for driving the operation of a business process, the reference relationship information indicates an association relationship between different business data, and all business data in the business database are constructed into a reference relationship tree by the reference relationship information;

[0038] A configuration operation unit, used to perform configuration operations on the acquired business data according to upper-layer business requirements to modify reference relationship information of the business data;

[0039] A redundant data determining unit, configured to determine the business data that is out of association with the reference relationship tree according to the modified reference relationship information, and use the business data that is out of association as redundant data;

[0040] The database operation unit instructs the business database to delete the redundant data.

[0041] Further,

[0042] The configuration operation unit includes a reference deletion unit;

[0043] The reference deletion unit is used to use the business data that needs to be configured as the first business data, and the business data referenced by the first business data as the second business data, where the first business data and the second business data already have an associated relationship; delete the reference to the second business data in the configuration operation of the first business data; reduce the number of references by 1 in the reference relationship information of the second business data; and delete the first business data from the referencing business data in the reference relationship information of the second business data, where the reference relationship information includes the number of references and the referencing business data.

[0044] Further,

[0045] The configuration operation unit also includes an adding reference unit;

[0046] The reference adding unit is used to take the business data that needs to be configured as the first business data, and the business data referenced by the first business data as the second business data, and there is no association relationship between the first business data and the second business data; create a reference to the second business data in the configuration operation of the first business data; increase the number of references by 1 in the reference relationship information of the second business data; add the first business data to the referencing party business data in the reference relationship information of the second business data; the reference relationship information includes the number of references and the referencing party business data.

[0047] Further,

[0048] The configuration operation unit also includes a modification reference unit;

[0049] The reference modification unit is used to use the business data that needs to be configured as the first business data, and the business data referenced by the first business data as the second business data, and the first business data and the second business data already have an association relationship; if the degree of association between the first business data and the second business data is a strong reference, then in the reference relationship information of the second business data, the reference type is changed to a weak reference; if the degree of association between the first business data and the second business data is a weak reference, then in the reference relationship information of the second business data, the reference type is changed to a strong reference; the reference relationship information includes the number of references, the referencing business data, and the reference type, and the reference type includes a strong reference and a weak reference, which is used to indicate the degree of association of the business data.

[0050] Further,

[0051] The redundant data determination unit includes a current node determination unit, a first determination unit, a second determination unit and a third determination unit;

[0052] The current node determination unit is used to take a leaf node of the reference relationship tree as the current node, each node in the reference relationship tree includes the business data and reference relationship information, and the referencing party business data is the parent node and the referenced party business data is the child node; and is also used to take the next leaf node as the new current node until all leaf nodes in the reference relationship tree are processed;

[0053] The first determination unit is used to determine whether the number of times the current node is referenced is 0, and if so, determine that the business data corresponding to the current node is out of association with the reference relationship tree, and trigger the current node determination unit;

[0054] The second determination unit is used to determine whether the number of times the current node is referenced is greater than 0, and whether the reference type in the reference relationship information of the current node has a strong reference, and if so, determine that the business data corresponding to the current node has an association relationship with the reference relationship tree, and trigger the current node determination unit;

[0055] The third determination unit is used to determine whether the number of times the current node has been referenced is greater than 0, and whether the reference types in the reference relationship information of the current node are all weak references. If so, then for each referenced business data in the current node, backtracking is performed in the reference relationship tree toward the root node. If the reference types in the reference relationship information of all ancestor nodes experienced during the backtracking process do not contain strong references, it is determined that the business data corresponding to the current node and all ancestor nodes experienced during the backtracking process are disconnected from the reference relationship tree; if the reference types in the reference relationship information of the ancestor nodes experienced during the backtracking process contain strong references, it is determined that the business data corresponding to the current node and all ancestor nodes experienced during the backtracking process are associated with the reference relationship tree, and the current node determination unit is triggered.

[0056] The embodiment of the present application further proposes a computer-readable storage medium on which computer instructions are stored. When the instructions are executed by a processor, the above-mentioned method for clearing redundant business data can be implemented.

[0057] The embodiment of the present application also provides an electronic device, which at least includes the above-mentioned computer-readable storage medium and also includes a processor;

[0058] The processor is used to read the executable instructions from the computer-readable storage medium and execute the instructions to implement the above-mentioned method for clearing redundant business data.

[0059] In summary, the embodiments of the present application disclose a method, device and storage medium for clearing redundant business data, wherein the configuration platform establishes reference relationship information for each business data, and uses the reference relationship information to construct a reference relationship tree for all business data. After the configuration platform performs configuration operations on the acquired business data according to the upper-level business requirements to modify the reference relationship information of the business data, the business data that is out of association with the reference relationship tree can be determined based on the modified reference relationship information, and the business data that is out of association is used as redundant data. Therefore, the application of the embodiments of the present application can accurately locate redundant data, avoid wasting storage resources of the business database, and ensure that the business process is not disturbed by redundant business data and proceeds smoothly. BRIEF DESCRIPTION OF THE DRAWINGS

[0060] In order to more clearly illustrate the technical solutions in the embodiments of the present application, the drawings required for use in the description of the embodiments will be briefly introduced below. Obviously, the drawings described below are only some embodiments of the present application. For ordinary technicians in this field, other drawings can be obtained based on these drawings without paying creative labor.

[0061] Figure 1 It is an application scenario diagram of an embodiment of the present application.

[0062] Figure 2 It is a flow chart of the first embodiment of the method of the present application.

[0063] Figure 3 This is example 1 of a reference relationship tree.

[0064] Figure 4 It is a flow chart of the second embodiment of the method of the present application.

[0065] Figure 5 This is example 2 of the reference relationship tree.

[0066] Figure 6 It is a flow chart of the third embodiment of the method of the present application.

[0067] Figure 7 This is example three of the reference relationship tree.

[0068] Figure 8 This is example 4 of the reference relationship tree.

[0069] Fig. 9 It is a flow chart of the fourth embodiment of the method of the present application.

[0070] Fig.10 This is a flow chart of Embodiment 5 of the method of the present application.

[0071] Fig.11 This is reference relationship tree example five.

[0072] Fig.12 This is the reference relationship tree example six.

[0073] Fig.13 It is a structural diagram of the first embodiment of the device of the present application.

[0074] Fig.14 It is a structural diagram of the second embodiment of the device of the present application.

[0075] Fig.15 It is a schematic diagram of the structure of an electronic device in an embodiment of the present application. DETAILED DESCRIPTION

[0076] The following will be combined with the drawings in the embodiments of the present application to clearly and completely describe the technical solutions in the embodiments of the present application. Obviously, the described embodiments are only part of the embodiments of the present application, not all of the embodiments. Based on the embodiments in the present application, all other embodiments obtained by ordinary technicians in this field without creative work are within the scope of protection of this application.

[0077] The terms "first", "second", "third", "fourth", etc. (if any) in the specification and claims of the present invention 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 interchangeable where appropriate, so that the embodiments of the present invention described herein can be implemented in an order other than those illustrated or described herein, for example. In addition, the terms "including" and "having" and any variations thereof are intended to cover non-exclusive inclusions. For example, a process, method, system, product or device that includes a series of steps or units is not necessarily limited to those steps or units that are clearly listed, but may include other steps or units that are not clearly listed or inherent to these processes, methods, products or devices.

[0078] The technical solution of the present invention is described in detail with specific embodiments below. The following specific embodiments can be combined with each other, and the same or similar concepts or processes may not be described in detail in some embodiments.

[0079] In the embodiment of the present application, all business data are constructed into a reference relationship tree using reference relationship information. All valid data in the business process are associated with the reference relationship tree, that is, each valid business data is a node in the reference relationship tree. If the business changes, the reference relationship information of the business data needs to be modified through configuration operations, and its association with the reference relationship tree will also be changed. Once the business data is separated from the reference relationship tree, it means that the business data becomes invalid business data, that is, redundant business data, which can be accurately located and deleted.

[0080] In order to better describe the embodiments of the present application, a specific embodiment is described in detail below. Figure 1 is an application scenario diagram of the embodiment of the present application. Figure 1 As shown, the scenario at least configures a platform 101 and a business database 102. Among them, the configuration platform 101 is used to configure business data, and the business database 102 is used to save business data. In actual applications, the operation of the business may be very complicated, and different processes are run with different conditions. If different business processes are developed for different conditions, it will be a great waste of manpower and material resources. To this end, a configuration platform can be set up, and different business data can be configured on the configuration platform 101. In this way, the same process framework can run different actual processes as long as different business data are configured. In other words, business data is the key to guiding the normal operation of the process. The process described here refers to the business process, and the business data refers to a series of conditions that drive the operation of the business process. It is easy to understand that if a business process needs to be changed, some business data originally configured for the business process will no longer be applicable and become redundant data. If these redundant data are not deleted in time, not only will the storage resources of the business database be wasted, but the normal operation of the business process may also be affected.

[0081] Figure 2 This is a flow chart of the first embodiment of the method for clearing redundant business data in this application. Figure 2 As shown, the method includes:

[0082] Step B1: The configuration platform 101 obtains business data from the business database 102. Each business data in the business database 102 is provided with reference relationship information, and the reference relationship information represents the association relationship between different business data. All business data in the business database 102 are constructed into a reference relationship tree by the reference relationship information.

[0083] The embodiment of the present application aims to remove redundant business data, that is, it is necessary to accurately locate redundant data from the existing business data and delete it. Therefore, the embodiment of the present application needs to first obtain business data from the business database 102. As mentioned above, the business data in the embodiment of the present application is a series of conditions that drive the operation of the business process, and its coupling relationship is very strong. There is an association relationship between the business data, so reference relationship information can be set for each business data to indicate its association relationship. For example: business data 1 references business data 2 and business data 3, business data 2 references business data 4 and business data 5, business data 3 references business data 5 and business data 6, and business data 4 and business data 5 both reference business data 7. The "reference" described in the embodiment of the present application is the specific implementation of the association relationship between business data. For example, business data 2 references business data 4 and business data 5, which indicates that the business process is running with business data 2 as the condition, and business data 4 and business data 5 are also required to participate. For another example, business data 3 references business data 5 and business data 6, which indicates that the business process is running with business data 3 as the condition, and business data 5 and business data 6 are also required to participate. Therefore, in actual applications, reference relationship information can be set for each business data to indicate the association relationship. For example, the reference relationship information of business data 5 is (reference count 2, business data 2, business data 3). Among them, reference count 2 means that business data 5 is referenced 2 times in total by business data 2 and business data 3. The reference relationship information of other business data is similar and will not be repeated here. Figure 3 This is a simple example of a reference relationship tree constructed from reference relationship information.

[0084] Step B2: performing configuration operations on the acquired business data according to upper-layer business requirements to modify reference relationship information of the business data.

[0085] In actual applications, business processes may change, that is, the conditions driving the business processes have changed. For example, the original business process requires the participation of business data 4 and business data 5 when running with business data 2 as the condition, but the changed business process no longer requires the participation of business data 5 when running with business data 2 as the condition. Then, the configuration platform 101 will reconfigure the business data according to the upper-level business needs, thereby modifying the reference relationship information of these businesses. In actual applications, the "configuration operation" can be operations such as "add", "edit", "modify", and "delete".

[0086] Step B3: the configuration platform 101 determines the business data that is disconnected from the reference relationship tree according to the modified reference relationship information, and regards the business data that is disconnected from the reference relationship tree as redundant data.

[0087] Since the reference relationship information of the business data has been modified, the business data that was originally associated with the reference relationship tree may no longer have an associated relationship. As mentioned above, the business data in the embodiment of the present application is a condition for driving the operation of the business process, is a strongly coupled relationship with an association, and a reference relationship tree is constructed using the reference relationship information. If some business data is no longer associated with the constructed reference relationship tree, that is, these business data that are out of the association relationship will no longer be able to be used to drive the business process, and can be determined as redundant data.

[0088] Step B4: the configuration platform 101 instructs the service database 102 to delete the redundant data.

[0089] In the embodiment of the present application, reference relationship information is set for each business data, and a reference relationship tree is constructed using the reference relationship information. When the business process changes and causes the relationship between the business data to occur, the reference relationship tree can be used to accurately locate the business data that has been separated from the relationship and use it as redundant data. Therefore, the application of the embodiment of the present application can accurately locate redundant data, avoid wasting business database storage resources, and ensure that the business process is not disturbed by redundant business data and proceeds smoothly.

[0090] In order to better illustrate the embodiment scheme of the present application, another method embodiment is described in detail below. In method embodiment 2, it is assumed that the reference relationship information includes at least the number of references and the referee business data. The number of references indicates the number of times a certain business data is referenced by the referee business data, that is, the number of the referee business data. This method embodiment also assumes that the business process has changed, and a certain business data will no longer reference another business data, that is, the upper-level business requirement is to delete the reference of a certain business data to another business data.

[0091] Figure 4 This is a flow chart of Embodiment 2 of the present application method. Figure 4 As shown, the method includes:

[0092] Step E1: The configuration platform 101 obtains business data from the business database 102. Each business data in the business database 102 is provided with reference relationship information, and the reference relationship information represents the association relationship between different business data. All business data in the business database 102 are constructed into a reference relationship tree by the reference relationship information.

[0093] This step is the same as step B1 of method embodiment 1.

[0094] Step E2: The business data that needs to be configured is taken as the first business data, and the business data referenced by the first business data is taken as the second business data. The first business data and the second business data already have an association relationship.

[0095] by Figure 3 Taking the reference relationship tree shown in the figure as an example, suppose that business data 2 originally referenced business data 5, but now it is changed to no longer reference business data 5. At this time, the configuration platform can use business data 2 as the first business data and business data 5 as the second business data. Here, the original reference relationship information of business data 5 can be expressed as: (reference count 2, business data 2, business data 3), indicating that business data 5 is referenced 2 times in total, respectively by business data 2 and business data 3.

[0096] Step E3: Deleting the reference to the second service data in the configuration operation for the first service data.

[0097] In actual application, the configuration platform 101 can reconfigure the first service data so that it no longer references the second service data. In the above example, the configuration platform 101 reconfigures the service data 2 so that it no longer references the service data 5.

[0098] Although the configuration platform 101 has reconfigured the business data in step E3, the reference relationship information of the referenced business data 5 still retains the information referenced by the business data 2. Therefore, it is necessary to modify the reference relationship information of the business data 5 using the following steps E4 and E5.

[0099] Step E4: In the reference relationship information of the second business data, the number of references is reduced by 1.

[0100] Step E5: In the reference relationship information of the second business data, the first business data is deleted from the referenced business data.

[0101] Assuming that business data 5 is the second business data, the original reference relationship information can be expressed as: (number of references 2, business data 2, business data 3). After executing steps E4 and E5, the updated reference relationship information of business data 5 can be expressed as (number of references 1, business data 3), indicating that business data 5 is only referenced by business data 3, thereby deleting the original business data 2 as the referenced party. Figure 5 This is the second example of the reference relationship tree, which shows the reference relationship tree after deleting the reference. Figure 5 As shown, the “×” on the node connection line indicates the deleted reference.

[0102] The above steps E2 to E5 are specific implementation methods for the configuration platform 101 to perform configuration operations on the business data according to the upper-layer business requirements to modify the reference relationship information between the business data when the upper-layer business requirement is to delete the reference of the first business data to the second business data.

[0103] Step E6: the configuration platform 101 determines the business data that is disconnected from the reference relationship tree according to the modified reference relationship information, and regards the business data that is disconnected from the reference relationship tree as redundant data.

[0104] This step is the same as step B3 of the first embodiment of the method described above.

[0105] Step E7: The configuration platform 101 instructs the service database 102 to delete the redundant data.

[0106] This step is the same as step B4 of the first embodiment of the method described above.

[0107] In the embodiment of the present application, the business data can be configured using steps E2 to E5. Here, only one business data is used as an example for configuration operation. It can be understood that in actual applications, other multiple business data can also be configured, that is, steps E2 to E5 are repeatedly executed.

[0108] The above method embodiment 2 takes the deletion of references as an example to illustrate the specific implementation method of the configuration platform to perform configuration operations on business data. In method embodiment 3, it is assumed that the business process has changed and a certain business data needs to reference a new business data, that is, the upper-level business needs to establish a reference to another business data for a certain business data. In method embodiment 3, it is still assumed that the reference relationship information includes at least the number of references and the referencing business data. The number of references indicates the number of times a certain business data is referenced by the referencing business data, that is, the number of referencing business data.

[0109] Figure 6 This is a flow chart of Embodiment 3 of the present application method. Figure 6 As shown, the method includes:

[0110] Step F1: The configuration platform 101 obtains business data from the business database 102. Each business data in the business database 102 is provided with reference relationship information, and the reference relationship information represents the association relationship between different business data. All business data in the business database 102 are constructed into a reference relationship tree by the reference relationship information.

[0111] This step is the same as step B1 of method embodiment 1.

[0112] Step F2: The business data that needs to be configured is taken as the first business data, and the business data referenced by the first business data is taken as the second business data. There is no association relationship between the first business data and the second business data.

[0113] This step is similar to step E2 in method embodiment 2. The difference is that the first business data and the second business data in step E2 already have an association relationship, while the first business data and the second business data in this step F2 do not have an association relationship, and need to use the following steps to establish their association relationship.

[0114] by Figure 3 Taking the reference relationship tree shown as an example, it is assumed that the business data 6 does not reference any business data and needs to reference the newly configured business data 8.

[0115] Step F3: creating a reference to the second service data in the configuration operation of the first service data.

[0116] In actual applications, the configuration platform 101 can add a second business data and reconfigure the first business data so that it references the second business data. In the above example, the business data 6 is reconfigured so that it references the newly added business data 8. Of course, in actual applications, the business data that already exists in the reference relationship tree can also be used as the second business data, and it is not necessary to add new business data. However, whether it is existing business data or newly added business data, for the first business data, it is necessary to create a reference to the second business data.

[0117] At this time, the configuration platform 101 has reconfigured the business data 6 in step F3, but the reference relationship information of the referenced business data 8 has not yet been established. Therefore, the reference relationship information of the business data 8 needs to be established using the following steps F4 and F5.

[0118] Step F4: In the reference relationship information of the second business data, the number of references is increased by 1.

[0119] Step F5: In the reference relationship information of the second business data, the first business data is added to the referencing party business data.

[0120] Here, after executing step F4 and step F5, the reference relationship information of business data 8 can be expressed as (reference number 1, business data 6), indicating that business data 8 is referenced by business data 6, thereby establishing an association relationship between business data 6 and business data 8. Figure 7 This is the third example of the reference relationship tree, which shows the reference relationship tree after the new reference is established. Figure 7As shown, the dotted line between business data 6 and business data 8 represents a newly created reference.

[0121] The above steps F2 to F5 are specific implementation methods of the configuration platform 101 performing configuration operations on the business data according to the upper-layer business requirements to modify the reference relationship information between the business data when the upper-layer business requirements are to establish a reference between the first business data and the second business data.

[0122] Step F6: the configuration platform 101 determines the business data that is disconnected from the reference relationship tree according to the modified reference relationship information, and regards the business data that is disconnected from the reference relationship tree as redundant data.

[0123] This step is the same as step B3 of the first embodiment of the method described above.

[0124] Step F7: The configuration platform 101 instructs the service database 102 to delete the redundant data.

[0125] This step is the same as step B4 of the first embodiment of the method described above.

[0126] In the embodiment of the present application, the business data can be configured using steps F2 to F5. Here, only one business data is used as an example for configuration. It can be understood that in actual applications, other business data can also be configured, that is, steps F2 to F5 are repeatedly executed.

[0127] The above method embodiment 2 describes deleting the reference of the first business data to the second business data, and the method embodiment 3 describes establishing the reference of the first business data to the second business data. It can be understood that if the reference of the first business data to the second business data needs to be modified to a reference to the third business data, the method of steps E2 to E5 of the method embodiment 2 can be used to first delete the reference of the first business data to the second business data, and then the method of steps F2 to F5 of the method embodiment 3 can be used to create the reference of the first business data to the third business data. Figure 3 For example, assume that business data 2 references business data 4 and business data 5, and business data 3 references business data 5 and business data 6. The business process has changed, and it is necessary to modify the reference of business data 2 to business data 5 to business data 6. In this case, executing steps E2 to E5 of method embodiment 2 can delete the reference of business data 2 to business data 5, and executing steps F2 to F5 of method embodiment 3 can create a reference of business data 2 to business data 6. Figure 8 This is example 4 of the reference relationship tree, which shows the reference relationship tree after the reference is modified.

[0128] In the embodiment of the present application, the reference type can be further set for the reference relationship information of the business data, that is, the reference relationship information includes the number of times it is referenced, the referenced business data, and the reference type. Among them, the reference type includes strong reference and weak reference, which are used to indicate the degree of association between the business data. For example, the first business data references the second business data, and its reference type is strong reference, indicating that the first business data also needs the participation of the second business data when driving the business process. If the first business data references the second business, its reference type is weak reference, indicating that the first business data can ignore the participation of the second business data when driving the business process. It should be noted that although the weak reference indicates an association relationship that can be ignored, it cannot be immediately determined as a reference relationship that needs to be deleted. The reason is that the coupling between the business data in the embodiment of the present application is very strong, and the first business data may also be referenced by the third business data, and the reference type is strong reference. Then, although the first business data references the second business data, it can be ignored, but the third business data indirectly references the second business data. When the third business data drives the business process, the participation of the second business data is required, and its reference cannot be ignored.

[0129] If the reference type is further set for the reference relationship information of the business data, the embodiment of the present application can also change the reference type of the first business data to the second business data. In method embodiment 4, assuming that the business process has changed, the upper-level business requirement is to change the reference type of the first business data to the second business data.

[0130] Fig. 9 This is a flow chart of the fourth embodiment of the method of this application. Fig. 9 As shown, the method includes:

[0131] Step G1: The configuration platform 101 obtains business data from the business database 102. Each business data in the business database 102 is provided with reference relationship information, and the reference relationship information represents the association relationship between different business data. All business data in the business database 102 are constructed into a reference relationship tree by the reference relationship information.

[0132] This step is the same as step B1 of method embodiment 1.

[0133] Step G2: The business data that needs to be configured is taken as the first business data, and the business data referenced by the first business data is taken as the second business data. The first business data and the second business data already have an association relationship.

[0134] by Figure 3Take the reference relationship tree shown in the figure as an example. Among them, business data 2 references business data 4 and business data 5. There is a strong reference between business data 2 and business data 4, and a weak reference between business data 2 and business data 5. Assuming that the business process changes, it is necessary to change the strong reference between business data 2 and business data 4 to a weak reference, and change the weak reference between business data 2 and business data 5 to a strong reference.

[0135] Step G3: If the degree of association between the first business data and the second business data is a strong reference, then in the reference relationship information of the second business data, the reference type is changed to a weak reference.

[0136] Step G4: If the association degree between the first business data and the second business data is a weak reference, then in the reference relationship information of the second business data, the reference type is changed to a strong reference.

[0137] The above steps G2 to G4 are to change the reference type between the first business data and the second business data. After execution, the strong reference between business data 2 and business data 4 will be changed to a weak reference, and the weak reference between business data 2 and business data 5 can be changed to a strong reference.

[0138] Step G5: the configuration platform 101 determines the business data that is disconnected from the reference relationship tree according to the modified reference relationship information, and regards the business data that is disconnected from the reference relationship as redundant data.

[0139] This step is the same as step B3 of the first embodiment of the method described above.

[0140] Step G6: The configuration platform 101 instructs the business database 102 to delete the redundant data.

[0141] This step is the same as step B4 of the first embodiment of the method described above.

[0142] In the embodiment of the present application, the configuration platform 101 can perform configuration operations on the business data using steps G2 to G4 to change the reference type in the reference relationship information of the business data, thereby changing the reference relationship.

[0143] The above method embodiment 2 describes deleting the reference relationship between business data, the method embodiment 3 describes creating the reference relationship between business data, and the method embodiment 4 describes changing the reference type of the reference relationship between business data. It is understandable that in actual applications, when a business process changes, it may be necessary to perform multiple configuration operations such as deleting, creating, or changing the reference type of multiple business data at the same time, that is, any combination of the above method embodiments can be selected according to actual conditions.

[0144] Regardless of which configuration operation the configuration platform 101 performs on the business data, the configuration platform 101 can accurately determine the business data that is out of association with the reference relationship tree based on the modified reference relationship information, and treat the out of association business data as redundant data.

[0145] Fig.10 This is a flow chart of Embodiment 5 of the present application method. Fig.10 As shown, the method includes:

[0146] Step H1: The configuration platform obtains business data from the business database. Each business data in the business database is set with reference relationship information. The business data is the condition for driving the operation of the business process. The reference relationship information represents the association relationship between different business data. All business data in the business database are constructed into a reference relationship tree by the reference relationship information.

[0147] This step is the same as step B1 of method embodiment 1.

[0148] Step H2: performing configuration operations on the acquired business data according to upper-layer business requirements to modify reference relationship information of the business data.

[0149] This step is the same as step B2 of method embodiment 1.

[0150] The following steps H3 to H13 are specific methods for the configuration platform 101 to determine the business data that is disconnected from the reference relationship tree according to the modified reference relationship information. In this embodiment, there may be the following situations:

[0151] First, the number of times a certain business data is referenced is 0. That is, if a certain business data is not referenced by any other business data, then in the business process, the business data will not have any impact on driving the business process and can be determined as redundant data.

[0152] Second, the number of times a business data is referenced is greater than 0 and there is a strong reference. That is, a business data is referenced by other business data, and the reference type has a strong reference. This business data will have an impact on driving the business process and is valid data.

[0153] Third, the number of times a certain business data is referenced is greater than 0 and all references are weak references. That is, a certain business data is also referenced by other business data, but they are all weak references. In this case, further backtracking is required to determine whether it is redundant data. If there are no strong references in the ancestor nodes experienced during the backtracking process, the business data and the ancestor nodes experienced during the backtracking process are considered redundant data.

[0154] The following will use these three situations as examples to illustrate the handling methods.

[0155] Step H3: A leaf node of the reference relationship tree is used as the current node. Each node in the reference relationship tree includes the business data and reference relationship information, and the referencing party business data is the parent node and the referenced party business data is the child node.

[0156] Step H4: Determine whether the number of times the current node is referenced is 0. If so, execute step H5; otherwise, continue to execute step H6.

[0157] Step H5: Determine that the business data corresponding to the current node is no longer associated with the reference relationship tree, and jump to step H12.

[0158] Steps H4 and H5 here are the processing of the first situation mentioned above.

[0159] Step H6: Determine whether the number of times the current node is referenced is greater than 0, and whether the reference type in the reference relationship information of the current node has a strong reference. If so, execute step H7; otherwise, continue to execute step H8.

[0160] Step H7: Determine whether the business data corresponding to the current node is associated with the reference relationship tree, and jump to step H12.

[0161] Steps H6 and H7 here are the processing for the second situation mentioned above.

[0162] Step H8: Determine whether the number of times the current node is referenced is greater than 0, and the reference types in the reference relationship information of the current node are all weak references. If so, execute step H9; otherwise jump to step H12.

[0163] Step H9: For each referenced business data in the current node, trace back to the root node in the reference relationship tree.

[0164] Step H10: If there is no strong reference in the reference type of the reference relationship information of all ancestor nodes experienced during the backtracking process, it is determined that the business data corresponding to the current node and all ancestor nodes experienced during the backtracking process are no longer associated with the reference relationship tree.

[0165] Step H11: If the reference type in the reference relationship information of the ancestor node experienced during the backtracking process contains a strong reference, it is determined that the business data corresponding to the current node and all ancestor nodes experienced during the backtracking process are associated with the reference relationship tree.

[0166] Steps H8 to H11 here are the processing of the third situation mentioned above.

[0167] Step H12: Determine whether all leaf nodes in the reference relationship tree have been processed. If so, execute step H14; otherwise, execute step H13.

[0168] Step H13: Set the next leaf node as the new current node and return to step H4.

[0169] Step H14: The business data that is out of association is regarded as redundant data, and the configuration platform 101 instructs the business database 102 to delete the redundant data.

[0170] When determining business data that is out of association with the reference relationship tree, the embodiment of the present application uses a method of tracing back from the leaf node to the root node, but this method may not be limited to the actual application. For example, the traversal may be performed by tracing back from the root node to the leaf node, as long as the business data that is out of association can be determined.

[0171] Fig.11 This is the reference relationship tree example 5. Fig.11 Taking the reference relationship tree on the left as an example, assuming that the reference relationship information of business data includes the number of references, the referenced business data, and the reference type. For example, the reference relationship information of business data 5 can be expressed as:

[0172] Business data 9:

[0173]

[0174] The reference relationship information of other business data can also be expressed in this way, which will not be listed here one by one.

[0175] The present embodiment also assumes that when executing step H2, the configuration platform 101 performs configuration operations according to the upper layer requirements, specifically: business data 1 no longer references business data 2, business data 2 references business data 5 and changes it to a weak reference, business data 4 references business data 9 and also changes it to a weak reference, business data 4 no longer references business data 8, and business data 12 is added to be referenced by business data 10. Then, Fig.11The reference relationship tree on the right illustrates the situation after the reference relationship information is modified. At this time, if steps H3 to H13 are executed, the configuration platform 101 can determine that the number of times business data 8 is referenced is 0, and it should be treated as redundant data; although the number of times business data 9 is referenced is greater than 0, all the ancestor nodes (business data 4, business data 5, business data 2) that it traces back to have no strong references, therefore, business data 9, business data 4, business data 5, and business data 2 should all be treated as redundant data; business data 10 and business data 11 both have strong references, and are related business data, and should not be treated as redundant data; although there is a weak reference between business data 7 and business data 3, there is a strong reference between the traced business data 3 and business data 1, and should not be treated as redundant data. Fig.11 The reference relationship tree at the bottom illustrates the situation after redundant data is deleted. The business data on the reference relationship tree are all data that can accurately drive the business process.

[0176] By applying the solution of the fifth embodiment of the present application, no matter what configuration operation the configuration platform 101 performs on the business data, as long as the reference relationship information is modified, the reference relationship tree can be used to accurately determine the business data that is out of the association relationship, thereby accurately determining the redundant data.

[0177] In order to better understand the above-mentioned embodiment scheme of the present application, the following further illustrates the actual business as an example. For example, in the real estate transaction business, since the transaction process is very complicated, and the transaction processes in various cities may be different due to inconsistent real estate transaction policies. In actual applications, different business data can be configured for the transaction processes in different cities in the configuration platform 101. These business data may be transaction links, data fields, data dictionary values, etc. For example: mortgage release, full payment transaction, commercial loan, provident fund loan, loan bank, contract signing, etc. These business data can be regarded as conditions for driving the transaction process. For example: in the commercial loan transaction process of a certain city, if the transaction property is mortgaged, it is necessary to first perform the mortgage release link of the property, and then conduct subsequent links such as face-to-face signing or loan. For example, in the bank loan link, if the main borrower is married, it is also necessary to provide business data such as spouse information. Therefore, the real estate transaction process needs to be implemented through various complex conditions to control the process, and the business data configured in the configuration platform 101 is the condition for driving the business process.

[0178] In actual applications, the real estate transaction process will change with the change of policies. For example, in the original bank loan process, if the main borrower is married, it is necessary to provide relevant information of the spouse. Furthermore, if it is a remarriage, business data such as the remarriage certificate is also required. However, in the new real estate policy, in the bank loan process, only the dictionary value of the main borrower's marital status business data (optional items in the drop-down box) is required, such as "unmarried", "married", and "widowed", and no business data such as the remarriage certificate is required. At this time, the original business data such as the remarriage certificate becomes redundant data that will no longer be referenced. If these redundant data are not located and deleted in time, when the default value is still "remarriage", it may cause transaction process errors. However, the coupling relationship between these business data is very strong. Those that do not participate in the driving process in a certain link may need to participate in the driving process in another link. Therefore, it is difficult to accurately determine which business data is redundant data.

[0179] This embodiment adopts the methods provided by the above-mentioned method embodiments to establish reference relationship information for each business data, and constructs all the business data under a certain city into a reference relationship tree based on the reference relationship information. Fig.12 This is the sixth example of the reference relationship tree, which represents an example of the reference relationship of business data in the real estate transaction business in the embodiment of the present application. Among them, "city" is the root node; "full payment", "commercial loan", and "provident fund" represent several possible business processes in the city; "release of mortgage", "online signing", "transfer of ownership", and "loan approval" represent several different business links under a certain business process; "bank", "borrower ID card", and "loan approval result" represent several data fields under the "loan approval" link; "success" represents the data dictionary value of "loan approval result". Regardless of the process, link, data field or data dictionary value, in the embodiment of the present application, they are all business data that drive the business process, and they need to be configured in the configuration platform 101. Each business data can set its reference relationship information in the form of method embodiment five. For example: a certain business data is "real estate mortgage attributes", and its reference relationship information is:

[0180]

[0181] Regardless of the specific meaning of the above business data, it exists as a node in the reference relationship tree. Similarly, if the real estate transaction policy of a city changes, the business data can be configured again through the configuration platform 101 to modify the reference relationship information of the business data. Then, the configuration platform 101 determines the business data that is disconnected from the reference relationship tree based on the modified reference relationship information, and treats the disconnected business data as redundant data. How to perform the configuration operation and how to determine the redundant data can be referred to the above-mentioned method embodiments, which will not be repeated here.

[0182] The embodiment of the present application also provides a device for clearing redundant business data, which can be applied to the configuration platform 101. Fig.13 1 is a schematic diagram of the structure of the first embodiment of the device for clearing redundant business data of the present application. Fig.13 As shown, the device includes: a data acquisition unit M1, a configuration operation unit M2, a redundant data determination unit M3, and a database operation unit M4. Among them:

[0183] The data acquisition unit M1 is used to acquire business data from a business database. Each business data in the business database is provided with reference relationship information. The business data is a condition for driving the operation of the business process. The reference relationship information represents the association relationship between different business data. All business data in the business database are constructed into a reference relationship tree by the reference relationship information.

[0184] The configuration operation unit M2 is used to perform configuration operations on the acquired business data according to upper-layer business requirements to modify reference relationship information of the business data.

[0185] The redundant data determining unit M3 is used to determine the business data that is out of association with the reference relationship tree according to the modified reference relationship information, and use the business data that is out of association as redundant data.

[0186] The database operation unit M4 instructs the business database to delete the redundant data.

[0187] That is to say, the data acquisition unit M1 acquires business data from the business database; the configuration operation unit M2 performs configuration operations on the acquired business data according to the upper-level business requirements to modify the reference relationship information of the business data; the redundant data determination unit M3 determines the business data that is disconnected from the reference relationship tree according to the modified reference relationship information, and treats the disconnected business data as redundant data; and the database operation unit M4 instructs the business database to delete the redundant data.

[0188] Fig.14 This is a schematic diagram of the structure of the second embodiment of the device for clearing redundant business data in the present application. Fig.14 As shown, the device also includes: a data acquisition unit M1, a configuration operation unit M2, a redundant data determination unit M3, and a database operation unit M4. Among them, the configuration operation unit M2 may include any combination of the three units of the deletion reference unit M21, the addition reference unit M22, and the modification reference unit M23. In addition, the redundant data determination unit M3 may include any combination of the four units of the current node determination unit M31, the first determination unit M32, the second determination unit M33, and the third determination unit M34. Among them:

[0189] A reference deletion unit M21 is used to take the business data that needs to be configured as the first business data, and the business data referenced by the first business data as the second business data, where the first business data and the second business data already have an associated relationship; delete the reference to the second business data in the configuration operation of the first business data; reduce the number of references by 1 in the reference relationship information of the second business data; and delete the first business data from the referencing business data in the reference relationship information of the second business data, where the reference relationship information includes the number of references and the referencing business data.

[0190] Add a reference unit M22, which is used to take the business data that needs to be configured as the first business data, and the business data referenced by the first business data as the second business data, and there is no association relationship between the first business data and the second business data; create a reference to the second business data in the configuration operation of the first business data; increase the number of references by 1 in the reference relationship information of the second business data; add the first business data to the referencing business data in the reference relationship information of the second business data; the reference relationship information includes the number of references and the referencing business data.

[0191] The reference modification unit M23 is used to set the business data that needs to be configured as the first business data, and the business data referenced by the first business data as the second business data, and the first business data and the second business data already have an association relationship; if the degree of association between the first business data and the second business data is a strong reference, then in the reference relationship information of the second business data, the reference type is changed to a weak reference; if the degree of association between the first business data and the second business data is a weak reference, then in the reference relationship information of the second business data, the reference type is changed to a strong reference; the reference relationship information includes the number of references, the referencing business data, and the reference type, and the reference type includes a strong reference and a weak reference, which is used to indicate the degree of association of the business data.

[0192] The current node determination unit M31 is used to take a leaf node of the reference relationship tree as the current node, each node in the reference relationship tree includes the business data and reference relationship information, and the referencing party business data is the parent node and the referenced party business data is the child node; it is also used to take the next leaf node as the new current node until all leaf nodes in the reference relationship tree are processed.

[0193] The first determination unit M32 is used to determine whether the number of times the current node is referenced is 0. If so, it is determined that the business data corresponding to the current node is out of association with the reference relationship tree, and the current node determination unit M31 is triggered.

[0194] The second judgment unit M33 is used to determine whether the number of times the current node is referenced is greater than 0, and whether there is a strong reference in the reference type in the reference relationship information of the current node. If so, it is determined that the business data corresponding to the current node is associated with the reference relationship tree, and the current node determination unit M31 is triggered.

[0195] The third judgment unit M34 is used to determine whether the number of times the current node is referenced is greater than 0, and the reference types in the reference relationship information of the current node are all weak references. If so, then for each referenced business data in the current node, backtracking is performed in the reference relationship tree toward the root node. If the reference types in the reference relationship information of all ancestor nodes experienced during the backtracking process do not contain strong references, it is determined that the business data corresponding to the current node and all ancestor nodes experienced during the backtracking process are disconnected from the reference relationship tree; if the reference types in the reference relationship information of the ancestor nodes experienced during the backtracking process contain strong references, it is determined that the business data corresponding to the current node and all ancestor nodes experienced during the backtracking process are associated with the reference relationship tree, and the current node determination unit M31 is triggered.

[0196] By applying the embodiment scheme of the present application, reference relationship information is set for each business data, and a reference relationship tree is constructed using the reference relationship information. When the business process changes and causes the association relationship between the business data, the reference relationship tree can be used to accurately locate the business data that has been separated from the association relationship and use it as redundant data. Therefore, by applying the embodiment scheme of the present application, redundant data can be accurately located, avoiding the waste of business database storage resources, while ensuring that the business process is not disturbed by redundant business data and proceeds smoothly.

[0197] The embodiment of the present application also provides a computer-readable storage medium, which stores instructions, and the instructions can execute the steps in the method for clearing redundant business data as described above when executed by a processor. In practical applications, the computer-readable medium can be included in each device / apparatus / system in the above embodiments, or it can exist independently without being assembled into the device / apparatus / system. Instructions are stored in the computer-readable storage medium, and the instructions stored therein can execute the steps in the method for clearing redundant business data as described above when executed by a processor.

[0198] According to the embodiments disclosed in the present application, the computer-readable storage medium may be a non-volatile computer-readable storage medium, for example, it may include but is not limited to: a portable computer disk, a hard disk, a random access memory (RAM), a read-only memory (ROM), an erasable programmable read-only memory (EPROM or flash memory), a portable compact disk read-only memory (CD-ROM), an optical storage device, a magnetic storage device, or any suitable combination thereof, but it is not used to limit the scope of protection of the present application. In the embodiments disclosed in the present application, the computer-readable storage medium may be any tangible medium containing or storing a program, which may be used by or in combination with an instruction execution system, apparatus, or device.

[0199] like Fig.15 As shown, an embodiment of the present invention also provides an electronic device. Fig.15 As shown, it shows a schematic diagram of the structure of an electronic device involved in an embodiment of the present invention, specifically:

[0200] The electronic device may include a processor 1501 with one or more processing cores, a memory 1502 with one or more computer-readable storage media, and a computer program stored in the memory and executable on the processor. When executing the program in the memory 1502, the above-mentioned method for clearing redundant service data may be implemented.

[0201] Specifically, in practical applications, the electronic device may further include components such as a power supply 1503, an input / output unit 1504, etc. Those skilled in the art may understand that Fig.15 The structure of the electronic device shown in the figure does not constitute a limitation on the electronic device, and may include more or fewer components than shown in the figure, or combine certain components, or arrange the components differently.

[0202] Processor 1501 is the control center of the electronic device. It uses various interfaces and lines to connect various parts of the entire electronic device. It executes various functions of the server and processes data by running or executing software programs and / or modules stored in memory 1502 and calling data stored in memory 1502, thereby monitoring the electronic device as a whole.

[0203] The memory 1502 can be used to store software programs and modules, that is, the above-mentioned computer-readable storage medium. The processor 1501 executes various functional applications and data processing by running the software programs and modules stored in the memory 1502. The memory 1502 may mainly include a program storage area and a data storage area, wherein the program storage area may store an operating system, an application required for at least one function, etc.; the data storage area may store data created according to the use of the server, etc. In addition, the memory 1502 may include a high-speed random access memory, and may also include a non-volatile memory, such as at least one disk storage device, a flash memory device, or other volatile solid-state storage devices. Accordingly, the memory 1502 may also include a memory controller to provide the processor 1501 with access to the memory 1502.

[0204] The electronic device also includes a power supply 1503 for supplying power to various components, which can be logically connected to the processor 1501 through a power management system, so as to manage charging, discharging, power consumption and other functions through the power management system. The power supply 1503 can also include any components such as one or more DC or AC power supplies, recharging systems, power failure detection circuits, power converters or inverters, and power status indicators.

[0205] The electronic device may also include an input and output unit 1504, which may be used to receive input digital or character information and generate keyboard, mouse, joystick, optical or trackball signal inputs related to user settings and function control. The input unit output 1504 may also be used to display information input by the user or information provided to the user and various graphical user interfaces, which may be composed of graphics, text, icons, videos and any combination thereof.

[0206] The flow chart and block diagram in the accompanying drawings of the present application show the possible architecture, function and operation of the system, method and computer program product according to the various embodiments disclosed in the present application. In this regard, each box in the flow chart or block diagram can represent a module, a program segment or a part of a code, and the above-mentioned module, program segment or a part of a code contains one or more executable instructions for realizing the specified logical function. It should also be noted that in some implementations as replacements, the functions marked in the box can also occur in the order of the standards in different figures. For example, the boxes represented by two connections can actually be executed substantially in parallel, and they can sometimes be executed in the opposite order, depending on the functions involved. It should also be noted that each box in the block diagram or flow chart, and the combination of the boxes in the block diagram or flow chart can be implemented with a dedicated hardware-based system that performs the specified function or operation, or can be implemented with a combination of dedicated hardware and computer instructions.

[0207] Those skilled in the art will appreciate that the features described in the various embodiments and / or claims of the present disclosure may be combined and / or combined in a variety of ways, even if such combinations or combinations are not explicitly described in the present application. In particular, without departing from the spirit and teachings of the present application, the features described in the various embodiments and / or claims of the present application may be combined and / or combined in a variety of ways, and all of these combinations and / or combinations fall within the scope disclosed in the present application.

[0208] Specific embodiments are used herein to illustrate the principles and implementation methods of the present invention. The description of the above embodiments is only used to help understand the method of the present invention and its core ideas, and is not used to limit the present application. For those skilled in the art, changes can be made in the specific implementation methods and application scopes according to the ideas, spirits and principles of the present invention, and any modifications, equivalent substitutions, improvements, etc. made therein should be included in the scope of protection of this application.

Claims

1. A method for clearing redundant business data, characterized in that: The method includes: The configuration platform obtains business data from a business database, each business data in the business database is provided with reference relationship information, the business data is a condition for driving the operation of the business process, the reference relationship information indicates the association relationship between different business data, and all business data in the business database are constructed into a reference relationship tree by the reference relationship information; wherein the reference relationship information includes the number of times cited, the business data of the citing party and the reference type; the reference type includes strong reference and weak reference, which are used to indicate the association degree of the business data; When the conditions driving the business process change, reconfigure the acquired business data according to the upper-level business requirements to modify the reference relationship information of the business data; The configuration platform determines the business data that is out of association with the reference relationship tree according to the modified reference relationship information, and uses the business data that is out of association as redundant data; wherein the business data that is out of association is data that can no longer be used to drive the business process; The configuration platform instructs the business database to delete the redundant data; The step of the configuration platform determining the business data that is disconnected from the reference relationship tree according to the modified reference relationship information includes: A leaf node of the reference relationship tree is used as the current node, each node in the reference relationship tree includes the business data and reference relationship information; the referencing party business data is the parent node, and the referenced party business data is the child node; it is determined whether the number of times the current node is referenced is 0, if so, it is determined that the business data corresponding to the current node is out of association with the reference relationship tree, and jumps to the step of using the next leaf node as the new current node; Determine whether the number of times the current node is referenced is greater than 0, and whether the reference type in the reference relationship information of the current node has a strong reference. If so, determine that the business data corresponding to the current node has an association relationship with the reference relationship tree, and jump to the step of taking the next leaf node as the new current node; Determine whether the number of times the current node has been referenced is greater than 0, and the reference types in the reference relationship information of the current node are all weak references. If so, backtrack to the root node in the reference relationship tree for each referenced business data in the current node. If the reference types in the reference relationship information of all ancestor nodes experienced during the backtracking process do not contain strong references, it is determined that the business data corresponding to the current node and all ancestor nodes experienced during the backtracking process are no longer associated with the reference relationship tree; if the reference types in the reference relationship information of the ancestor nodes experienced during the backtracking process contain strong references, it is determined that the business data corresponding to the current node and all ancestor nodes experienced during the backtracking process are associated with the reference relationship tree; The next leaf node is used as the new current node, and the step of returning to determine whether the number of times the current node is referenced is 0 is repeated until all leaf nodes in the reference relationship tree are processed.

2. The method according to claim 1, characterized in that The reference relationship information includes the number of times cited and the business data of the citing party; The step of performing configuration operations on the acquired business data according to upper-layer business requirements to modify the reference relationship information between the business data includes: The business data that needs to be configured is used as the first business data, and the business data referenced by the first business data is used as the second business data, and the first business data and the second business data already have an association relationship; When the upper-layer service requirement is to delete the reference of the first service data to the second service data, deleting the reference of the second service data in the configuration operation of the first service data; In the reference relationship information of the second business data, the number of times the reference is made is reduced by 1; In the reference relationship information of the second business data, the first business data is deleted from the referenced business data.

3. The method according to claim 1, characterized in that: The step of performing configuration operations on the acquired business data according to upper-layer business requirements to modify the reference relationship information between the business data further includes: The business data that needs to be configured is used as the first business data, and the business data referenced by the first business data is used as the second business data, and there is no association relationship between the first business data and the second business data; When the upper-layer service requirement is to establish a reference of the first service data to the second service data, a reference to the second service data is created in a configuration operation of the first service data; In the reference relationship information of the second business data, the number of times the reference is made is increased by 1; In the reference relationship information of the second business data, the first business data is added to the referencing party business data.

4. The method according to claim 1, characterized in that: The step of performing configuration operations on the acquired business data according to upper-layer business requirements to modify the reference relationship information between the business data further includes: The business data that needs to be configured is used as the first business data, and the business data referenced by the first business data is used as the second business data, and the first business data and the second business data already have an association relationship; When the upper-level business requirement is to change the reference type of the first business data to the second business data, if the degree of association between the first business data and the second business data is a strong reference, then in the reference relationship information of the second business data, the reference type is changed to a weak reference; if the degree of association between the first business data and the second business data is a weak reference, then in the reference relationship information of the second business data, the reference type is changed to a strong reference.

5. A device for clearing redundant service data, characterized in that: The device includes: A data acquisition unit is used to acquire business data from a business database, wherein each business data in the business database is provided with reference relationship information, wherein the business data is a condition for driving the operation of a business process, wherein the reference relationship information indicates the association relationship between different business data, and all business data in the business database are constructed into a reference relationship tree by the reference relationship information; wherein the reference relationship information includes the number of times cited, the business data of the citing party, and the reference type; and the reference type includes strong reference and weak reference, which are used to indicate the degree of association of the business data; A configuration operation unit, used for reconfiguring the acquired business data according to upper-layer business requirements when the conditions driving the business process change, so as to modify the reference relationship information of the business data; A redundant data determination unit, configured to determine business data that is out of association with the reference relationship tree according to the modified reference relationship information, and use the business data that is out of association as redundant data; wherein the business data that is out of association is data that can no longer be used to drive the business process; A database operation unit, instructing the business database to delete the redundant data; Wherein, the redundant data determination unit includes a current node determination unit, a first determination unit, a second determination unit and a third determination unit; The current node determination unit is used to take a leaf node of the reference relationship tree as the current node, each node in the reference relationship tree includes the business data and reference relationship information, and the referencing party business data is the parent node and the referenced party business data is the child node; and is also used to take the next leaf node as the new current node until all leaf nodes in the reference relationship tree are processed; The first determination unit is used to determine whether the number of times the current node is referenced is 0, and if so, determine that the business data corresponding to the current node is out of association with the reference relationship tree, and trigger the current node determination unit; The second determination unit is used to determine whether the number of times the current node is referenced is greater than 0, and whether the reference type in the reference relationship information of the current node has a strong reference, and if so, determine that the business data corresponding to the current node has an association relationship with the reference relationship tree, and trigger the current node determination unit; The third determination unit is used to determine whether the number of times the current node has been referenced is greater than 0, and whether the reference types in the reference relationship information of the current node are all weak references. If so, then for each referenced business data in the current node, backtracking is performed in the reference relationship tree toward the root node. If the reference types in the reference relationship information of all ancestor nodes experienced during the backtracking process do not contain strong references, it is determined that the business data corresponding to the current node and all ancestor nodes experienced during the backtracking process are disconnected from the reference relationship tree; if the reference types in the reference relationship information of the ancestor nodes experienced during the backtracking process contain strong references, it is determined that the business data corresponding to the current node and all ancestor nodes experienced during the backtracking process are associated with the reference relationship tree, and the current node determination unit is triggered.

6. The device according to claim 5, characterized in that The configuration operation unit includes a reference deletion unit; The reference deletion unit is used to use the business data that needs to be configured as the first business data, and the business data referenced by the first business data as the second business data, where the first business data and the second business data already have an associated relationship; delete the reference to the second business data in the configuration operation of the first business data; reduce the number of references by 1 in the reference relationship information of the second business data; and delete the first business data from the referencing business data in the reference relationship information of the second business data, where the reference relationship information includes the number of references and the referencing business data.

7. The device according to claim 5, characterized in that The configuration operation unit also includes an adding reference unit; The reference adding unit is used to take the business data that needs to be configured as the first business data, and the business data referenced by the first business data as the second business data, and there is no association relationship between the first business data and the second business data; create a reference to the second business data in the configuration operation of the first business data; increase the number of references by 1 in the reference relationship information of the second business data; add the first business data to the referencing party business data in the reference relationship information of the second business data; the reference relationship information includes the number of references and the referencing party business data.

8. A computer-readable storage medium having computer instructions stored thereon, characterized in that: When the instruction is executed by a processor, the method for clearing redundant business data as described in any one of claims 1 to 4 can be implemented.

9. An electronic device, characterized in that: The electronic device comprises at least the computer-readable storage medium of claim 8, and further comprises a processor; The processor is used to read executable instructions from the computer-readable storage medium and execute the instructions to implement the method for clearing redundant business data as described in any one of claims 1 to 4 above.

Citation Information

Patent Citations

  • Redundant resource determination method and device, terminal device and storage medium

    CN108089893A

  • Storage method and system for service data, computer equipment and storage medium

    CN110990403A

  • Redundant resource processing method and device for application program, equipment and storage medium

    CN111078276A

  • Receiver apparatus and method

    CN1522408A