Automatic data processing method for data warehouse
Through the automated data processing method based on the database view function, the problems of complexity and insufficient flexibility of traditional data processing methods are solved, an efficient and stable data processing process is realized, and the efficiency and adaptability of data development are improved.
Patent Information
- Application Number
- CN202410747862.4
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2024-06-11
- Publication Date
- 2024-09-03
AI Technical Summary
Traditional data processing methods are complex, time-consuming, suffer from data quality issues, slow performance, lack of flexibility, high development and maintenance costs, and are difficult to quickly adapt to changes in data sources and business needs.
Use an automated data processing method based on the database view function to build a data warehouse view model, obtain the data to be written, and transmit it to the automated data processor through the view model and incremental condition parameters to realize automated writing of data.
It improves data development efficiency, reduces development and maintenance costs, simplifies data processing processes, and enhances the predictability, stability, adaptability, and flexibility of data processing.
Smart Images

Figure CN118585535A
Abstract
Description
Technical Field
[0001] The present invention relates to the field of data processing, and in particular to an automatic data processing method for a data warehouse. Background Art
[0002] Currently, more and more enterprises are undergoing digital transformation, and more and more companies are building their own data warehouse systems. The construction of data warehouse systems is inseparable from the processing of data, and to process data, it is necessary to use data processing tools and methods.
[0003] The traditional data processing approach is a process of data integration and transformation, which is used to extract, transform and load data from different data sources into a target data warehouse or data lake.
[0004] The pain points of traditional data processing include: Complexity: Requires a lot of manual coding and configuration work, which can be very complex and time-consuming.
[0005] lData quality: Data quality issues, such as data duplication, data loss, data inconsistency, etc.
[0006] lPerformance issues: Performance issues, such as slow data processing speed, long data loading time, etc.
[0007] Lack of flexibility: The architecture and process of traditional data processing methods are relatively fixed, and it is difficult to quickly adapt to new data sources or changes in data requirements. If you need to add new data sources or perform complex data conversions, you may need to redesign and deploy the entire data processing process.
[0008] l High development and maintenance costs: You need to purchase expensive data processing tools. Usually it involves complex pipelines and transformation logic, which requires a lot of manual coding and maintenance work. As data sources and data requirements change, these pipelines and transformation logic need to be constantly updated and adjusted, resulting in high maintenance costs.
[0009] l Dependency: Data processing relies on data processing tools, which makes data processing development and software deployment more complicated, difficult to maintain, and unable to be adjusted quickly.
[0010] Lack of flexibility: Designed based on fixed architecture and processes, it is difficult to quickly adapt to changes in business needs and new data sources. Summary of the invention
[0011] The purpose of the present invention is to design a data warehouse automatic data processing method in order to solve the above problems.
[0012] The present invention achieves the above-mentioned purpose through the following technical solutions: A data warehouse automated data processing method, comprising: S1. Build the view model of the data warehouse based on the view function of the database; S2, obtaining the data to be written; S3, the view model processes the data to be written according to the relational database table to obtain the data warehouse model view; S4, transmitting the data warehouse model view and the data increment condition as parameters to the automated data processor; S5. The automated data processor writes the data to be written into the database according to the parameters.
[0013] The beneficial effects of the present invention are as follows: the present method is applied to the data processing process of the data warehouse; it is also a method for realizing full or incremental synchronization of a database, belonging to the field of data synchronization and backup technology, the method iteratively queries incremental conditions, obtains a portion of incremental data each iteration, gradually moves forward, filters out incremental information based on incremental conditions, and then obtains all incremental data. The present method enables data developers to focus on the development of data processing logic without having to put a lot of energy on process execution and data verification, thereby improving the efficiency of data development and the development experience. BRIEF DESCRIPTION OF THE DRAWINGS
[0014] Figure 1 It is a flow chart of a data warehouse automated data processing method of the present invention; Figure 2 The present invention discloses a flow chart of an automatic data processor in a data warehouse automatic data processing method. DETAILED DESCRIPTION
[0015] In order to make the purpose, technical solutions and advantages of the embodiments of the present invention clearer, the technical solutions in the embodiments of the present invention will be clearly and completely described below in conjunction with the drawings in the embodiments of the present invention. Obviously, the described embodiments are part of the embodiments of the present invention, not all of the embodiments. Generally, the components of the embodiments of the present invention described and shown in the drawings here can be arranged and designed in various different configurations.
[0016] Therefore, the following detailed description of the embodiments of the present invention provided in the accompanying drawings is not intended to limit the scope of the invention claimed for protection, but merely represents selected embodiments of the present invention. Based on the embodiments of the present invention, all other embodiments obtained by ordinary technicians in this field without creative work are within the scope of protection of the present invention.
[0017] It should be noted that similar reference numerals and letters denote similar items in the following drawings, and therefore, once an item is defined in one drawing, further definition and explanation thereof is not required in subsequent drawings.
[0018] In the description of the present invention, it should be understood that the terms "upper", "lower", "inside", "outside", "left", "right", etc. indicate directions or positional relationships based on the directions or positional relationships shown in the accompanying drawings, or are directions or positional relationships in which the product of the invention is usually placed when in use, or are directions or positional relationships commonly understood by those skilled in the art. These directions or positional relationships are only for the convenience of describing the present invention and simplifying the description, and do not indicate or imply that the device or element referred to must have a specific direction, be constructed and operated in a specific direction, and therefore should not be understood as a limitation on the present invention.
[0019] Furthermore, the terms “first”, “second”, etc. are merely used for distinguishing descriptions and should not be understood as indicating or implying relative importance.
[0020] In the description of the present invention, it is also necessary to explain that, unless otherwise clearly specified and limited, the terms such as "setting" and "connection" should be understood in a broad sense. For example, "connection" can be a fixed connection, a detachable connection, or an integral connection; it can be a mechanical connection or an electrical connection; it can be a direct connection, or an indirect connection through an intermediate medium, or it can be the internal communication of two elements. For ordinary technicians in this field, the specific meanings of the above terms in the present invention can be understood according to specific circumstances.
[0021] The specific implementation modes of the present invention are described in detail below in conjunction with the accompanying drawings.
[0022] like Figure 1 As shown, a data warehouse automated data processing method comprises: S1. Build a view model of the data warehouse based on the view function of the database.
[0023] S2. Obtain the data to be written.
[0024] S3. The view model processes the data to be written according to the relational database table to obtain the data warehouse model view; specifically: the view model verifies whether the data to be written is correct according to the preset data standard requirements of the data warehouse. If correct, the view model processes the data to be written to obtain the data warehouse model view; if incorrect, it returns to S2.
[0025] S4. The data warehouse model view and data increment conditions are transmitted as parameters to the automated data processor.
[0026] S5, the automated data processor writes the data to be written into the database according to the parameters; Figure 2 As shown, specifically including: S501, parsing the name of the data warehouse model view to obtain the target table name; S502, determine whether the target table exists, if it exists, go to S503; otherwise, go to S504; S503, construct an incremental instruction according to the incremental condition, and enter S505; S504, create a target table, and construct a full data write instruction, and then enter S505; S505, merge all instructions; S506: Execute the merged instructions to write the data to be written into the database.
[0027] The implementation logic of the automated data processor is as follows:
[0028] This method breaks the inherent logic of traditional data warehouse data processing, replaces the original logical model and physical model development of the data warehouse with the development of view model, and combines the final data verification with the initial model design and model development. This method not only shortens the data processing process and reduces the difficulty of data verification, but also knows the complete form of the data to be written before it is written into the data warehouse, which improves the predictability of data processing results.
[0029] The automated data processing method of the present invention enables developers to create and modify data warehouse models quickly and efficiently. In addition, through the view model of the data warehouse of the present invention, since the data verification work is pre-placed before data processing, developers can verify the integrity and consistency of the generated data before the data processing software is deployed, which greatly reduces the repetitive processing work caused by various unexpected data chaos in the data process. Developers only need to focus on the creation process of the data view model. The present invention greatly improves the work efficiency of data developers and reduces the data development cycle and cost. At the same time, the present invention simplifies the development process and solidifies the data warehouse model generation method, so that the ETL process developed by using the present invention is very stable and efficient.
[0030] The technical solution of the present invention is not limited to the above-mentioned specific embodiments. All technical variations made according to the technical solution of the present invention fall within the protection scope of the present invention.
Claims
1. A data warehouse automated data processing method, characterized in that: include: S1. Build the view model of the data warehouse based on the view function of the database; S2, obtaining the data to be written; S3, the view model processes the data to be written according to the relational database table to obtain the data warehouse model view; S4, transmitting the data warehouse model view and the data increment condition as parameters to the automated data processor; S5. The automated data processor writes the data to be written into the database according to the parameters.
2. A data warehouse automated data processing method according to claim 1, characterized in that: S3 includes a view model that verifies whether the data to be written is correct according to the preset data standard requirements of the data warehouse. If correct, the data to be written is processed to obtain the data warehouse model view; if incorrect, it returns to S2.
3. The method for automated data processing in a data warehouse according to claim 1, characterized in that: Included in S5: S501, parsing the name of the data warehouse model view to obtain the target table name; S502, determine whether the target table exists, if it exists, go to S503; otherwise, go to S504; S503, construct an incremental instruction according to the incremental condition, and enter S505; S504, create a target table, and construct a full data write instruction, and then enter S505; S505, merge all instructions; S506: Execute the merged instructions to write the data to be written into the database.
Citation Information
Patent Citations
Data quality detecting method and device
CN104820720A
Automatic SQL (Structured Query Language) generation system, method and equipment based on metadata configuration and medium
CN114519079A
Multi-source master data modeling maintenance distribution method and system based on data integration
CN115757358A
Methodology supported business intelligence (BI) software and system
US20140136472A1
