Data warehouse construction method and system, electronic equipment and storage medium

By selecting data models through matching and imitation rules of internal and then external business data warehouses, the problem of low construction rate of traditional data warehouses is solved, and the efficient construction of data warehouses is achieved to meet the needs of large-scale data processing.

CN118568183AActive Publication Date: 2024-08-30ZHUHAI ZHUOXUAN TECH CO LTD

Patent Information

Application Number
CN202410656623.8
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2024-05-24
Publication Date
2024-08-30
Estimated Expiration
2044-05-24

AI Technical Summary

Technical Problem

When traditional data warehouses are shared by multiple subsidiaries, the data model needs to be rebuilt when facing new business needs, resulting in a low construction rate and inability to meet large-scale data processing needs.

Method used

By obtaining new business demand information, first perform correlation matching with the internal business data warehouse. If the correlation exceeds the preset threshold, the basic business data set will be filtered. If not, it will be matched with the external business data warehouse and selected using preset imitation rules. The temporary data model builds target business data sets to improve construction efficiency.

Benefits of technology

It improves the efficiency of data warehouse construction, reduces the difficulty of the ETL process, reduces the workload of developers, meets the needs of large-scale data processing, and improves the credibility and effectiveness of data analysis.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN118568183A
    Figure CN118568183A
Patent Text Reader

Abstract

The invention relates to a data warehouse construction method and system, electronic equipment and a storage medium, and the method comprises the steps: obtaining new business demand information, and carrying out the retrieval according to a subsidiary code, and obtaining an associated internal business data warehouse; carrying out relevance matching on the new business demand information and each business data set in the internal business data warehouse; if the business data set with the correlation degree exceeding a preset threshold value exists, screening out a basic business data set according to a preset screening rule, and constructing a target business data set by utilizing a data model contained in the basic business data set; if the business data sets with the correlation degree exceeding the preset threshold value do not exist, correlation matching is carried out on the new business demand information and all business data sets in external business data bins related to other subsidiary codes; and if the business data set of which the association degree exceeds a preset threshold value exists, constructing a target business data set by utilizing the temporary data model. The method and the device have the effects of timely coping with new business requirements to construct the data warehouse and improving the construction efficiency.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present application relates to the technical field of data warehouses, and in particular to a data warehouse construction method, system, electronic device and storage medium. Background Art

[0002] A data warehouse is an integrated, themed, non-volatile data storage area used to support management decision-making and enterprise analysis. It is a collection of large amounts of historical data that has been cleansed, transformed, and integrated to meet the analytical needs of internal and external users of the enterprise.

[0003] When an enterprise proposes new business needs, traditional data warehouses generally obtain data from different systems, perform ETL processes on all data, and store them in the data warehouse according to unified formats and standards. Then, data models are built based on business needs and data characteristics. After that, data warehouses are uniformly managed and controlled through data governance and security management mechanisms, and then visualized according to needs.

[0004] However, when multiple subsidiaries of an enterprise share a data warehouse, new business demands require re-pulling tables and rebuilding data models. Among them, there may be a large number of models with the same business demands. The repeated construction process leads to a low data warehouse construction rate, which cannot meet the needs of large-scale data processing. This needs further improvement. Summary of the invention

[0005] The purpose of this application is to provide a data warehouse construction method, system, electronic device and storage medium, which have the characteristics of being able to build a data warehouse in a timely manner in response to new business needs and improve construction efficiency.

[0006] In a first aspect, the present application provides a method for constructing a data warehouse, which adopts the following technical solution: A data warehouse construction method, comprising: Acquire new business demand information, wherein the new business demand information includes a subsidiary code, and retrieve the associated internal business data warehouse according to the subsidiary code; Perform correlation matching between new business demand information and various business data sets in the internal business data warehouse to determine whether there is a business data set with a correlation exceeding a preset threshold; If there is a business data set whose correlation exceeds the preset threshold, the basic business data set is filtered out according to the preset filtering rules, and the target business data set is constructed using the data model contained in the basic business data set; If there is no business data set with a correlation exceeding the preset threshold, the new business demand information is matched with each business data set in the external business data warehouse related to other subsidiary codes to determine whether there is a business data set with a correlation exceeding the preset threshold; If there is a business data set whose correlation exceeds a preset threshold, a temporary data model is selected according to a preset imitation rule, and the temporary data model is used to construct a target business data set.

[0007] By adopting the above technical solution, the new business needs are first matched with the internal business data warehouse, and then matched with the external business data warehouse. This method can effectively use the construction logic of the existing business data set to build the target business data set, thereby improving the efficiency of building the data warehouse and responding to new business needs in a timely manner. Among them, the internal and external business data warehouses are matched successively, and the distributed matching is conducive to improving the efficiency of retrieval matching. Since the data involved in the internal business data warehouse and the data involved in the new business needs are highly consistent, the internal business data warehouse is searched to find a business data set with a high degree of matching. The consistency of the data is more conducive to reducing the difficulty of the ETL process. Then, when selecting the data model, this process also realizes automatic screening and directly uses the data model in the existing business data set. Therefore, the compatibility is relatively high, which greatly improves the efficiency of building the data warehouse. Developers do not need to re-pull the table to select the model and then build the business data set, which is conducive to meeting large-scale data processing needs.

[0008] Optionally, if there is a business data set with a correlation exceeding a preset threshold, the step of filtering out a basic business data set according to a preset filtering rule, and constructing a target business data set using a data model included in the basic business data set includes: If there is a business data set whose correlation exceeds the preset threshold, the complexity of data integration and conversion of the data involved in the new business demand information is tested to obtain a test score; The test score is increased to the correlation degree, and the business data set with the highest correlation degree is selected to obtain the basic business data set; The target business dataset is constructed using the data model contained in the basic business dataset.

[0009] By adopting the above technical solution, there are multiple business data sets that exceed the preset threshold. The data involved in the new business demand information are integrated and converted in turn according to the ETL method of these business data sets, and then the complexity of the new business demand information is tested, and then the business data set with the highest correlation is screened out as the basic business data set. At this time, the basic business data set screened out has the lowest complexity, which is conducive to ensuring the smooth operation of the subsequent target business data set after construction.

[0010] Optionally, after the step of adding the test score to the correlation degree and screening out the business data set with the highest correlation degree, the step further includes: Copy the business data set with the highest correlation to obtain a temporary business data set; The temporary business data set is compared with the data involved in the new business demand information, and irrelevant data in the temporary business data set is deleted to obtain the basic business data set.

[0011] By adopting the above technical solution, the business data set with the highest correlation is copied as a temporary business data set, and data comparison and screening are performed according to the new business demand information, so as to achieve accurate data processing, thereby ensuring that the basic business data set contains data related to the new demand, so as to better meet the needs of business analysis and application, and can also reduce the cost and complexity of data processing, save processing time and resources, and improve the efficiency of data processing, reduce data noise and redundancy, and improve the credibility and effectiveness of data analysis and application.

[0012] Optionally, if there is a business data set with a correlation exceeding a preset threshold, the step of selecting a temporary data model according to a preset imitation rule and using the temporary data model to construct a target business data set includes: If there are business data sets whose correlation exceeds the preset threshold, then the business data sets whose correlation exceeds the preset threshold are selected to form an external business data cluster; Collect statistics on the data model types of external business data clusters and prioritize the data model types according to preset arrangement rules; According to the new business demand information, sample data is collected from the corresponding system, pre-processed, and then the model types are selected in order of priority to build a temporary data model. The temporary data model is performance tested. When a temporary data model meets the standards, the current temporary data model that meets the standards is selected to build the target business data set.

[0013] By adopting the above technical solution, priorities are set for the data model types involved in the external business data cluster and arranged according to the priorities, which can improve the accuracy of model selection. Temporary data models are then built in sequence according to the arrangement order, and then performance tests are performed on the temporary models. Once a temporary data model meets the standards, the current temporary data model that meets the standards is selected to build the target business data set. This method can accelerate the selection of a data model set that is suitable for new business needs.

[0014] Optionally, the step of collecting statistics on the data model types of the external business data cluster and prioritizing the data model types according to a preset arrangement rule includes: Count the number of data models of the same type in the external business data cluster, and prioritize the data model types in descending order based on the number.

[0015] By adopting the above technical solution, data model types are prioritized in order of large to small quantity, which helps to improve the utilization rate of data models. Data model types with a large number are given priority, and the utilization rate is high. The data information provided by these models can be more fully utilized to meet business needs. For data model types with a small number, their processing priority can be appropriately lowered to avoid affecting the processing efficiency of the overall business data.

[0016] Optionally, if there is no business data set with a correlation exceeding a preset threshold, the step of performing correlation matching between the new business demand information and each business data set in the external business data warehouse related to other subsidiary codes to determine whether there is a business data set with a correlation exceeding the preset threshold may also include: If there is a business data set with a correlation exceeding the preset threshold, the company type label of the subsidiary code in the new business demand information is compared with the company type labels of other subsidiary codes, and other subsidiary codes with the same company type labels are screened out. Then, the new business demand information is matched with the various business data sets in the external business data warehouse related to other subsidiary codes with the same company type labels to determine whether there is a business data set with a correlation exceeding the preset threshold.

[0017] By adopting the above technical solution, the accuracy of constructing the target business data set can be improved, and the efficiency of constructing the target business data set can also be effectively improved.

[0018] In a second aspect, the present application provides a data warehouse construction system, which adopts the following technical solutions: A data warehouse construction system, comprising: Information acquisition module: used to acquire new business demand information, wherein the new business demand information includes a subsidiary code, and retrieve the associated internal business data warehouse according to the subsidiary code; Internal matching module: used to match the new business demand information with each business data set in the internal business data warehouse, and determine whether there is a business data set with a correlation exceeding a preset threshold; Internal construction module: If there is a business data set whose correlation exceeds the preset threshold, the basic business data set is filtered out according to the preset filtering rules, and the target business data set is constructed using the data model contained in the basic business data set; External matching module: If there is no business data set with a correlation exceeding the preset threshold, the new business demand information is matched with each business data set in the external business data warehouse related to other subsidiary codes to determine whether there is a business data set with a correlation exceeding the preset threshold; External construction module: If there is a business data set whose correlation exceeds the preset threshold, a temporary data model is selected according to the preset imitation rules, and the temporary data model is used to construct the target business data set.

[0019] In a third aspect, the present application provides an electronic device, which adopts the following technical solution: An electronic device comprises a memory, a processor and a computer program stored in the memory and executable on the processor, wherein the processor implements the steps of the above-mentioned data warehouse construction method when executing the computer program.

[0020] In a fourth aspect, the present application provides a computer storage medium, which adopts the following technical solution: A computer-readable storage medium stores a computer program, and when the computer program is executed by a processor, the steps of the above-mentioned data warehouse construction method are implemented.

[0021] In summary, the beneficial technical effects of this application include: First, match the new business needs with the internal business data warehouse, and then match them with the external business data warehouse. This method can effectively use the construction logic of the existing business data set to build the target business data set, thereby improving the efficiency of building the data warehouse and responding to new business needs in a timely manner. Among them, the internal and external business data warehouses are matched successively, and the distributed matching is conducive to improving the efficiency of retrieval and matching. Since the data involved in the internal business data warehouse and the data involved in the new business needs are highly consistent, the internal business data warehouse is searched to find the business data set with a high matching degree. The consistency of the data is more conducive to reducing the difficulty of the ETL process. Then, the data model is selected. This process also realizes automatic screening and directly uses the data model in the existing business data set. Therefore, the compatibility is relatively high, which greatly improves the efficiency of building the data warehouse. Developers do not need to re-pull the table to select the model and then build the business data set, which is conducive to meeting large-scale data processing needs. BRIEF DESCRIPTION OF THE DRAWINGS

[0022] Figure 1 It is a flowchart of a data warehouse construction method in one embodiment of the present application.

[0023] Figure 2 It is a schematic diagram of the specific step flow of step S20 in another embodiment of the present application.

[0024] Figure 3 It is a flowchart of steps after step S201 in another embodiment of the present application.

[0025] Figure 4 It is a schematic diagram of the specific step flow of step S210 in another embodiment of the present application.

[0026] Figure 5 It is a structural diagram of a data warehouse construction system according to one embodiment of the present application.

[0027] Figure 6 It is a principle block diagram of an electronic device in one embodiment of the present application.

[0028] In the figure, 1. Information acquisition module; 2. Internal matching module; 3. Internal construction module; 4. External matching module; 5. External construction module. DETAILED DESCRIPTION

[0029] In order to enable technicians in this field to better understand the technical solutions in this specification, the technical solutions in the embodiments of this specification will be clearly and completely described below in conjunction with the drawings in the embodiments of this specification. Obviously, the described embodiments are only part of the embodiments of this application, not all of the embodiments.

[0030] In the description of the embodiments of the present application, words such as "for example" or "for example" are used to indicate examples, illustrations or explanations. Any embodiment or design described as "for example" or "for example" in the embodiments of the present application should not be interpreted as being more preferred or more advantageous than other embodiments or designs. Specifically, the use of words such as "for example" or "for example" is intended to present related concepts in a specific way.

[0031] In the description of the embodiments of the present application, the meaning of the term "multiple" refers to two or more. For example, multiple systems refer to two or more systems, and multiple screen terminals refer to two or more screen terminals. In addition, the terms "first" and "second" are used for descriptive purposes only and cannot be understood as indicating or implying relative importance or implicitly indicating the indicated technical features. Thus, the features defined as "first" and "second" may explicitly or implicitly include one or more of the features. The terms "include", "comprise", "have" and their variations all mean "including but not limited to", unless otherwise specifically emphasized.

[0032] The present application embodiment provides a data warehouse construction method. In one embodiment, please refer to Figure 1 , Figure 1This is a flow chart of a data warehouse construction method provided by an embodiment of the present application. The method can be implemented by a computer program, which can be integrated into an application or run as an independent tool application. The method can also be implemented by a single-chip microcomputer or run on a data warehouse construction system. Specifically, the method can include the following steps: S1. Obtain new business demand information, which includes a subsidiary code. Retrieve the associated internal business data warehouse based on the subsidiary code.

[0033] Among them, there are multiple subsidiaries in the business model of the enterprise that share a database system, but the subsidiaries are responsible for their own profits and losses. Therefore, the data storage of each subsidiary needs to be independent of each other in order to be managed independently. For example, each subsidiary has its own financial analysis, sales data analysis, customer behavior analysis system, etc. For the head office, sharing a database system is conducive to the head office's management of subsidiaries and facilitates timely adjustments to business strategies. When a subsidiary proposes a new business analysis requirement, the developer can analyze the requirements and integrate the data involved in the demand analysis. For example, a subsidiary has a new business requirement for customer behavior analysis, and the data involved may include basic customer information, sales data, geographic location information, feedback comment data, etc. The new business analysis requirement also includes the subsidiary code, which is a unique identification code corresponding to each subsidiary, and is used to retrieve the internal business data warehouse related to the subsidiary in the data warehouse. The internal business data warehouse includes multiple business data sets, and one business requirement corresponds to one business data set.

[0034] S2. Perform correlation matching between the new business demand information and each business data set in the internal business data warehouse to determine whether there is a business data set whose correlation exceeds a preset threshold.

[0035] Among them, when the data involved in the new business demand information contains an existing business data set, the correlation is strongest. For example, the business demand for customer behavior analysis is a new business demand, and the business data set for sales data analysis is an existing business data set. The data involved in the business demand for customer behavior analysis contains the data involved in the sales data analysis business data set, and the two are most strongly correlated.

[0036] S20: If there is a business data set whose correlation exceeds a preset threshold, filter out the basic business data set according to a preset filtering rule, and construct a target business data set using the data model included in the basic business data set.

[0037] Specifically, by comparing and matching the new business demand information with the data consistency between each business data set in the internal business data warehouse, the correlation is obtained, and it is determined whether there is a business data set with a correlation exceeding the preset threshold. If there is a business data set with a correlation exceeding the preset threshold, the basic business data set is filtered out according to the preset filtering rules, and the data model contained in the basic business data set is used as the basis for generating the target business data set for the new business demand to construct the target business data set. In the above, by automatically matching to a suitable business data set, the existing data model is used to construct a new business data set, which effectively utilizes the previous business data set development foundation. Since the preset threshold for the correlation setting is high, most of the data ETL processes in the new business demand information, namely data integration, cleaning, and conversion, can be directly performed based on the existing business data set. The process of selecting the model is also automated, and the data model in the existing business data set is directly used. Therefore, the compatibility is relatively high, which greatly improves the efficiency of building a data warehouse. Developers do not need to re-pull the table to select the model and then build the business data set, which is conducive to meeting large-scale data processing needs.

[0038] S21. If there is no business data set whose correlation exceeds the preset threshold, the new business demand information is matched with each business data set in the external business data warehouse related to other subsidiary codes to determine whether there is a business data set whose correlation exceeds the preset threshold.

[0039] Specifically, the business data warehouse related to other subsidiary codes becomes the external business data warehouse. If there is no business data set with a correlation exceeding the preset threshold, the new business demand information is matched with each business data set in the external business data warehouse, and it is determined again whether there is a business data set with a correlation exceeding the preset threshold. This application first matches in the internal business data warehouse and then matches in the external business data warehouse. Distributed matching is conducive to improving the efficiency of retrieval and matching. Since the data involved in the internal business data warehouse is highly consistent with the data involved in the new business demand, therefore, the internal business data warehouse is searched to find a business data set with a high degree of matching. The consistency of the data is more conducive to reducing the difficulty of the ETL process and improving the efficiency of building the target business data set.

[0040] S210: If there is a business data set whose correlation exceeds a preset threshold, a temporary data model is selected according to a preset imitation rule, and the temporary data model is used to construct a target business data set.

[0041] Specifically, when there is a business data set in the external business warehouse whose connection degree exceeds the preset threshold, a temporary data model is selected from the business data set, and then the temporary model is used to construct the target business data set. Since there is a certain deviation between the data involved in the business data set of the external business warehouse and the data involved in the new business needs, the data model of the external business warehouse can be borrowed. The target business data set is constructed by imitating the basic logic of this temporary data model, which is also conducive to improving the efficiency of building the data warehouse.

[0042] S211. If there is no business data set whose correlation exceeds the preset threshold, a signal indicating that manual creation is required is sent to the development end.

[0043] Specifically, when there is no business data set with a correlation exceeding a preset threshold, it indicates that the new business demand has not been constructed, and therefore, the existing business data set foundation cannot be used, and a corresponding signal can be generated to the development end.

[0044] Reference Figure 2 Based on the above embodiment, as an optional embodiment, step S20: if there is a business data set with a correlation exceeding a preset threshold, the basic business data set is screened out according to a preset screening rule, and the target business data set is constructed using the data model included in the basic business data set, including: S200: If there is a business data set whose correlation exceeds a preset threshold, the complexity of data integration and conversion of the data involved in the new business demand information is tested to obtain a test score.

[0045] S201. Add the test score to the correlation, filter out the business data set with the highest correlation, and obtain the basic business data set.

[0046] S202: Construct a target business data set using the data model included in the basic business data set.

[0047] In the above, if there is a business data set with a correlation exceeding the preset threshold, and there are multiple business data sets exceeding the preset threshold, the ETL processes involved in the construction of these business data sets are used in turn in the new business demand information data, that is, the data involved in the new business demand information is integrated and converted in turn according to the ETL method of these business data sets, and then the complexity of the new business demand information is tested. The complexity can be evaluated according to the conversion time, memory consumption, etc. After obtaining the test score, the test score is presented in the form of a negative number. The higher the complexity, the smaller the test score value. Then the test score is increased to the correlation, and the business data set with the highest correlation is screened out to obtain the basic business data set, and then the data model contained in the basic business data set is used to build the target business data set. At this time, the basic business data set screened out has the lowest complexity, which is conducive to the smooth construction and operation of the target business data set.

[0048] Reference Figure 3 Based on the above embodiment, as an optional embodiment, after adding the test score to the correlation degree and filtering out the business data set with the highest correlation degree in step S201, the method further includes: S2010: Copy the business data set with the highest correlation to obtain a temporary business data set.

[0049] S2011. Compare the temporary business data set with the data involved in the new business demand information, delete irrelevant data in the temporary business data set, and obtain a basic business data set.

[0050] Among them, by copying the business data set with the highest correlation as a temporary business data set, and performing data comparison and screening for new business demand information, accurate data processing can be achieved, thereby ensuring that the basic business data set contains data related to new needs, thereby better meeting the needs of business analysis and applications, and reducing the cost and complexity of data processing, saving processing time and resources, and improving the efficiency of data processing, reducing data noise and redundancy, and improving the credibility and effectiveness of data analysis and application.

[0051] Reference Figure 4 Based on the above embodiment, as an optional embodiment, step S210: if there is a business data set whose correlation exceeds a preset threshold, a temporary data model is selected according to a preset imitation rule, and the temporary data model is used to construct a target business data set, including: S2101. If there are business data sets whose correlation exceeds a preset threshold, select business data sets whose correlation exceeds the preset threshold to form an external business data cluster.

[0052] S2102: Collect statistics on the data model types of the external business data cluster, and prioritize the data model types according to preset arrangement rules.

[0053] S2103. Collect sample data from the corresponding system according to the new business demand information, pre-process the sample data, and then select model types in order of priority to build a temporary data model, and perform performance testing on the temporary data model. When a temporary data model meets the standards, select the current temporary data model that meets the standards to build the target business data set.

[0054] As mentioned above, by setting priorities for the data model types involved in the external business data cluster and arranging them according to the priorities, the accuracy of model selection can be improved. Then, a temporary data model is constructed in sequence according to the arrangement order. The sample data designed for the temporary data model is limited and the data volume is not large. Then, the performance test is performed on the temporary model. Once a temporary data model meets the standards, the current temporary data model that meets the standards is selected to build the target business data set. This method can accelerate the selection of data models suitable for new business needs. Among them, performance testing involves multiple aspects, such as data integrity, data accuracy, response time, query efficiency, and resource consumption testing. Scores are evaluated based on multiple aspects. Once the scores meet the standards, the current temporary data model that meets the standards is selected to build the target business data set. If all temporary data models do not meet the standards, a signal requiring manual creation is sent to the development end.

[0055] Based on the above embodiment, as an optional embodiment, step S2102: counting the data model types of the external business data cluster and prioritizing the data model types according to a preset arrangement rule includes: Count the number of data models of the same type in the external business data cluster, and prioritize the data model types in descending order based on the number.

[0056] As mentioned above, data model types are prioritized in order from large to small, which helps to improve the utilization rate of data models. Data model types with a large number are given priority, which have a high utilization rate and can make fuller use of the data information provided by these models to meet business needs. For data model types with a small number, their processing priority can be appropriately lowered to avoid affecting the processing efficiency of the overall business data.

[0057] Based on the above embodiment, as an optional embodiment, step S21: if there is no business data set with a correlation exceeding the preset threshold, the new business demand information is matched with each business data set in the external business data warehouse related to other subsidiary codes to determine whether there is a business data set with a correlation exceeding the preset threshold, and the step also includes: If there is a business data set with a correlation exceeding the preset threshold, the company type label of the subsidiary code in the new business demand information is compared with the company type labels of other subsidiary codes, and other subsidiary codes with the same company type labels are screened out. Then, the new business demand information is matched with the various business data sets in the external business data warehouse related to other subsidiary codes with the same company type labels to determine whether there is a business data set with a correlation exceeding the preset threshold.

[0058] As mentioned above, the company types of the subsidiaries are all tagged with corresponding attribute labels. Subsidiaries with the same company type labels have highly similar businesses, and therefore, the data types are also highly similar. Therefore, we first perform correlation matching on the external business data warehouses corresponding to the subsidiaries with the same company type labels, which can screen out some subsidiaries with too large differences in business types, further improve the accuracy of constructing the target business data set, and effectively improve the efficiency of constructing the target business data set.

[0059] It should be understood that the size of the serial numbers of the steps in the above embodiments does not mean the order of execution. The execution order of each process should be determined by its function and internal logic, and should not constitute any limitation on the implementation process of the embodiments of the present application.

[0060] The present application also provides a data warehouse construction system, which corresponds one-to-one to a data warehouse construction method in the embodiment. Figure 5 The data warehouse construction system includes: information acquisition module 1, internal matching module 2, internal construction module 3, external matching module 4 and external construction module 5. The detailed description of each functional module is as follows: Information acquisition module 1: used to obtain new business demand information, which includes the subsidiary code, and retrieve the associated internal business data warehouse according to the subsidiary code.

[0061] Internal matching module 2: used to perform correlation matching between new business demand information and various business data sets in the internal business data warehouse, and determine whether there is a business data set with a correlation exceeding a preset threshold.

[0062] Internal construction module 3: If there is a business data set whose correlation exceeds a preset threshold, the basic business data set is filtered out according to the preset filtering rules, and the target business data set is constructed using the data model contained in the basic business data set.

[0063] External matching module 4: If there is no business data set with a correlation exceeding the preset threshold, the new business demand information is matched with each business data set in the external business data warehouse related to other subsidiary codes to determine whether there is a business data set with a correlation exceeding the preset threshold.

[0064] External construction module 5: If there is a business data set whose correlation exceeds a preset threshold, a temporary data model is selected according to a preset imitation rule, and the temporary data model is used to construct the target business data set.

[0065] Among them, the system can obtain new business demand information through the information acquisition module 1, the new business demand information includes the subsidiary code, and the related internal business data warehouse is retrieved according to the subsidiary code, and then the new business demand information is matched with each business data set in the internal business data warehouse by the internal matching module 2 to determine whether there is a business data set with a correlation exceeding the preset threshold. If there is a business data set with a correlation exceeding the preset threshold, the internal construction module 3 is used to filter out the basic business data set according to the preset screening rule, and the target business data set is constructed using the data model contained in the basic business data set. If there is no business data set with a correlation exceeding the preset threshold, the external matching module 4 is used to match the new business demand information with each business data set in the external business data warehouse related to other subsidiary codes to determine whether there is a business data set with a correlation exceeding the preset threshold. If there is a business data set with a correlation exceeding the preset threshold, the external construction module 5 is used to select a temporary data model according to the preset imitation rule, and the temporary data model is used to construct the target business data set.

[0066] For the specific definition of the data warehouse construction system, please refer to the definition of the data warehouse construction method in the context, which will not be repeated here. Each module in the above-mentioned data warehouse construction system can be implemented in whole or in part by software, hardware and a combination thereof. The above-mentioned modules can be embedded in or independent of the processor in the electronic device in the form of hardware, or can be stored in the memory of the electronic device in the form of software, so that the processor can call and execute the operations corresponding to the above modules.

[0067] In this embodiment, an electronic device is provided, and the electronic device is a computer. Figure 6 , the electronic device includes a processor, a memory, a network interface and a database connected through a system bus. Among them, the processor of the electronic device is used to provide computing and control capabilities. The memory of the electronic device includes a non-volatile storage medium and an internal memory. The non-volatile storage medium stores an operating system, a computer program and a database. The internal memory provides an environment for the operation of the operating system and the computer program in the non-volatile storage medium. The database of the electronic device is used to store a detection data table. The network interface of the electronic device is used to communicate with an external terminal through a network connection. When the computer program is executed by the processor, a data warehouse construction method is implemented.

[0068] In one embodiment, an electronic device is provided, including a memory, a processor, and a computer program stored in the memory and executable on the processor, wherein the processor implements the following steps when executing the computer program: S1. Obtain new business demand information, which includes a subsidiary code. Retrieve the associated internal business data warehouse based on the subsidiary code.

[0069] S2. Perform correlation matching between the new business demand information and each business data set in the internal business data warehouse to determine whether there is a business data set whose correlation exceeds a preset threshold.

[0070] S20: If there is a business data set whose correlation exceeds a preset threshold, filter out the basic business data set according to a preset filtering rule, and construct a target business data set using the data model included in the basic business data set.

[0071] S21. If there is no business data set whose correlation exceeds the preset threshold, the new business demand information is matched with each business data set in the external business data warehouse related to other subsidiary codes to determine whether there is a business data set whose correlation exceeds the preset threshold.

[0072] S210: If there is a business data set whose correlation exceeds a preset threshold, a temporary data model is selected according to a preset imitation rule, and the temporary data model is used to construct a target business data set.

[0073] S211. If there is no business data set whose correlation exceeds the preset threshold, a signal indicating that manual creation is required is sent to the development end.

[0074] Step S20 specifically includes the following steps: S200: If there is a business data set whose correlation exceeds a preset threshold, the complexity of data integration and conversion of the data involved in the new business demand information is tested to obtain a test score.

[0075] S201. Add the test score to the correlation, filter out the business data set with the highest correlation, and obtain the basic business data set.

[0076] S202: Construct a target business data set using the data model included in the basic business data set.

[0077] After step S201, the following steps are also included: S2010: Copy the business data set with the highest correlation to obtain a temporary business data set.

[0078] S2011. Compare the temporary business data set with the data involved in the new business demand information, delete irrelevant data in the temporary business data set, and obtain a basic business data set.

[0079] Step S210 specifically includes the following steps: S2101. If there are business data sets whose correlation exceeds a preset threshold, select business data sets whose correlation exceeds the preset threshold to form an external business data cluster.

[0080] S2102: Collect statistics on the data model types of the external business data cluster, and prioritize the data model types according to preset arrangement rules.

[0081] S2103. Collect sample data from the corresponding system according to the new business demand information, pre-process the sample data, and then select model types in order of priority to build a temporary data model, and perform performance testing on the temporary data model. When a temporary data model meets the standards, select the current temporary data model that meets the standards to build the target business data set.

[0082] An embodiment of the present application also discloses a computer-readable storage medium storing a computer program that can be loaded and executed by a processor. When the computer program is executed by the processor, the steps of any of the above-mentioned data warehouse construction methods are implemented and the same effect can be achieved.

[0083] The computer-readable storage medium includes, for example, a USB flash drive, a mobile hard disk, a read-only memory (ROM), a random access memory (RAM), a magnetic disk or an optical disk, and other media that can store program codes.

[0084] The above are all preferred embodiments of the present application, and are not intended to limit the protection scope of the present application. Any feature disclosed in this specification (including the abstract and drawings), unless otherwise stated, can be replaced by other equivalent or alternative features with similar purposes. That is, unless otherwise stated, each feature is only an example of a series of equivalent or similar features.

Claims

1. A method for constructing a data warehouse, characterized in that: include: Acquire new business demand information, wherein the new business demand information includes a subsidiary code, and retrieve the associated internal business data warehouse according to the subsidiary code; Perform correlation matching between new business demand information and various business data sets in the internal business data warehouse to determine whether there is a business data set with a correlation exceeding a preset threshold; If there is a business data set whose correlation exceeds the preset threshold, the basic business data set is filtered out according to the preset filtering rules, and the target business data set is constructed using the data model contained in the basic business data set; If there is no business data set with a correlation exceeding the preset threshold, the new business demand information is matched with each business data set in the external business data warehouse related to other subsidiary codes to determine whether there is a business data set with a correlation exceeding the preset threshold; If there is a business data set whose correlation exceeds a preset threshold, a temporary data model is selected according to a preset imitation rule, and the temporary data model is used to construct a target business data set.

2. The method according to claim 1, characterized in that If there is a business data set with a correlation exceeding a preset threshold, the step of filtering out a basic business data set according to a preset filtering rule, and constructing a target business data set using a data model included in the basic business data set includes: If there is a business data set whose correlation exceeds the preset threshold, the complexity of data integration and conversion of the data involved in the new business demand information is tested to obtain a test score; The test score is increased to the correlation degree, and the business data set with the highest correlation degree is selected to obtain the basic business data set; The target business dataset is constructed using the data model contained in the basic business dataset.

3. The method according to claim 2, characterized in that After the step of increasing the test score to the correlation degree and selecting the business data set with the highest correlation degree, the method further includes: Copy the business data set with the highest correlation to obtain a temporary business data set; The temporary business data set is compared with the data involved in the new business demand information, and irrelevant data in the temporary business data set is deleted to obtain the basic business data set.

4. The method according to claim 1, characterized in that: If there is a business data set with a correlation exceeding a preset threshold, the step of selecting a temporary data model according to a preset imitation rule and using the temporary data model to construct a target business data set includes: If there are business data sets whose correlation exceeds the preset threshold, then the business data sets whose correlation exceeds the preset threshold are selected to form an external business data cluster; Collect statistics on the data model types of external business data clusters and prioritize the data model types according to preset arrangement rules; According to the new business demand information, sample data is collected from the corresponding system, pre-processed, and then the model types are selected in order of priority to build a temporary data model. The temporary data model is performance tested. When a temporary data model meets the standards, the current temporary data model that meets the standards is selected to build the target business data set.

5. The method according to claim 4, characterized in that The step of counting the data model types of the external business data cluster and prioritizing the data model types according to a preset arrangement rule includes: Count the number of data models of the same type in the external business data cluster, and prioritize the data model types in descending order based on the number.

6. The method according to claim 1, characterized in that If there is no business data set with a correlation exceeding the preset threshold, the step of matching the new business demand information with each business data set in the external business data warehouse related to other subsidiary codes to determine whether there is a business data set with a correlation exceeding the preset threshold also includes: If there is a business data set with a correlation exceeding the preset threshold, the company type label of the subsidiary code in the new business demand information is compared with the company type labels of other subsidiary codes, and other subsidiary codes with the same company type labels are screened out. Then, the new business demand information is matched with the various business data sets in the external business data warehouse related to other subsidiary codes with the same company type labels to determine whether there is a business data set with a correlation exceeding the preset threshold.

7. A data warehouse construction system, characterized in that: include: Information acquisition module (1): used to acquire new business demand information, wherein the new business demand information includes a subsidiary code, and retrieve the associated internal business data warehouse according to the subsidiary code; Internal matching module (2): used to match the new business demand information with each business data set in the internal business data warehouse, and determine whether there is a business data set whose correlation exceeds a preset threshold; Internal construction module (3): if there is a business data set whose correlation exceeds a preset threshold, the basic business data set is filtered out according to the preset filtering rules, and the target business data set is constructed using the data model contained in the basic business data set; External matching module (4): if there is no business data set with a correlation exceeding the preset threshold, the new business demand information is matched with each business data set in the external business data warehouse related to other subsidiary codes to determine whether there is a business data set with a correlation exceeding the preset threshold; External construction module (5): If there is a business data set whose correlation exceeds a preset threshold, a temporary data model is selected according to a preset imitation rule, and the temporary data model is used to construct the target business data set.

8. An electronic device, characterized in that: The method comprises a memory and a processor, wherein the memory stores a computer program that can be loaded by the processor and executes the data warehouse construction method according to any one of claims 1 to 6.

9. A computer-readable storage medium, characterized in that: The computer program is stored and can be loaded by a processor to execute the data warehouse construction method according to any one of claims 1 to 6.

Citation Information

Patent Citations

  • Data processing method and system and computer storage medium

    CN116303379A

  • Collaborative generation method, device and equipment of data model

    CN116483797A

  • Index generation method and device, computer equipment and storage medium

    CN116841505A

  • Auto-Mapping Between Source and Target Models Using Statistical and Ontology Techniques

    US20130031117A1

Cited By

  • Method and device for analyzing and checking reimbursement data and medium

    CN120278840A

  • Industrial data analysis method and device, electronic equipment and storage medium

    CN121301782A